Differences
This shows you the differences between two versions of the page.
mencoder [2013/06/28 21:35] – created beandog | mencoder [2013/06/28 21:37] (current) – beandog | ||
---|---|---|---|
Line 13: | Line 13: | ||
Some ideas though: | Some ideas though: | ||
- | - force the incoming fps and/or outcoming fps | + | * force the incoming fps and/or outcoming fps |
- | - try -mc 0 and/or -noskip with mencoder (the opposite being -vf | + | |
- | harddup=1) | + | |
Positive results: | Positive results: | ||
(movie starts at 29.97, but switches immediately to 23.97) | (movie starts at 29.97, but switches immediately to 23.97) | ||
- | mencoder movie.vob -aid 128 -ovc lavc -oac copy -o movie.avi -mc 0 | + | |
- | -noskip -fps 24000/1001 | + | < |
comes close, same scenario: | comes close, same scenario: | ||
- | transcode -i movie.vob -o transcode.avi -a 0 -b 128,0,0 -w 2200, | + | |
- | -A -N 0x2000 -M 2 -Y 4,4,4,4 -B 1,11,8 -R 0 -x vob,vob -y xvid4 -f 0,1 | + | < |
Something to try: | Something to try: | ||
- | audio delay (-audio-delay on mencoder, test float value with mplayer | + | |
- | -delay 0.2 movie.avi) | + | audio delay (-audio-delay on mencoder, test float value with mplayer |
mencoder basics: | mencoder basics: | ||
Line 37: | Line 36: | ||
worth it). | worth it). | ||
- | example: mencoder video.wmv -o video.avi -ovc lavc -oac mp3lame -fps 29.97 | + | example: |
+ | < | ||
- | example notes: -oac lavc uses mp2 by default as audio. | + | example notes: -oac lavc uses mp2 by default as audio. |
- | files are smaller using -oac mp3lame each time. -ovc lavc uses divx4. | + | |
- | Use -fps 29.97 since that's the NTSC standard framerate. | + | |
- | another framerate sometimes makes the video fuzzy (wmv -> avi). | + | |
- | "-of" sets the format type, default is " | + | Use -fps 29.97 since that' |
- | is " | + | |
- | "-oac" | + | "-of" |
- | " | + | |
- | (another audio codec). | + | |
- | " | + | " |
- | would use are " | + | |
- | " | + | " |
using " | using " | ||
- | I see a lot of examples that needlessy add " | + | I see a lot of examples that needlessy add " |
- | when the default video codec already is mpeg4 (and the best one too | + | |
- | use). There' | + | |
You can use lavcopts to do a three pass encoding to improve the quailty. | You can use lavcopts to do a three pass encoding to improve the quailty. | ||
+ | < | ||
rm frameno.avi | rm frameno.avi | ||
- | mencoder input.avi -ovc frameno -o frameno.avi -oac mp3lame -lameopts | + | mencoder input.avi -ovc frameno -o frameno.avi -oac mp3lame -lameopts vbr=3 |
- | vbr=3 | + | mencoder input.avi -ovc lavc -lavcopts vcodec=mpeg4: |
- | mencoder input.avi -ovc lavc -lavcopts vcodec=mpeg4: | + | mencoder input.avi -ovc lavc -lavcopts vcodec=mpeg4: |
- | output.avi | + | </ |
- | mencoder input.avi -ovc lavc -lavcopts vcodec=mpeg4: | + | |
- | output.avi | + | |
# encode from wmv -> avi | # encode from wmv -> avi | ||
+ | < | ||
mencoder video.wmv -o video.avi -ovc lavc -oac mp3lame -fps 29.97 | mencoder video.wmv -o video.avi -ovc lavc -oac mp3lame -fps 29.97 | ||
+ | </ | ||
# rip DVD | # rip DVD | ||
- | 2-pass encode of a DVD to an MPEG4 (" | + | 2-pass encode of a DVD to an MPEG4 (" |
- | track to MP3. | + | |
- | mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4: | + | < |
- | -lameopts vbr=3 -o movie.avi | + | mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4: |
- | mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4: | + | mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4: |
- | -lameopts vbr=3 -o movie.avi | + | </ |
# XviD 2-pass | # XviD 2-pass | ||
+ | < | ||
mencoder dvd:// -ovc xvid -oac copy -xvidencopts pass=1: | mencoder dvd:// -ovc xvid -oac copy -xvidencopts pass=1: | ||
+ | </ | ||
# encode only so much | # encode only so much | ||
+ | |||
use " | use " | ||
# detect aspect ratio for DVDs | # detect aspect ratio for DVDs | ||
+ | |||
+ | < | ||
mplayer dvd://1 -vf cropdetect | mplayer dvd://1 -vf cropdetect | ||
+ | </ | ||
* Mencoder + XviD | * Mencoder + XviD | ||
- | Does mencoder ignore my xvidencopts flags?? | + | Does mencoder ignore my xvidencopts flags?? |
- | bitrate=foo value, it ignores it completely and seems to want to set it | + | |
- | to it's own value. | + | |
* images | * images | ||
- | mencoder mf:// | + | < |
- | harddup -oac copy -of avi -o output.avi -audiofile audio.mp3 | + | mencoder mf:// |
+ | </ | ||
# Expanding | # Expanding | ||
- | Some videos (PAL DVDs, often) will come in 4:3 aspect with squished | + | Some videos (PAL DVDs, often) will come in 4:3 aspect with squished displays. |
- | displays. | + | |
Pretty simple, but you have to reencode the video with mencoder. | Pretty simple, but you have to reencode the video with mencoder. | ||
+ | < | ||
mencoder foo.mpg -vf expand=320::::: | mencoder foo.mpg -vf expand=320::::: | ||
+ | </ | ||
- | Using a width smaller than the input will just make it fill to that | + | Using a width smaller than the input will just make it fill to that aspect ratio. |
- | aspect ratio. | + | |