Closed andrerxavier closed 9 months ago
Are you sure you're using the same FFMPEG build compared to what you're using to generate your test commands?
You're trying to use h264_nvenc but manual.py is throwing lots of errors that you don't have this encoder and that's ultimately the FFMPEG error that's thrown as well, though your output from -encoders
seems to show it
2023-09-23 00:42:40 - MANUAL - WARNING - ===========WARNING===========
2023-09-23 00:42:40 - MANUAL - WARNING - The encoder you have chosen h264_nvenc (h264_nvenc) is not listed as supported in your FFMPEG build, conversion will likely fail, please use a build of FFMPEG that supports h264_nvenc or choose a different encoder.
2023-09-23 00:42:40 - MANUAL - WARNING - Other encoders your current FFMPEG build does support for codec h264:
2023-09-23 00:42:40 - MANUAL - WARNING - ['libx264', 'libx264rgb', 'h264_omx', 'h264_v4l2m2m', 'h264_vaapi']
2023-09-23 00:42:40 - MANUAL - WARNING - ===========WARNING===========
Unknown encoder 'h264_nvenc'
You're also getting errors on your test command too
[h264_nvenc @ 0x55d8446c5780] [ GPU #0 - < NVIDIA GeForce GTX 1060 3GB > has Compute SM 6.1 ]
[vost#0:0/h264_nvenc @ 0x55d8446c54c0] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.
Error while filtering: Immediate exit requested
[out#0/null @ 0x55d8446c4300] Nothing was written into output file, because at least one of its streams received no packets.
frame= 0 fps=0.0 q=0.0 Lsize= 0kB time=N/A bitrate=N/A speed=N/A
Finally, it looks like you're mixing a VAAPI decoder and NVENC encoder which isn't a great practice, maybe remove that decoder if you're going with NVENC
Another way to see if you have full support for the encoder is to run ffmpeg -codecs
and then look for the listed encoders and decoders
DEV.LS h264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (decoders: h264 h264_qsv h264_cuvid ) (encoders: libx264 libx264rgb h264_amf h264_mf h264_nvenc h264_qsv )
ffmpeg had already been installed and then I followed the installation from this link https://developer.nvidia.com/blog/nvidia-ffmpeg-transcoding-guide/
So I guess that begs the question is SMA using the correct FFMPEG binary or do you have multiple cause your -codecs
output is how the script checks if h264_nvenc is present, in your case its saying its not so it might be worse investigating that
Now yes, the problem was actually installing ffmpeg. Thanks
Describe the bug Hello @mdhiggins! In another post, you helped me configure my script, and 4k transcoding with HDR worked. Now, I'm having an issue when trying to use the GPU to transcode to mp4. Here are all the details and the log. I'm using a GTX 1060.
Command or context you are trying to run For manual.py include the full command, for integrated commands please include relavent logs from those programs (IE for postSonarr.py please include relevant Sonarr logs)
autoProcess.ini settings autoProcess.ini
Log files sma.log
FFMpeg headers
System Information
NAME="Ubuntu" VERSION="20.04.6 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.6 LTS" VERSION_ID="20.04"
Python 3.8.10
Expected behavior A clear and concise description of what you expected to happen.
Additional context Add any other context about the problem here.
Issues posted without any logs or autoProcess settings will be closed