Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Encoding to Ogg Vorbis with MEncoder
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
scubed
Tux's lil' helper
Tux's lil' helper


Joined: 06 Jun 2003
Posts: 122

PostPosted: Fri Dec 15, 2006 1:18 am    Post subject: Encoding to Ogg Vorbis with MEncoder Reply with quote

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
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Fri Dec 15, 2006 3:40 am    Post subject: Re: Encoding to Ogg Vorbis with MEncoder Reply with quote

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
View user's profile Send private message
beandog
Bodhisattva
Bodhisattva


Joined: 04 May 2003
Posts: 2072
Location: /usa/utah

PostPosted: Fri Dec 15, 2006 4:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum