[FFmpeg-user] encode to RAW video

Clay Clay at FTL.com
Wed Nov 2 16:02:37 EET 2022


> Le 31/10/2022 à 14:23, Naveen.B a écrit :
>> I observed some weird behaviour with fast and medium preset,
>>
>> fast preset:
>> *ffmpeg -pixel_format gray10le -s 1600x1300 -r 30 -i
>> CapturedImage-%03d.raw
>> -c:v rawvideo -pixel_format yuv420p -f rawvideo -c:v libx264 -preset
>> fast
>> -crf 18 test.raw*
>
> "-c:v rawvideo" then "-c:v libx264" makes no sense
>
> At some point you should be clear if you want a raw or a h264 stream!
>
Doesn't this serial ordering of the same command (-c:v xxxx) twice just
drive cpu workload up for no actual benefit? 

To clarify:  executing -c:v xxxx and then executing -c:v yyyy just
causes one output: yyyy.   Thus you are forcing the CPU to
decode:encode:decode:encode rather than just decode:encode.... can
someone confirm or correct me here?


More information about the ffmpeg-user mailing list