Difference between revisions of "Mencoder"

From Tomelec
Jump to: navigation, search
(Created page with "== DV to MPEG4 with deinterlacing == Encode a raw DV file from a digital video camera to MPEG4 video with mp3 audio. <nowiki>mencoder input.dv -vf pp=lb -ovc lavc -lavcopts vcod...")
 
Line 3: Line 3:
 
  <nowiki>mencoder input.dv -vf pp=lb -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=2000 -oac mp3lame -lameopts vbr=3 -o output.avi</nowiki>
 
  <nowiki>mencoder input.dv -vf pp=lb -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=2000 -oac mp3lame -lameopts vbr=3 -o output.avi</nowiki>
 
Adjust ''vbitrate'' to your needs. ''vbitrate=2000'' produces a quite good quality at a small filesize for videos in TV resolution.
 
Adjust ''vbitrate'' to your needs. ''vbitrate=2000'' produces a quite good quality at a small filesize for videos in TV resolution.
 +
 +
== Scaling and MPEG4 encoding ==
 +
Scale a high resolution video down to a lower resolution, preserving the aspect ratio. MPEG4 encoding options as usual.
 +
This scales any video that ''mencoder'' is able to read to a 480p video (480 pixels high).
 +
<nowiki>mencoder input.mov -vf scale=-3:480 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=3000 -oac mp3lame -lameopts vbr=3 -o output.avi</nowiki>
 +
'-vf scale=-3:' calculates the with of the video using the original aspect ratio and the desired height.

Revision as of 09:59, 14 May 2012

DV to MPEG4 with deinterlacing

Encode a raw DV file from a digital video camera to MPEG4 video with mp3 audio.

mencoder input.dv -vf pp=lb -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=2000 -oac mp3lame -lameopts vbr=3 -o output.avi

Adjust vbitrate to your needs. vbitrate=2000 produces a quite good quality at a small filesize for videos in TV resolution.

Scaling and MPEG4 encoding

Scale a high resolution video down to a lower resolution, preserving the aspect ratio. MPEG4 encoding options as usual. This scales any video that mencoder is able to read to a 480p video (480 pixels high).

mencoder input.mov -vf scale=-3:480 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=3000 -oac mp3lame -lameopts vbr=3 -o output.avi

'-vf scale=-3:' calculates the with of the video using the original aspect ratio and the desired height.