PROBABLY SOLVED Re: [MEncoder-users] mencoder + mplex problem

Tomáš Bažant tomas.bazant at rozhlas.cz
Fri Feb 17 12:08:05 CET 2006



Nico Sabbi wrote:
> Tomáš Bažant wrote:
>> thank you for your advice, it helped me. But what if I have avi with 
>> ac3 track and do not want to recode it but just mux it? the mencoder 
>> manual recommends using -oac copy but even if it looks logic and is 
>> fairly well playable in mencoder, no hw dvd player will actually play 
>> the resulting DVD authored by dvdauthor - and it is not dvdauthor 
>> mistake.....
>>
>> i discovered the following procedure which will probably work for me:
>>
>> # join AVIs (if they are more than one)
>> nice -n +5 mencoder -of avi -oac copy -ovc copy -o serenity.avi 
>> serenity.cd1.avi serenity.cd2.avi
>>
>> # extract audio track from the result
>> nice -n +5 mplayer -dumpaudio -dumpfile serenity.ac3 serenity.avi
>>
>> # do the video encoding itself
>> nice -n +10 \
>> mencoder serenity.avi \
>> -of mpeg \
>> -mpegopts format=dvd \
>> -ofps 24000/1001 \
>> -vf scale=720:-10,expand=720:576,harddup \
>> -nosound \
>> -ovc lavc \
>> -lavcopts 
>> vcodec=mpeg2video:keyint=15:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=6500:aspect=4/3:dc=10:nr=300 
>> \
>> -o serenity.tmp.m2v
>>
>> # extract raw mpeg2 video stream from the result
>> nice -n +5 mplayer -dumpvideo -dumpfile serenity.m2v serenity.tmp.m2v
>>
>> # mux the video together with the audio
>> nice -n +5 mplex -f 8 -o serenity.nosub.mpeg serenity.tmp.m2v 
>> serenity.ac3
> 
> why don't you simply use
> mencoder serenity.avi \
> -of mpeg \
> -mpegopts format=dvd \
> -oac copy \
> -ofps 24000/1001 \
> -vf scale=720:-10,expand=720:576,harddup \
> -ovc lavc \
> -lavcopts 
> vcodec=mpeg2video:keyint=15:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=6500:aspect=4/3:dc=10:nr=300 
> \
> -o file.dvd
> 
> I know that there are sync and buffering problems when using telecined 
> content, but so far no one ever reported
> that the ac3 audio track couldn't even be identified/read

this one that you just advised me works perfectly fine but on computer 
but got pausing o three HW DVD players that i rtied - the pauses got 
more and more often and the dvd definitely stop playing and i was not 
able to manipulate it...

but now I founf that the procedure i posted before is not perfect 
either: mplex won't eat all the ac3 track - it stops at the brake of the 
ac3 where the 2 AVIs got joined before with the report

**ERROR: [mplex] Can't find next AC3 frame: @ 207087104 we have 4597 - 
broken bit-stream?

=> so i'll have to reencode the ac3 stream anyway to be able to mux 
it....what a pity





> 
> 
> -- 
> Email.it, the professional e-mail, gratis per te: http://www.email.it/f
> 
> Sponsor:
> Solo 10 Euro per chiamare in tutto il mondo!! Scopri il vantaggio di 
> Email Phone Card,        clicca subito
> Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2685&d=17-2
> 
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/mencoder-users
> 




More information about the MEncoder-users mailing list