[MEncoder-users] How to rip only the sound part of a video file?
Shriramana Sharma
samjnaa at gmail.com
Sun Mar 9 02:39:35 CET 2008
Hello. I am new to mencoder so please be patient with me.
I have read the following FAQ:
http://www.mplayerhq.hu/DOCS/HTML/en/faq.html#id2555924
How can I encode an audio only file?
but I don't have any aconvert command on my Ubuntu system.
Also, while trying:
http://www.mplayerhq.hu/DOCS/HTML/en/faq.html#id2555742
How do I encode only sound from a music video?
If I try:
mplayer -ao pcm:file=encode movie-part-1.mpeg &
flac -8 encode movie-part-1.flac.audioonly
I get the following error:
mplayer: could not connect to socket
mplayer: No such file or directory
though I have created the pipe called encode. Then I tried two shells,
one writing to the pipe without the & and another reading from the pipe.
Then it worked to an extent, but I then got the following unexpected
error on the mplayer side:
Forced audio codec: mad
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 44100 Hz, 2 ch, s16le, 224.0 kbit/15.87% (ratio: 28000->176400)
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
...
...
...
Cannot sync MAD frame: 0.273 ct: 0.038 112779/112779 0% 0% 1.6%
100637 0
Cannot sync MAD frame
Cannot sync MAD frame
Cannot sync MAD frame: 0.236 ct: 0.066 112786/112786 0% 0% 1.6%
100637 0
Cannot sync MAD frame: 0.196 ct: 0.070 112787/112787 0% 0% 1.6%
100637 0
Cannot sync MAD frame: 0.156 ct: 0.074 112788/112788 0% 0% 1.6%
100637 0
Cannot sync MAD frame: 0.116 ct: 0.078 112789/112789 0% 0% 1.6%
100637 0
Cannot sync MAD frame: 0.076 ct: 0.082 112790/112790 0% 0% 1.6%
100637 0
Cannot sync MAD frame: 0.036 ct: 0.085 112791/112791 0% 0% 1.6%
100637 0
Cannot sync MAD frame: -0.004 ct: 0.085 112792/112792 0% 0% 1.6%
100637 0
Cannot sync MAD frame: -0.044 ct: 0.081 112793/112793 0% 0% 1.6%
100637 0
Cannot sync MAD frame: -0.084 ct: 0.077 112794/112794 0% 0% 1.6%
100637 0
A:4512.3 V:4512.3 A-V: -0.084 ct: 0.073 112794/112794 0% 0% 1.6%
100637 0
Exiting... (End of file)
and the following expected correspoding one on the flac side:
pipe: 37% complete, ratio=0.382pipe: WARNING: unexpected EOF; expected
536869888 samples, got 198959104 samples
pipe: 37% complete, ratio=0.382
As I have previously used this entire file without problems, I don't see
why I am getting some "cannot sync frame" error. Versions related are:
mplayer 2:1.0~rc2-0ubuntu1
libmad0 0.15.1b-2.1ubuntu1
The file is a regular DAT file from a VCD -- Gspot tells me it is an
MPEG-1 System Stream container with MPEG-1 as the video codec and MPEG-1
Layer 2 as the audio codec.
Please help.
Thank you.
More information about the MEncoder-users
mailing list