I have a lot of (20,000) TIFF images. How can I create a lossless video out of them in one of common video formats (e.g. mp4, AVI) using FFMPEG or any other tools?
I am not sure what was the framerate and it could have been variable. The capture has been done in 133MHZ but it had variable framerate.
I tried the following command on a sample of 350ish TIFF image but I am not sure how to check if the produced video is lossy or lossless. How could I check that?
$ ffmpeg -framerate 60 -i 'frame%04d.tiff' vid.mp4
According to the ffmpeg documentation, the H.264 codec has a lossless mode using
-crf 0
.You aren't certain about the framerate so I can't offer any advice there, but you should try
ffmpeg -i *.tiff -crf 0 OUT.mp4
first, then compare the size of all the images to the size of the final video. If roughly the same, that's probably good enough.If you truly need absolute lossless output, you might be better off running a CLI script to display a (very rapid) slideshow of the images, though your hardware may not support it for large images and it is more of a wild guess than a practical solution.