Mercurial > mplayer.hg
comparison DOCS/xml/en/faq.xml @ 15830:d2b045f3261d
New entry: how to make a (S)VCD with MEncoder.
Deleted entry: MP2 files are played out of the box.
author | gpoirier |
---|---|
date | Mon, 27 Jun 2005 18:59:23 +0000 |
parents | e807a82eeb06 |
children | 63eed1252f51 |
comparison
equal
deleted
inserted
replaced
15829:96b84e3a0d96 | 15830:d2b045f3261d |
---|---|
979 Badly interleaved files and <option>-cache</option> don't work well together. | 979 Badly interleaved files and <option>-cache</option> don't work well together. |
980 Try <option>-nocache</option>. | 980 Try <option>-nocache</option>. |
981 </para></answer> | 981 </para></answer> |
982 </qandaentry> | 982 </qandaentry> |
983 | 983 |
984 <qandaentry> | |
985 <question><para> | |
986 How can I play MPEG Layer 2 (MP2) audio files? | |
987 </para></question> | |
988 <answer><para> | |
989 You have to use <option>-rawaudio on:format=0x50</option>. | |
990 </para></answer> | |
991 </qandaentry> | |
992 </qandadiv> | |
993 | |
994 | 984 |
995 <qandadiv id="faq-driver"> | 985 <qandadiv id="faq-driver"> |
996 <title>Video/audio driver problems (vo/ao)</title> | 986 <title>Video/audio driver problems (vo/ao)</title> |
997 | 987 |
998 <qandaentry> | 988 <qandaentry> |
1320 </para></answer> | 1310 </para></answer> |
1321 </qandaentry> | 1311 </qandaentry> |
1322 | 1312 |
1323 <qandaentry> | 1313 <qandaentry> |
1324 <question><para> | 1314 <question><para> |
1325 How can I create VCDs? | 1315 How can I create (S)VCDs automatically? |
1326 </para></question> | 1316 </para></question> |
1327 <answer><para> | 1317 <answer><para> |
1328 Try the <filename>mencvcd</filename> script from the <filename class="directory">TOOLS</filename> | 1318 Try the <filename>mencvcd</filename> script from the <filename class="directory">TOOLS</filename> |
1329 subdirectory. With it you can encode DVDs or other movies to VCD or SVCD format | 1319 subdirectory. With it you can encode DVDs or other movies to VCD or SVCD format |
1330 and even burn them directly to CD. | 1320 and even burn them directly to CD. |
1321 </para></answer> | |
1322 </qandaentry> | |
1323 | |
1324 <qandaentry> | |
1325 <question><para> | |
1326 How can I create SVCDs? | |
1327 </para></question> | |
1328 <answer><para> | |
1329 Newer versions of <application>MEncoder</application> can directly | |
1330 generate MPEG-2 files that can be used as a base to create a (S)SVCD and | |
1331 are likely to be playable out of the box on all platforms (for example | |
1332 to share a video from a digital camcorder with your computer-illiterate | |
1333 friends). | |
1334 <screen> | |
1335 mencoder -of mpeg -oac toolame -toolameopts br=224 -srate 44100 \ | |
1336 -af-adv force=1 -ovc lavc -mpegopts format=xsvcd -vf harddup -ofps 25 \ | |
1337 -lavcopts vcodec=mpeg2video:mbd=2:keyint=25:vrc_buf_size=917:vrc_minrate=600:vbitrate=2500:vrc_maxrate=2500 \ | |
1338 <replaceable>in.avi</replaceable> -o <replaceable>xsvcd.mpg</replaceable> | |
1339 </screen> | |
1340 This will convert the input file <replaceable>in.avi</replaceable> into | |
1341 the output file <replaceable>xsvcd.mpg</replaceable>, converting the | |
1342 audio with <systemitem class="library">toolame</systemitem> at 224kbps | |
1343 and the video with <systemitem class="library">libavcodec</systemitem>. | |
1344 </para><para> | |
1345 Please note that in order to make the GOP structure SVCD compliant the | |
1346 <option>keyint</option> option should be 15 for PAL and 18 for NTSC, | |
1347 although very often files with much longer GOPs play correctly (25 should | |
1348 never lead to any problem). | |
1349 Also, even though leaving out <option>-ofps</option> should work in most | |
1350 cases PAL requires <option>-ofps</option> 25 and NTSC | |
1351 <option>-ofps</option> 30000/1001. | |
1352 </para><para> | |
1353 As far as the audio is concerned, SVCD only support MPEG-1 layer II audio, | |
1354 therefore you have to use either | |
1355 <systemitem class="library">toolame</systemitem>, | |
1356 <systemitem class="library">twolame</systemitem>, or as a last resort | |
1357 <systemitem class="library">libavcodec</systemitem>'s MPEG-1 layer II | |
1358 encoder (as its quality is far from being as good as the former two | |
1359 libraries). | |
1360 Both <systemitem class="library">toolame</systemitem> and | |
1361 <systemitem class="library">twolame</systemitem> follow the same syntax, | |
1362 so you depending on which one you managed to install, the example only | |
1363 requires a small chance, but if you need to use | |
1364 <systemitem class="library">libavcodec</systemitem>'s MPEG-1 layer II | |
1365 encoder, replace | |
1366 <screen> | |
1367 -oac toolame -toolameopts br=224 | |
1368 </screen> | |
1369 by | |
1370 <screen> | |
1371 -oac lavc -lavcopts acodec=mp2:abitrate=224 | |
1372 </screen> | |
1373 </para><para> | |
1374 The resulting file <replaceable>xsvcd.mpg</replaceable> is an extended | |
1375 SVCD (that is why it is called xsvcd), mainly because it does not contain | |
1376 scan offsets, so if you need to generate an SVCD image out of it, you | |
1377 should pass it to | |
1378 <ulink url="http://www.gnu.org/software/vcdimager/vcdimager.html">vcdimager</ulink>. | |
1331 </para></answer> | 1379 </para></answer> |
1332 </qandaentry> | 1380 </qandaentry> |
1333 | 1381 |
1334 <qandaentry> | 1382 <qandaentry> |
1335 <question><para> | 1383 <question><para> |