Mencoder Conversions Extract audio from a video


Avi 2-pass PAL (NTSC —> 30 fps ; and 720:480)

mencoder -forceidx -ofps 25 -oac mp3lame -lameopts abr:br=128 -srate 48000 -vf scale=720:576,harddup -ovc xvid -xvidencopts bitrate=900:pass=1 INPUT -o /dev/null

mencoder -forceidx -ofps 25 -oac mp3lame -lameopts abr:br=128 -srate 48000 -vf scale=720:576,harddup -ovc xvid -xvidencopts bitrate=900:pass=2 INPUT -o OUTPUT.AVI

Options to add

video options

-aspect 16:9 or 4:3
-speed value 0.1 –>1; 1—>boh
-ss 00:00:00 -endpos hh:mm:ss
-vf pp=lb
-audio-delay 2.200
-vf rotate=flip
-xvidencopts bitrate=900:pass=1:turbo:nochroma_me:notrellis:max_bframes=0:vhq=0:threads=2
-xvidencopts bitrate=900:pass=1:turbo:vhq=0:threads=2
-xvidencopts bitrate=900:pass=1:vhq=2:bvhq=1:chroma_opt:quant_type=mpeg:threads=2
-xvidencopts bitrate=900:pass=1:chroma_opt:vhq=4:bvhq=1:quant_type=mpeg:threads=2

audio options

-lameopts vbr=4
-lameopts cbr:br=128
-lameopts abr:br=128
-af volume=10

extract pictures from a video

ffmpeg -i Flashqaevpd -y -an -sameq -f image2 -r 30 nome%03d.jpg

extract audio

mencoder INPUT.avi -ovc raw -oac mp3lame -of rawaudio -o OUTPUT.mp3

-aid 128 —-> extract the 128th audio track

raw avi

ffmpeg -i yourfile.mod -vcodec rawvideo -acodec pcm_s16le -r 15 -s 720×480 -aspect 4:3 yourfile.avi

get video informations form mplayer

mplayer -identify INPUT -ao null -vo null -frames 0 2>/dev/null | grep ^ID_

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: