You are not logged in.

#1 2016-02-20 18:17:48

porphyry5
Member
Registered: 2014-06-04
Posts: 88

Extract audio stream with mencoder

Using the method recommended at https://wiki.archlinux.org/index.php/ME … _the_audio

mencoder -dvd-device "$ISO" dvd://"$TITLE" -alang "$AUDIOLANG" -chapter "$CHAPTER" -ovc frameno \
-oac lavc -lavcopts acodec=vorbis:abitrate=224 -channels 2 -srate 48000 -o "$AUDIOLANG".avi

I got the following result

$ mencoder -dvd-device "VIDEO_TS" dvd://2 -alang en -chapter "1-14" -ovc frameno -oac lavc -lavcopts acodec=vorbis:abitrate=224 -channels 2 -srate 48000 -o en.avi
. . .
[vorbis @ 0x80daa1c0]The encoder 'vorbis' is experimental but experimental codecs are not enabled, add '-strict -2' if you want to use it.
[vorbis @ 0x80daa1c0]Alternatively use the non experimental encoder 'libvorbis'.
Couldn't open codec vorbis, br=224.

Exiting...

So I added '-strict -2' to the command line, and got

$ mencoder -dvd-device "VIDEO_TS" dvd://2 -alang en -chapter "1-14" -ovc frameno -oac lavc -lavcopts acodec=vorbis:abitrate=224 -channels 2 -srate 48000 -o en.avi -strict -2
MEncoder SVN-r37379 (C) 2000-2015 MPlayer Team
-strict is not an MEncoder option

Exiting... (error parsing command line)

So, if '-strict -2' is not a mencoder option, and vorbis is not enabled, which command/app does it apply to?

Offline

#2 2016-02-20 21:26:27

porphyry5
Member
Registered: 2014-06-04
Posts: 88

Re: Extract audio stream with mencoder

Decided to get it another way, with mplayer, thus

mplayer dvd://2 -dvd-device VIDEO_TS -ao pcm:fast:file=a.wav -vo null -vc null
lame -V2 a.wav a.mp3
mencoder -ovc copy video.avi -oac copy -audiofile a.mp3 -o movie1.avi -mc 0 -noskip

Offline

Board footer

Powered by FluxBB