Hi to everyone.

My question is in regards to Audio/Video sync when mplex'ing MPEG2 video with AC3 (or MP2) audio.
The video is ripped from DVD and sometimes re-encoded with TMPGenc on a windoze machine. I'm using the "-f 8" mplex profile, which works flawlessly with dvdauthor.


I have noticed that when I do not explicitly specify an A/V delay (with "-O"), mplex tries to decide for me:

[EMAIL PROTECTED] dvd]# mplex -f 8 test.m2v test.ac3 -o test.mpg
INFO: [mplex] mplex version 1.6.2 (2.2.3 $Date: 2004/01/13 20:45:26 $)
.......snip.........
INFO: [mplex] Run-in Sectors = 89 Video delay = 13019 Audio delay = 14520

The 2 numbers listed (13019 and 14521) are not always so close...typically they differ by 3003, which I assume is mpeg-clock-ticks (1/90,000 th of a second). The actual delay chosen by mplex differs for every set of input files I use, but is ALWAYS the same when running mplex with the same 2 input files (it doesnt change no matter how many times I run mplex on the files).... What is mplex basing these delays on????

Also, when I try to specify 0ms (or 0mpt) delay, I do NOT get 2 numbers that match, i get the same 2 numbers(13019 and 14520):

[EMAIL PROTECTED] dvd]# mplex -f 8 -O 0ms test.m2v test.ac3 -o test.mpg
  INFO: [mplex] Run-in Sectors = 89 Video delay = 13019 Audio delay = 14520

Theres something wacky going on here....Heres what I get with "-O 67ms" or "-O 6006mpt"....

[EMAIL PROTECTED] dvd]# mplex -f 8 -O 0ms test.m2v test.ac3 -O 67ms -o test.mpg
INFO: [mplex] Run-in Sectors = 89 Video delay = 13019 Audio delay = 7166793

In this case, in order to get what I beleive to be no A/V delay, I must do this:

[EMAIL PROTECTED] dvd]# mplex -f 8 -O 1501mpt test.m2v test.ac3 -o test.mpg
  INFO: [mplex] Run-in Sectors = 89 Video delay = 14520 Audio delay = 14520

Finally, 2 numbers that match....

I realize that in this case, the difference is only 16ms, but more often than not, the delays that mplex chooses differ by 3003mpt which is 33ms which is noticeable a/v delay in DVD movies....

So my question is this: If I rip a DVD using SmartRipper (in windoze), and it tells me that the a/v delay between the generated m2v and ac3 file is EXACTLY -67ms, wouldn't I need mplex to use video delay 13016 and audio delay 19022 (or any 2 values which differ by 6006mpt (67ms))????, and if so what option would I need to use to specify this?

Thank you VERY MUCH for any help you could offer.

Paul P.
[EMAIL PROTECTED]



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to