Encoding Movies with MEncoder/FFmpeg
Introduction
MPlayer is available on JURECA. Please load the required modules first:
For more details on MEncoder please check here
Images => Movie:
Example 1: JPEG -> MPEG4 in AVI-container (with vcodec=mpeg4)
For details on lavopts check here
simple setup:
two-pass for much better quality:
Example 2: PNG -> MPEG4 in AVI-container (with library x264 through FFmpeg integrated into mencoder)
For details on x264encopts check here
Example 3: PNG -> MPEG4 (ready for QuickTime 7)
(ready for QuickTime 7 limitations - taken from here)
Pass 1:
Pass 2:
Example 4: WMV -> MPEG4 (best quality)
Shown is encoding MPEG4 movie with 5000 bit/s using best quality settings.
You can increase the quality only by increasing the bit rate and therefore the file size.
Pass 1:
Pass 2:
Pass 3:
ffmpeg Examples
(https://ffmpeg.org/ffmpeg.html)
(Some very good hints: https://trac.ffmpeg.org/wiki/Slideshow)
(http://hamelot.io/visualization/using-ffmpeg-to-convert-a-set-of-images-into-a-video/)
(https://www.virag.si/2012/01/web-video-encoding-tutorial-with-ffmpeg-0-9)
Here is how to generate a mp4 movie from a number of .png images. Each image is shown 2 seconds (-framerate 1/2). The resulting movie has 25 fps (-r 25) and 4K resolution (-s 3840x2160). The quality is set to 25 (-crf 25). Lower means better quality, 15-25 is usually good. The filenames of the images are read from the filesystem in alphanumerical order (-pattern_type glob -i '*.png'). Note that glob is not available on Windows systems. If your filenames contain a consecutive numbering, you can use a pattern like "-start_number 1 -i filename_%03d.png" instead.
Just some more examples:
any feedback welcomed - h.zilken@…, goebbert@…