View previous topic :: View next topic |
Author |
Message |
scubed Tux's lil' helper
Joined: 06 Jun 2003 Posts: 122
|
Posted: Fri Dec 15, 2006 1:18 am Post subject: Encoding to Ogg Vorbis with MEncoder |
|
|
I am trying to change the audio in a file to Ogg Vorbis.
Usually, I do this by extracting the audio and then using
oggenc to do the encoding. I would like to do it directly
from mencoder.
So far, I have tried this command:
Code: | mencoder \
file.in -o file.mp4 \
-ovc copy -of lavf -lavfopts \
i_certify_that_my_video_stream_does_not_use_b_frames:format=mp4 \
-oac lavc -lavcopts acodec=vorbis |
But, it doesn't work. How do I make it encode using libvorbis?
Is lavc the right way to do it? What is the full command?
The above makes it look like it is encoding with vorbis, but when
I try to play it, it says:
Code: | Cannot find codec for audio format 0x6F56736D. |
If I try to force it, I get:
Code: | Forced audio codec: +vorbis
Opening audio decoder: [libvorbis] Ogg/Vorbis audio decoder
ad_vorbis, extradata seems to be absent!, exit
ADecoder init failed :( |
|
|
Back to top |
|
|
Sadako Advocate
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Fri Dec 15, 2006 3:40 am Post subject: Re: Encoding to Ogg Vorbis with MEncoder |
|
|
As much as I generally prefer mencoder, I think transcode would be better for this task.
I think the following should do what you want;
Code: | transcode -i file.in -P 1 -N 0xfffe -y raw -o out.mp4 |
_________________ "You have to invite me in" |
|
Back to top |
|
|
beandog Bodhisattva
Joined: 04 May 2003 Posts: 2072 Location: /usa/utah
|
Posted: Fri Dec 15, 2006 4:00 pm Post subject: |
|
|
Hmm, works for me. Make sure mplayer is compiled with vorbis support. _________________ If it ain't broke, tweak it. dvds | blurays | blog | wiki |
|
Back to top |
|
|
|