[FFmpeg-devel] [PATCH]: reset resample-sample_fmt in the input stream after decode initialization

Hendrik Leppkes h.leppkes at gmail.com
Fri Dec 16 14:45:49 EET 2016


On Fri, Dec 16, 2016 at 1:35 PM, Sumit Agarwal <sumita at nvidia.com> wrote:
> h264_cuvid (without hwaccel) + hwupload_cuda filter is currently broken. The resample_sample_fmt in the input stream is not updated after h264_cuvid decoder is initialized, due to this reconfiguration of the filter graph is triggered after the decode. During reconfiguration, Scale filter is inserted after hwupload_cuda filter and the filter configuration fails during format merging.
>
> Try the following command line to observe the issue:
>
> ffmpeg -y -c:v h264_cuvid -i amazing.264 -vf hwupload_cuda -c:v h264_nvenc out.264
>

Why would you use such a command with hwupload instead of just using
-hwaccel cuvid to solve all these issues? Thats what its for. The
change in ffmpeg looks a bit fishy.

- Hendrik


More information about the ffmpeg-devel mailing list