[MPlayer-users] ac3 for mplex
"Антонов Дмитрий"
t0nik at yandex.ru
Sat Dec 13 11:48:13 CET 2003
>How do I best extract an ac3 audio stream from a VOB suitable for
>mplex'ing?
>
>
>The long version:
>
>I've checked the archives, and have found a dev discussion about adding
>ac3 (-of) output support in mencoder, but since the discussion is
>currently active, I assume the status is it's not supported.
>
>One method I've found so far is tcextract from the transcode package.
>
>Ofcourse, I'd prefer using mplayer/mencoder and mjpegtools+dvdauthor.
>Since the below works beautifully for video dump for mplex'ing;
>
>mencoder test.vob -nosound -ovc lavc -lavcopts
>vcodec=mpeg2video:keyint=132:vbitrate=9800:autoaspect:mbd=2:precmp=2:cmp
>=2:subcmp=2:trell:cbp:tcplx_mask=0.1:scplx_mask=0.1:vpass=1 -sws 2 -vf
>crop=702:572:10:4,scale=720:576 -of mpeg -o /dev/null
>mplayer test.mpg -dumpvideo -dumpfile test.m2v
>(BTW; why does the manpage say that this step is not useful? How else
>can I dump video for mplex'ing? Since mplex doesn't take the mpeg
>produced directly from mencoder, I mean...)
>
>then I was (naively) hoping that this could work equally beautiful
>
>mplayer test.vob -dumpaudio -dumpfile test.ac3 -vo null
>
>such that I could simply
>
>mplex -f 8 -V -b 230 -M -o outfile.mpg test.m2v test.ac3
>
>and continue dvdauthor'ing. This didn't work... how do I convert this
>test.ac3 to an AC3 stream that mplex understands?
>
>HR
I use this
mplayer dvd://1 -chapter 29-32 -dumpstream -dumpfile the_matrix_29-32.vob
mplayer the_matrix_29-32.vob -dumpvideo -dumpfile the_matrix_29-32.m2v
mplayer the_matrix_29-32.vob -aid 128 -dumpaudio -dumpfile the_matrix_29-32_en.ac3
mplayer the_matrix_29-32.vob -aid 129 -dumpaudio -dumpfile the_matrix_29-32_ru.ac3
or this
mplayer dvd://1 -chapter 29-32 -dumpvideo -dumpfile the_matrix_29-32.m2v
mplayer dvd://1 -chapter 29-32 -dumpaudio -dumpfile the_matrix_29-32_en.ac3
mplayer dvd://1 -chapter 29-32 -alang ru -dumpaudio -dumpfile the_matrix_29-32_ru.ac3
and after
mplex -f 8 -V -o the_matrix_29-32.mpg the_matrix_29-32.m2v the_matrix_29-32_en.ac3 the_matrix_29-32_ru.ac3
dvdauthor -o mtrx_minidvd the_matrix_29-32.mpg
dvdauthor -o mtrx_minidvd -T
And now i have miniDVD with 2soundtracks
mplayer dvd://1 -dvd-device mtrx_minidvd [-aid 128]
or
mplayer dvd://1 -dvd-device mtrx_minidvd -aid 129
or
ogle mtrx_minidvd
<<It works!>>
--
_______________________
best regards
t0nik
More information about the MPlayer-users
mailing list