B
B
BelBES2017-04-11 11:16:51
linux
BelBES, 2017-04-11 11:16:51

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

But contrary to my expectations, when converting, the codec still squeezes the video 2 times relative to the original images and produces non-bitexact frames when reading ...
Maybe someone knows how to shake without losing quality at all?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
PrAw, 2017-04-11
@BelBES

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

M
Moskus, 2017-04-11
@Moskus

How about something like this?

ffmpeg -framerate 30 -i %06d.jpg -codec copy output.mkv

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question