| 1 | |
| 2 | == Encoding Movies |
| 3 | [[PageOutline]] |
| 4 | |
| 5 | {{{#!ShellExample |
| 6 | mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg \ |
| 7 | -ovc lavc \ |
| 8 | -lavcopts vcodec=mpeg4:mbd=2:trell \ |
| 9 | -oac copy \ |
| 10 | -o output.avi |
| 11 | }}} |
| 12 | |
| 13 | === mencoder Examples |
| 14 | (ready for !QuickTime 7 limitations - taken from [https://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-quicktime-7.html here]) |
| 15 | |
| 16 | Pass 1: |
| 17 | {{{#!ShellExample |
| 18 | mencoder mf://*.png -mf w=1024:h=768:fps=25:type=png \ |
| 19 | -ovc x264 \ |
| 20 | -x264encopts pass=1:turbo:bitrate=900:bframes=1:me=umh:partitions=all:trellis=1:qp_step=4:qcomp=0.7:direct_pred=auto:keyint=300:threads=auto \ |
| 21 | -vf harddup \ |
| 22 | -oac copy \ |
| 23 | -o output.mp4 |
| 24 | }}} |
| 25 | |
| 26 | Pass 2: |
| 27 | {{{#!ShellExample |
| 28 | mencoder mf://*.png -mf w=1024:h=768:fps=25:type=png \ |
| 29 | -ovc x264 \ |
| 30 | -x264encopts pass=2:turbo:bitrate=900:bframes=1:me=umh:partitions=all:trellis=1:qp_step=4:qcomp=0.7:direct_pred=auto:keyint=300:threads=auto \ |
| 31 | -vf harddup \ |
| 32 | -oac copy \ |
| 33 | -o output.mp4 |
| 34 | }}} |
| 35 | |
| 36 | === ffmpeg Examples |
| 37 | (https://www.virag.si/2012/01/web-video-encoding-tutorial-with-ffmpeg-0-9) |
| 38 | {{{#!ShellExample |
| 39 | ffmpeg -i input -c:libx264 -profile:baseline -preset:ultrafast -level 1.2 |
| 40 | }}} |
| 41 | |
| 42 | ---- |
| 43 | any feedback welcomed - h.zilken@fz.juelich.de, goebbert@jara.rwth-aachen.de |