# HG changeset patch # User gpoirier # Date 1119898763 0 # Node ID d2b045f3261d9a6595297b8cb96198314b9ac25d # Parent 96b84e3a0d96b188ce8e7b6e6f1b59e1d428c647 New entry: how to make a (S)VCD with MEncoder. Deleted entry: MP2 files are played out of the box. diff -r 96b84e3a0d96 -r d2b045f3261d DOCS/xml/en/faq.xml --- a/DOCS/xml/en/faq.xml Mon Jun 27 13:33:40 2005 +0000 +++ b/DOCS/xml/en/faq.xml Mon Jun 27 18:59:23 2005 +0000 @@ -981,16 +981,6 @@ - - -How can I play MPEG Layer 2 (MP2) audio files? - - -You have to use . - - - - Video/audio driver problems (vo/ao) @@ -1322,7 +1312,7 @@ -How can I create VCDs? +How can I create (S)VCDs automatically? Try the mencvcd script from the TOOLS @@ -1333,6 +1323,64 @@ +How can I create SVCDs? + + +Newer versions of MEncoder can directly +generate MPEG-2 files that can be used as a base to create a (S)SVCD and +are likely to be playable out of the box on all platforms (for example +to share a video from a digital camcorder with your computer-illiterate +friends). + +mencoder -of mpeg -oac toolame -toolameopts br=224 -srate 44100 \ +-af-adv force=1 -ovc lavc -mpegopts format=xsvcd -vf harddup -ofps 25 \ +-lavcopts vcodec=mpeg2video:mbd=2:keyint=25:vrc_buf_size=917:vrc_minrate=600:vbitrate=2500:vrc_maxrate=2500 \ +in.avi -o xsvcd.mpg + +This will convert the input file in.avi into +the output file xsvcd.mpg, converting the +audio with toolame at 224kbps +and the video with libavcodec. + +Please note that in order to make the GOP structure SVCD compliant the + option should be 15 for PAL and 18 for NTSC, +although very often files with much longer GOPs play correctly (25 should +never lead to any problem). +Also, even though leaving out should work in most +cases PAL requires 25 and NTSC + 30000/1001. + +As far as the audio is concerned, SVCD only support MPEG-1 layer II audio, +therefore you have to use either +toolame, +twolame, or as a last resort +libavcodec's MPEG-1 layer II +encoder (as its quality is far from being as good as the former two +libraries). +Both toolame and +twolame follow the same syntax, +so you depending on which one you managed to install, the example only +requires a small chance, but if you need to use +libavcodec's MPEG-1 layer II +encoder, replace + +-oac toolame -toolameopts br=224 + +by + +-oac lavc -lavcopts acodec=mp2:abitrate=224 + + +The resulting file xsvcd.mpg is an extended +SVCD (that is why it is called xsvcd), mainly because it does not contain +scan offsets, so if you need to generate an SVCD image out of it, you +should pass it to +vcdimager. + + + + + How can I join two video files? @@ -1462,4 +1510,4 @@ - + \ No newline at end of file