PDA

View Full Version : DVD to Tivo audio synch screwed



sstormont
10-16-2006, 01:50 PM
The process that I have been using to put DVDs on my DirecTivo has been working great until now. I've got a movie, that when sent to my Tivo, has an audio synch issue. The audio seems to start too late. The way that I have been putting DVDs onto my DirecTivo has been this:

1) Run DVD Decrypter.
2) Enter stream processing mode and select the main movie and one audio stream.
3) Make sure that the "Demux" option is selected for both the movie and the audio stream.
4) When that is finished, I run mplex_cc -f 10 audio.AC3 movie.m2v -o new.ty
5) Run Tivoserver and stream movie to Tivo

For this job, the information provided by DVD Decrypter says that the delay is 0 ms. Since I can't use a negative delay with the offset flag in mplex_CC (-O -500ms) I'm stuck as to what I should do.

phat_bastard
10-16-2006, 03:15 PM
Do you get an error or buffer underruns when you use that command line? Is the mplex build you're using based on bcc's code? If so I've multiplexed lots of stuff calling for video delays just like you're needing (-O -NNNms) with no problems.

sstormont
10-16-2006, 03:25 PM
I used the mplex_cc build by nova1 that is located here:

http://www.dealdatabase.com/forum/showpost.php?p=234847&postcount=101

I don't get any sort of underruns when I run the command, but I will check again and post the results.

I can't remember what the exact error is when I tried to use a negative ms delay with the -O command, but I'll check that too and post it.

cheer
10-16-2006, 03:33 PM
You might actually swing over to the development forum and take a look at bcc's ty-enabled ffmpeg, which I think has sort of superceded this product. (I don't use either so I don't have any better advice than that.)

nova1
10-16-2006, 03:52 PM
if audio starts later than video then you need a positive -O option.

sstormont
10-16-2006, 03:53 PM
I spoke incorrectly. The audio is starting to early.

sstormont
10-18-2006, 09:02 AM
Not sure what I was doing wrong, but I was able to get a negative offset working, but I can't get it to work with anything over a -2100ms delay. Here is what I get when I do a -2100ms delay:

D:\temp>mplex_cc -f 10 -O -2100ms test.ac3 test.m2v -o test.ty
INFO: [MPLEX_CC] mplex version 1.6.2 (2.2.3 $Date: 2004/01/13 20:45:26 $)
INFO: [MPLEX_CC] File test.ac3 looks like an AC3 Audio stream.
INFO: [MPLEX_CC] File test.m2v looks like an MPEG Video stream.
INFO: [MPLEX_CC] Video stream 0: profile 10 selected - ignoring non-standard
options!
INFO: [MPLEX_CC] Found 1 audio streams and 1 video streams
INFO: [MPLEX_CC] Selecting TY and generic MPEG2 output profile
INFO: [MPLEX_CC] Multiplexing video program stream!
INFO: [MPLEX_CC] Scanning for header info: AC3 Audio stream 00 (test.ac3)
INFO: [MPLEX_CC] AC3 frame size = 1792

INFO: [MPLEX_CC] AC3 AUDIO STREAM:
INFO: [MPLEX_CC] Bit rate : 57344 bytes/sec (448 kbit/sec)
INFO: [MPLEX_CC] Frequency : 48000 Hz
INFO: [MPLEX_CC] Scanning for header info: Video stream e0 (test.m2v)
INFO: [MPLEX_CC] VIDEO STREAM: e0
INFO: [MPLEX_CC] Frame width : 720
INFO: [MPLEX_CC] Frame height : 480
INFO: [MPLEX_CC] Aspect ratio : 16:9 display
INFO: [MPLEX_CC] Picture rate : 29.970 frames/sec
INFO: [MPLEX_CC] Bit rate : 8000000 bits/sec
INFO: [MPLEX_CC] Vbv buffer size : 229376 bytes
INFO: [MPLEX_CC] CSPF : 0
INFO: [MPLEX_CC] SYSTEMS/PROGRAM stream:
INFO: [MPLEX_CC] rough-guess multiplexed stream data rate : 8633400
INFO: [MPLEX_CC] Setting best-guess data rate.
INFO: [MPLEX_CC] Run-in Sectors = 998 Video delay = 170455 Audio delay = 3624
58
INFO: [MPLEX_CC] New sequence commences...
INFO: [MPLEX_CC] Audio bd: buf= 16384 frame=000000 sector=00000000
INFO: [MPLEX_CC] Video e0: buf=2719744 frame=000000 sector=00000000
INFO: [MPLEX_CC] Scanned to end AU 16
INFO: [MPLEX_CC] Running out...
INFO: [MPLEX_CC] Audio bd: buf= 16384 frame=000000 sector=00000000
INFO: [MPLEX_CC] Video e0: buf=2719456 frame=000016 sector=00000018
INFO: [MPLEX_CC] Scanned to end AU 32
INFO: [MPLEX_CC] Running out...
INFO: [MPLEX_CC] Audio bd: buf= 16384 frame=000000 sector=00000000
INFO: [MPLEX_CC] Video e0: buf=2719456 frame=000032 sector=00000039
INFO: [MPLEX_CC] Scanned to end AU 48
INFO: [MPLEX_CC] Running out...
INFO: [MPLEX_CC] Audio bd: buf= 16384 frame=000000 sector=00000000
INFO: [MPLEX_CC] Video e0: buf=2719456 frame=000048 sector=00000060
INFO: [MPLEX_CC] Scanned to end AU 82143
INFO: [MPLEX_CC] Running out...
INFO: [MPLEX_CC] Audio bd: buf= 16384 frame=106989 sector=00106989
INFO: [MPLEX_CC] Video e0: buf=2669076 frame=082143 sector=00096664
INFO: [MPLEX_CC] Scanned to end AU 118935
INFO: [MPLEX_CC] Scanned to end AU 118949
INFO: [MPLEX_CC] Running out...
INFO: [MPLEX_CC] Audio bd: buf= 16384 frame=154944 sector=00154944
INFO: [MPLEX_CC] Video e0: buf=2719280 frame=118935 sector=00139983
INFO: [MPLEX_CC] STREAM bd completed @ frame 154956.
INFO: [MPLEX_CC] STREAM e0 completed @ frame 118949.
INFO: [MPLEX_CC] Multiplex completion at SCR=446644483.
INFO: [MPLEX_CC] Audio bd: buf= 16384 frame=154956 sector=00154957
INFO: [MPLEX_CC] Video e0: buf=2671797 frame=118949 sector=00140001
INFO: [MPLEX_CC] AUDIO_STATISTICS: bd
INFO: [MPLEX_CC] Audio stream length 277682944 bytes.
INFO: [MPLEX_CC] Frames : 154957
INFO: [MPLEX_CC] BUFFERING min 14592 Buf max 14592
INFO: [MPLEX_CC] VIDEO_STATISTICS: e0
INFO: [MPLEX_CC] Video Stream length: 3720363979 bytes
INFO: [MPLEX_CC] Sequence headers: 10524
INFO: [MPLEX_CC] Sequence ends : 6
INFO: [MPLEX_CC] No. Pictures : 118949
INFO: [MPLEX_CC] No. Groups : 10524
INFO: [MPLEX_CC] No. I Frames : 10524 avg. size 73413 bytes
INFO: [MPLEX_CC] No. P Frames : 39877 avg. size 38537 bytes
INFO: [MPLEX_CC] No. B Frames : 68554 avg. size 20582 bytes
INFO: [MPLEX_CC] Average bit-rate : 5999200 bits/sec
INFO: [MPLEX_CC] Peak bit-rate : 8172400 bits/sec
INFO: [MPLEX_CC] BUFFERING min 2589380 Buf max 2719456
INFO: [MPLEX_CC] MUX STATUS: no under-runs detected.
INFO: [MPLEX_CC] Generating master chunk for chunks 0:4095

INFO: [MPLEX_CC] Generating master chunk for chunks 4096:8191

INFO: [MPLEX_CC] Generating master chunk for chunks 8192:12287

INFO: [MPLEX_CC] Generating master chunk for chunks 12288:16383

INFO: [MPLEX_CC] Generating master chunk for chunks 16384:20479

INFO: [MPLEX_CC] Generating master chunk for chunks 20480:24575

INFO: [MPLEX_CC] Generating master chunk for chunks 24576:28671

INFO: [MPLEX_CC] Generating master chunk for chunks 28672:30596

When I try anything larger that 2100ms, the job just stops after the first "Generating master chunk" section and the movie is unplayable (I tried using -3s for this one):

D:\temp>mplex_cc -f 10 -O -3s test.ac3 test.m2v -o test.ty
INFO: [MPLEX_CC] mplex version 1.6.2 (2.2.3 $Date: 2004/01/13 20:45:26 $)
INFO: [MPLEX_CC] File test.ac3 looks like an AC3 Audio stream.
INFO: [MPLEX_CC] File test.m2v looks like an MPEG Video stream.
INFO: [MPLEX_CC] Video stream 0: profile 10 selected - ignoring non-standard
options!
INFO: [MPLEX_CC] Found 1 audio streams and 1 video streams
INFO: [MPLEX_CC] Selecting TY and generic MPEG2 output profile
INFO: [MPLEX_CC] Multiplexing video program stream!
INFO: [MPLEX_CC] Scanning for header info: AC3 Audio stream 00 (test.ac3)
INFO: [MPLEX_CC] AC3 frame size = 1792

INFO: [MPLEX_CC] AC3 AUDIO STREAM:
INFO: [MPLEX_CC] Bit rate : 57344 bytes/sec (448 kbit/sec)
INFO: [MPLEX_CC] Frequency : 48000 Hz
INFO: [MPLEX_CC] Scanning for header info: Video stream e0 (test.m2v)
INFO: [MPLEX_CC] VIDEO STREAM: e0
INFO: [MPLEX_CC] Frame width : 720
INFO: [MPLEX_CC] Frame height : 480
INFO: [MPLEX_CC] Aspect ratio : 16:9 display
INFO: [MPLEX_CC] Picture rate : 29.970 frames/sec
INFO: [MPLEX_CC] Bit rate : 8000000 bits/sec
INFO: [MPLEX_CC] Vbv buffer size : 229376 bytes
INFO: [MPLEX_CC] CSPF : 0
INFO: [MPLEX_CC] SYSTEMS/PROGRAM stream:
INFO: [MPLEX_CC] rough-guess multiplexed stream data rate : 8633400
INFO: [MPLEX_CC] Setting best-guess data rate.
INFO: [MPLEX_CC] Run-in Sectors = 998 Video delay = 170455 Audio delay = 4434
58
INFO: [MPLEX_CC] New sequence commences...
INFO: [MPLEX_CC] Audio bd: buf= 16384 frame=000000 sector=00000000
INFO: [MPLEX_CC] Video e0: buf=2719744 frame=000000 sector=00000000
INFO: [MPLEX_CC] Scanned to end AU 16
INFO: [MPLEX_CC] Running out...
INFO: [MPLEX_CC] Audio bd: buf= 16384 frame=000000 sector=00000000
INFO: [MPLEX_CC] Video e0: buf=2719456 frame=000016 sector=00000018
INFO: [MPLEX_CC] Scanned to end AU 32
INFO: [MPLEX_CC] Running out...
INFO: [MPLEX_CC] Audio bd: buf= 16384 frame=000000 sector=00000000
INFO: [MPLEX_CC] Video e0: buf=2719456 frame=000032 sector=00000039
INFO: [MPLEX_CC] Scanned to end AU 48
INFO: [MPLEX_CC] Running out...
INFO: [MPLEX_CC] Audio bd: buf= 16384 frame=000000 sector=00000000
INFO: [MPLEX_CC] Video e0: buf=2719456 frame=000048 sector=00000060
INFO: [MPLEX_CC] Scanned to end AU 82143
INFO: [MPLEX_CC] Running out...
INFO: [MPLEX_CC] Audio bd: buf= 16384 frame=106961 sector=00106961
INFO: [MPLEX_CC] Video e0: buf=2669076 frame=082143 sector=00096664
INFO: [MPLEX_CC] Scanned to end AU 118935
INFO: [MPLEX_CC] Scanned to end AU 118949
INFO: [MPLEX_CC] Running out...
INFO: [MPLEX_CC] Audio bd: buf= 16384 frame=154916 sector=00154916
INFO: [MPLEX_CC] Video e0: buf=2719280 frame=118935 sector=00139983
INFO: [MPLEX_CC] STREAM e0 completed @ frame 118949.
INFO: [MPLEX_CC] STREAM bd completed @ frame 154956.
INFO: [MPLEX_CC] Multiplex completion at SCR=446716738.
INFO: [MPLEX_CC] Audio bd: buf= 14592 frame=154956 sector=00154957
INFO: [MPLEX_CC] Video e0: buf=2719744 frame=118949 sector=00140001
INFO: [MPLEX_CC] AUDIO_STATISTICS: bd
INFO: [MPLEX_CC] Audio stream length 277682944 bytes.
INFO: [MPLEX_CC] Frames : 154957
INFO: [MPLEX_CC] BUFFERING min 14592 Buf max 14592
INFO: [MPLEX_CC] VIDEO_STATISTICS: e0
INFO: [MPLEX_CC] Video Stream length: 3720363979 bytes
INFO: [MPLEX_CC] Sequence headers: 10524
INFO: [MPLEX_CC] Sequence ends : 6
INFO: [MPLEX_CC] No. Pictures : 118949
INFO: [MPLEX_CC] No. Groups : 10524
INFO: [MPLEX_CC] No. I Frames : 10524 avg. size 73413 bytes
INFO: [MPLEX_CC] No. P Frames : 39877 avg. size 38537 bytes
INFO: [MPLEX_CC] No. B Frames : 68554 avg. size 20582 bytes
INFO: [MPLEX_CC] Average bit-rate : 5999200 bits/sec
INFO: [MPLEX_CC] Peak bit-rate : 8172400 bits/sec
INFO: [MPLEX_CC] BUFFERING min 2589380 Buf max 2719456
INFO: [MPLEX_CC] MUX STATUS: no under-runs detected.
INFO: [MPLEX_CC] Generating master chunk for chunks 0:37

nova1
10-18-2006, 12:11 PM
I have seen this issue when using -9s as the offset. I've used -7600ms for one stream. It's probably best to try using tyffmpeg to multiplex your stream.

bcc
10-18-2006, 12:58 PM
Not sure what I was doing wrong, but I was able to get a negative offset working, but I can't get it to work with anything over a -2100ms delay. Here is what I get when I do a -2100ms delay:Certainly both positive and negative offsets work with mplex. If you're seeing an a/v offset > 1000ms on a dvd, then something looks wrong. You probably are not selecting a valid starting point for your demux. For example, you're demuxing an entire .vob that includes still video frames (the menus). You could check this with dvd2avi. You may want to use something like dvddecrypter and tell it to just extract the main movie. Or read through the .ifo and figure out what the starting sector should be...

sstormont
10-18-2006, 01:16 PM
You may want to use something like dvddecrypter and tell it to just extract the main movie. Or read through the .ifo and figure out what the starting sector should be...

That is what I did using IFO mode then stream porcessing. DVD Decrypter did say report a message regarding "Dummy sectors will be inserted where necessary." Maybe that is the issue?



It's probably best to try using tyffmpeg to multiplex your stream.

I'll lose the closed captioning if I use that though, right?

bcc
10-18-2006, 01:28 PM
That is what I did using IFO mode then stream porcessing. DVD Decrypter did say report a message regarding "Dummy sectors will be inserted where necessary." Maybe that is the issue?Don't know. I'd troubleshoot with dvd2avi, etc. before trying to guess some a/v sync > 1000ms. I assume you can play back the ripped .vob with powerdvd/windvd with perfect sync.

nova1
10-18-2006, 02:07 PM
I'll lose the closed captioning if I use that though, right?
yes, CC is not supported at this time in ty-enabled ffmpeg. I don't think anyone looked into the CC issue that deeply. We know how to generate TY CC records but we don't know what TY timestamp to use. I don't recall off-hand but the DVD CC timestamps weren't clear either. Maybe a DVD enabled Tivo will offer clues on how the TY CC timestamps should be set?