# HG changeset patch # User torinthiel # Date 1165009962 0 # Node ID ae8c4d78c18a73c353ab268d58fb24b45b679ef0 # Parent 0f38d7413770c8337d10d4f19868171015061cec Reformat examples: - break overly long lines - indent continuation lines - add missing tags diff -r 0f38d7413770 -r ae8c4d78c18a DOCS/xml/en/mencoder.xml --- a/DOCS/xml/en/mencoder.xml Fri Dec 01 21:42:55 2006 +0000 +++ b/DOCS/xml/en/mencoder.xml Fri Dec 01 21:52:42 2006 +0000 @@ -245,9 +245,9 @@ Creating a Macromedia Flash video suitable for playback in a web browser with the Macromedia Flash plugin: -mencoder input.avi -o output.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc \ --lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 \ --srate 22050 +mencoder input.avi -o output.flv -of lavf \ + -oac mp3lame -lameopts abr:br=56 -srate 22050 -ovc lavc \ + -lavcopts vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 @@ -321,7 +321,8 @@ AVI while copying the audio track. mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o /dev/null -mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vpass=2 -oac copy -o output.avi +mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vpass=2 \ + -oac copy -o output.avi @@ -334,8 +335,10 @@ Be careful using this method as it may lead to audio/video desync in some cases. -mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac mp3lame -lameopts vbr=3 -o /dev/null -mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vpass=2 -oac mp3lame -lameopts vbr=3 -o output.avi +mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 \ + -oac mp3lame -lameopts vbr=3 -o /dev/null +mencoder dvd://2 -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vpass=2 \ + -oac mp3lame -lameopts vbr=3 -o output.avi @@ -374,9 +377,10 @@ encode for PSP -mencoder -oac lavc -ovc lavc -of lavf -lavcopts aglobal=1:vglobal=1:vcodec=mpeg4:acodec=aac \ --af lavcresample=24000 -vf harddup -lavfopts format=psp:i_certify_that_my_video_stream_does_not_use_b_frames \ --ofps 30000/1001 input.video -o output.psp +mencoder -ofps 30000/1001 -af resample=24000 -vf harddup -of lavf \ +-oac lavc -ovc lavc -lavcopts aglobal=1:vglobal=1:vcodec=mpeg4:acodec=aac \ +-lavfopts format=psp:i_certify_that_my_video_stream_does_not_use_b_frames \ +input.video -o output.psp Note that you can set the title of the video with . @@ -406,19 +410,22 @@ Example: -mencoder input.avi -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -oac copy other_options -o output.mpg +mencoder input.avi -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video \ + -oac copy other_options -o output.mpg Creating an MPEG-1 file suitable to be played on systems with minimal multimedia support, such as default Windows installs: -mencoder input.avi -of mpeg -mpegopts format=mpeg1:tsaf:muxrate=2000 -o output.mpg -oac lavc -ovc lavc \ --lavcopts acodec=mp2:abitrate=224:vcodec=mpeg1video:vbitrate=1152:keyint=15:mbd=2:aspect=4/3 +mencoder input.avi -of mpeg -mpegopts format=mpeg1:tsaf:muxrate=2000 \ + -o output.mpg -oac lavc -lavcoptc acodec=mp2:abitrate=224 -ovc lavc \ + -lavcopts vcodec=mpeg1video:vbitrate=1152:keyint=15:mbd=2:aspect=4/3 Same, but using libavformat MPEG muxer: -mencoder input.avi -of lavf -lavfopts format=mpg:i_certify_that_my_video_stream_does_not_use_b_frames \ --ovc lavc -lavcopts vcodec=mpeg1video:vrc_buf_size=327:keyint=15:vrc_maxrate=1152:vbitrate=1152:vmax_b_frames=0 \ --o VCD.mpg -ofps 25 -vf scale=352:288,harddup -oac lavc -lavcopts acodec=mp2:abitrate=224 +mencoder input.avi -o VCD.mpg -ofps 25 -vf scale=352:288,harddup -of lavf \ + -lavfopts format=mpg:i_certify_that_my_video_stream_does_not_use_b_frames \ + -oac lavc -lavcopts acodec=mp2:abitrate=224 -ovc lavc \ + -lavcopts vcodec=mpeg1video:vrc_buf_size=327:keyint=15:vrc_maxrate=1152:vbitrate=1152:vmax_b_frames=0 \ @@ -458,7 +465,8 @@ Usage: -mencoder input.mpg -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -vf scale=640:480 -o output.avi +mencoder input.mpg -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell \ + -vf scale=640:480 -o output.avi @@ -505,7 +513,8 @@ Example: -mencoder input.nsv -oac copy -fafmttag 0x706D -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -o output.avi +mencoder input.nsv -oac copy -fafmttag 0x706D \ + -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -o output.avi @@ -543,7 +552,8 @@ Creating an MPEG-4 file from all the JPEG files in the current directory: -mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o output.avi +mencoder mf://*.jpg -mf w=800:h=600:fps=25:type=jpg -ovc lavc \ + -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o output.avi @@ -552,7 +562,8 @@ Creating an MPEG-4 file from some JPEG files in the current directory: -mencoder mf://frame001.jpg,frame002.jpg -mf w=800:h=600:fps=25:type=jpg -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o output.avi +mencoder mf://frame001.jpg,frame002.jpg -mf w=800:h=600:fps=25:type=jpg \ + -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o output.avi @@ -563,7 +574,7 @@ contains the list of files to use as source, one per line): mencoder mf://@list.txt -mf w=800:h=600:fps=25:type=jpg \ --ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o output.avi + -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell -oac copy -o output.avi @@ -657,17 +668,20 @@ Copying two subtitles from a DVD while doing two pass encoding -rm subtitles.idx subtitles.sub -mencoder dvd://1 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -vobsubout subtitles -vobsuboutindex 0 -sid 2 -mencoder dvd://1 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:vpass=2 -vobsubout subtitles -vobsuboutindex 1 -sid 5 Copying a French subtitle from an MPEG file -rm subtitles.idx subtitles.sub -mencoder movie.mpg -ifo movie.ifo -vobsubout subtitles -vobsuboutindex 0 -vobsuboutid fr -sid 1 -nosound -ovc copy +rm subtitles.idx subtitles.sub +mencoder movie.mpg -ifo movie.ifo -vobsubout subtitles -vobsuboutindex 0 \ + -vobsuboutid fr -sid 1 -nosound -ovc copy @@ -709,7 +723,8 @@ Usage -mencoder sample-svcd.mpg -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:trell:autoaspect -vf crop=714:548:0:14 -oac copy -o output.avi +mencoder sample-svcd.mpg -vf crop=714:548:0:14 -oac copy -ovc lavc \ + -lavcopts vcodec=mpeg4:mbd=2:trell:autoaspect -o output.avi