[FFmpeg-user] encode to RAW video
Naveen.B
navins.2006 at gmail.com
Thu Oct 27 14:31:20 EEST 2022
>
> > I tried by giving the input with -pix_fmt, it's the same error.
> >
> > Yes, I want raw video. I have converted RAW files to .mp4 successfully
> with
> > uncompressed, the size of the .mp4 format video was less comparatively.
> > I have 30 RAW files with each file is around 4Mbps (so, 30 RAW
> > filesx4Mbps=180Mbps for one second), the output of the video file size
> > (.mp4) is coming around 18 Mbps, so I am assuming .mp4 video format is
> > doing some compression and hence I need to try this with RAW video.
> >
> > This is the command I tried for .mp4 file video which is coming 18Mbps as
> > output video file size,
> > *ffmpeg -pixel_format gray10le -s 1600x1300 -r 30 -i
> CapturedImage-%03d.raw
> > -c:v libx264 -pix_fmt yuv420p -preset fast -profile:v main -level:v 4.0
> > -crf 1 raw_video.mp4*
> >
>
> Try this :
>
> ffmpeg -pixel_format gray10le -s 1600x1300 -r 30 -i
> CapturedImage-%03d.raw -c:v rawvideo -pix_fmt yuv420p -f rawvideo
> output.raw
>
> Alternatively you can put the raw video stream in a container such as MKV:
>
> ffmpeg -pixel_format gray10le -s 1600x1300 -r 30 -i
> CapturedImage-%03d.raw -c:v rawvideo -pix_fmt yuv420p output.mkv
>
> In either case I'm not sure it will easy to read the output file with
> classical players.
>
> fantastic, it worked, thanks a lot for your support!
one last question, any idea on how to know/measure how long the ffmpeg
takes to encode the file.
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.
Kind Regards,
Naveen B.
More information about the ffmpeg-user
mailing list