[MPlayer-users] Using ogg file for audio
Dominik Mierzejewski
dominik at rangers.eu.org
Tue Aug 27 17:22:01 CEST 2002
On Tuesday, 27 August 2002, Fabrice DELENTE wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> Hi all.
>
> I have an mpeg-file with two audio tracks. I want to keep only one of those
> tracks (the other one is a commentary and I don't want it).
>
> So I used mpgdemux from the mpgtx-1.1-Glibc2.2 package. I got three chunks,
> one video and two audio. I identified the audio track that I wanted, and it
> turned out to be mp2 audio; so I used mpg123 to turn it into wav, and then
> oggenc to get an ogg-audio file.
Why are you decoding the audio to wav and then encoding it to ogg?? This
doesn't make any sense. Especially, when you...
> So far, so good.
>
> But when I want to make an avi out of the video chunk and this ogg file, I
> get a segfault! Here is the GDB output:
>
> $ gdb mencoder
[...]
> (gdb) run chunk-0.m2v -vop scale=480:360 -audiofile audio.ogg -forceidx
> -oac mp3lame -lameopts q=1:vbr=3
... reencode it back to mp3 again.
Just use the extracted mp2 track for audio and reencode it straight to mp3.
--
MPlayer RPMs maintainer: http://www.piorunek.pl/~dominik/linux/pkgs/mplayer/
"The Universe doesn't give you any points for doing things that are easy."
-- Sheridan to Garibaldi in Babylon 5:"The Geometry of Shadows"
More information about the MPlayer-users
mailing list