[FFmpeg-devel] [PATCH] (for discussion): ffmpeg: prefer cuvid decoders when use option -cuvid
Miroslav Slugeň
thunder.m at email.cz
Mon Feb 13 10:26:57 EET 2017
Dne 13.2.2017 v 09:11 Hendrik Leppkes napsal(a):
> On Mon, Feb 13, 2017 at 9:08 AM, Miroslav Slugeň <thunder.m at email.cz> wrote:
>> Problem is that when you are using for example 200 input streams you have to
>> always specify correct input format h264/mpeg2/nvenc. Also when you are
>> using -hwaccel cuvid you have to specify it too, otherwise there is error:
>> CUVID hwaccel requested, but impossible to achieve.
>>
> You can just script that and then its not really that huge of an extra
> effort to specify it. The patch is beyond terrible, and I don't see
> any good way to implement something like this either without some
> thorough API design to be able to select decoders in a smart way..
>
> - Hendrik
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
I know it was 1 hour hack :)
Correct behavior should be:
1. when you use "-hwaccel cuvid" ffmpeg should try cuvid decoders first
2. alias in decoders "-c:v cuvid" and then ffmpeg should try only cuvid
decoders
This should be same for other hwaccels.
M.
More information about the ffmpeg-devel
mailing list