Answer the question
In order to leave comments, you need to log in
How to convert pictures to video without quality loss?
The following task arose: it is
necessary to convert a set of pictures into video so that there is no compression at all (that is, it is stupid to use the video format as a container).
I'm trying to use the x264 codec and convert pictures like this:
ffmpeg -f image2 -r 30 -i %06d.jpg -vcodec libx264 -profile:v high444 -refs 1 -x264opts b-pyramid=0 -crf 0 -preset ultrafast out.mp4
Answer the question
In order to leave comments, you need to log in
If the input is JPG, why not use MJPEG, which is essentially just pictures glued into one file?
ffmpeg -i %d.jpg all.mjpg
Or just framerate
ffmpeg -framerate 30 -i %d.jpg -codec copy output.mkv
ffmpeg -framerate 30 -i %d.png -codec copy output.mkv
ffmpeg -framerate 30 -i %d.png -codec copy output.mp4 Specify
why such a strange task. Lossless video codecs can also be used
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question