Zeile 43: |
Zeile 43: |
| | | |
| # ab jetzt nur noch copy&paste | | # ab jetzt nur noch copy&paste |
− | # Qualitaetsparameter ermitteln | + | # Parameter fuer Qualitaet, etc. ermitteln |
| if [ "$QUALI" = "niedrig" ]; then | | if [ "$QUALI" = "niedrig" ]; then |
| BITRATE=400 | | BITRATE=400 |
| FPS=10 | | FPS=10 |
− | elif | + | elif [ "$QUALI" = "normal" ]; then |
| BITRATE=700 | | BITRATE=700 |
| FPS=20 | | FPS=20 |
Zeile 64: |
Zeile 64: |
| O2="-vf scale=${ID_VIDEO_WIDTH}:${ID_VIDEO_HEIGHT},harddup" | | O2="-vf scale=${ID_VIDEO_WIDTH}:${ID_VIDEO_HEIGHT},harddup" |
| | | |
− | # | + | # h264-optionen - erster Durchlauf |
− | mencoder -aspect $ASPECT -vf scale=$SCALE,harddup -ovc x264 -x264encopts \
| + | O3a="-ovc x264 -x264encopts bitrate=$BITRATE:threads=auto:pass=1:turbo=2:frameref=1:bframes=3:" |
− | bitrate=$BITRATE:threads=auto:pass=1:turbo=2:frameref=1:bframes=3:nob_pyramid:\ | + | O3b="nob_pyramid:direct_pred=auto:partitions=all:8x8dct:subq=1:mixed_refs:nodct_decimate-nosound" |
− | direct_pred=auto:partitions=all:8x8dct:subq=1:mixed_refs:nodct_decimate \ | + | O3c=" -ofps $FPS -noskip -of rawvideo -o /dev/null mf://$FILE -mf fps=$FPS" |
− | -nosound -ofps $FPS -noskip -of rawvideo -o /dev/null mf://$PATH/*.$EXT -mf fps=$FPS | + | O3="$O3a$O3b$O3c" |
− | | |
− | | |
− | mencoder -aspect $ASPECT -vf scale=$SCALE,harddup -ovc x264 -x264encopts \
| |
− | bitrate=$BITRATE:threads=auto:pass=2:frameref=5:bframes=3:nob_pyramid:\
| |
− | direct_pred=auto:partitions=all:8x8dct:subq=6:mixed_refs:nodct_decimate \
| |
− | -nosound -ofps $FPS -noskip -of rawvideo -o output.264 mf://$PATH/*.$EXT -mf fps=$FPS
| |
| | | |
| + | # h264-optionen - zweiter Durchlauf |
| + | O4a="-ovc x264 -x264encopts bitrate=$BITRATE:threads=auto:pass=2:frameref=5:bframes=3:" |
| + | O4b="nob_pyramid:direct_pred=auto:partitions=all:8x8dct:subq=6:mixed_refs:nodct_decimate-nosound" |
| + | O4c=" -ofps $FPS -noskip -of rawvideo -o /dev/null mf://$FILE -mf fps=$FPS" |
| + | O4="$O4a$O4b$O4c" |
| </pre> | | </pre> |
| | | |
| Tags: convert, mplayer, mov, mpeg4, h264 18:07, 8. Mai 2008 (CEST) | | Tags: convert, mplayer, mov, mpeg4, h264 18:07, 8. Mai 2008 (CEST) |