wiki:Software/encoding

Encoding Movies with MEncoder/FFmpeg

Introduction

MPlayer is available on JURECA. Please load the required modules first:

Error: Failed to load processor ShellExample
No macro or processor named 'ShellExample' found

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:

Error: Failed to load processor ShellExample
No macro or processor named 'ShellExample' found

two-pass for much better quality:

Error: Failed to load processor ShellExample
No macro or processor named 'ShellExample' found
Example 2: PNG -> MPEG4 in AVI-container (with library x264 through FFmpeg integrated into mencoder)

For details on x264encopts check here

Error: Failed to load processor ShellExample
No macro or processor named 'ShellExample' found
Example 3: PNG -> MPEG4 (ready for QuickTime 7)

(ready for QuickTime 7 limitations - taken from here)

Pass 1:

Error: Failed to load processor ShellExample
No macro or processor named 'ShellExample' found

Pass 2:

Error: Failed to load processor ShellExample
No macro or processor named 'ShellExample' found
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:

Error: Failed to load processor ShellExample
No macro or processor named 'ShellExample' found

Pass 2:

Error: Failed to load processor ShellExample
No macro or processor named 'ShellExample' found

Pass 3:

Error: Failed to load processor ShellExample
No macro or processor named 'ShellExample' found

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.

Error: Failed to load processor ShellExample
No macro or processor named 'ShellExample' found

Just some more examples:

Error: Failed to load processor ShellExample
No macro or processor named 'ShellExample' found

any feedback welcomed - h.zilken@…, goebbert@…

Last modified 6 years ago Last modified on 03/22/18 13:44:13
Note: See TracWiki for help on using the wiki.