[FFmpeg-user] encode to RAW video

Naveen.B navins.2006 at gmail.com
Mon Oct 31 15:23:50 EET 2022


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*

command output:
*frame=   30 fps=0.0 *q=-1.0 Lsize=     320kB time=00:00:00.93
bitrate=2807.6kbits/s speed= 1.1x
video:320kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.000000%
In the fast preset while converting to raw, the frames is 30 and fps is 0,
what does this mean?

medium 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 medium
-crf 18 test.raw*

command output:
*frame=   30 fps= 28* q=-1.0 Lsize=     329kB time=00:00:00.93
bitrate=2887.7kbits/s speed=0.863x
video:329kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.000000%

Kind Regards,
Naveen B

On Fri, Oct 28, 2022 at 7:41 AM pehache <pehache.7 at gmail.com> wrote:

> Le 27/10/2022 à 13:31, Naveen.B a écrit :
>
> >
> > one last question, any idea on how to know/measure how long the ffmpeg
> > takes to encode the file.
>
> The answer depends on too many parameters.
>
> > i.e, basically I want to know how much time it takes to compress with
> > different presets and how much time it takes to encode for an
> uncompressed
> > RAW video.
>
> Almost by definition, an truly uncompressed video is not encoded, it's
> just writing to the output the data that are in memory (well, almost...
> there's still possibly the conversion of the pixel format, from RGB to
> YUV420 for instance, but this is quite fast). What will limit the speed
> is the read/write performances on the disk you are using, and/or the
> time needed to decode the input video.
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
>


More information about the ffmpeg-user mailing list