[MPlayer-DOCS] [PATCH] new FAQ item: audio-only encoding

Nico Sabbi nsabbi at tiscali.it
Thu Nov 25 00:27:07 CET 2004


Dominik 'Rathann' Mierzejewski wrote:

>Since people have been asking about this over and over again,
>here comes a patch for faq.xml:
>
>  
>
>------------------------------------------------------------------------
>
>Index: faq.xml
>===================================================================
>RCS file: /cvsroot/mplayer/main/DOCS/xml/en/faq.xml,v
>retrieving revision 1.53
>diff -u -r1.53 faq.xml
>--- faq.xml	24 Nov 2004 11:23:21 -0000	1.53
>+++ faq.xml	24 Nov 2004 23:17:44 -0000
>@@ -1439,6 +1439,28 @@
> </para></answer>
> </qandaentry>
> 
>+<qandaentry>
>+<question><para>
>+How do I encode only sound from a music video?
>+</para></question>
>+<answer><para>
>+It's not possible directly, but you can try this:
>+<screen>
>+    mencoder -ovc frameno -oac mp3lame -lameopts your_opts -o music.avi dvd://1
>+    mplayer -dumpaudio -dumpfile music.mp3 music.avi
>+    rm music.avi
>+</screen>
>  
>

this doesn't save  pure audio: it contains the infamous (when will make 
it optional?)
4 bytes before every packet. In the case of mp2/mp3 -dumpaudio works as 
expected
if you add -of mpeg, though

>+or, since you already have <application>LAME</application>, this:
>+<screen>
>+    mkfifo encode
>+    mplayer -oac pcm -aofile encode dvd://1 &amp;
>+    lame your_opts encode music.mp3
>+    rm encode
>+</screen>
>+The latter allows you to use any encoder, not only <application>LAME</application>.
>+</para></answer>
>+</qandaentry>
>+
> </qandadiv>
> </qandaset>
> 
>  
>
>------------------------------------------------------------------------
>
>_______________________________________________
>MPlayer-DOCS mailing list
>MPlayer-DOCS at mplayerhq.hu
>http://mplayerhq.hu/mailman/listinfo/mplayer-docs
>  
>




More information about the MPlayer-DOCS mailing list