2010/08/22

Audio/Video using mencoder

Audio/Video using mencoder

Extracting audio from a video file/從影片提取聲音:
mplayer -dumpaudio nodame_theme.flv -dumpfile nodame_theme.mp3

Extracting video with no sound from a video file/從影片中提取無聲影片:
mencoder -idx -ovc copy -nosound input.avi -o outfile.avi

Combine soundless video with an audio file/為無聲影片配音:
mencoder video.avi -audiofile audio.mp3 -ovc copy -oac copy -o output.avi

Edit/擷取一片段:
mencoder foo.avi -ss 643 -endpos 506 -oac mp3lame -ovc copy -o bar.avi
ss: time stamp of the desired section in seconds/開始秒數
endpos: length of the desired section in seconds/片段長度。單位爲秒。

Convert WMV to AVI/將WMV轉檔為AVI:
mencoder infile.wmv -ofps 23.976 -ovc lavc -oac copy -o outfile.avi

Combine video files/組合影片:
mencoder -oac copy -ovc copy -forceidx foo1.avi foo2.avi -o bar.avi

Change aspect ratio to 16:9/改畫面比例爲16:9:
mencoder -ovc copy -force-avi-aspect 1.77777 -oac mp3lame in.avi -o out.avi

free counters

No comments:

Post a Comment

Related Posts with Thumbnails

Popular Posts (All Time)/滿堂紅

Popular Posts (7 Days)/七日紅