MPG and AC3 renders are slightly different length

2G wrote on 2/22/2005, 8:14 AM
I take the same AVI project and render to both MPG2 and to AC3. In all cases, the AC3 file is longer by a few frames. So what does that hurt? If you are creating a looping DVD menu with audio, the length of the menu is autocalculated to be greater of the audio or video length. Since the video runs out before the audio completes, there's a black flash in the video before the menu loops. OK, I can manually go in on every menu and force the length to be a little bit shorter to avoid the flash. But that's a bandaid. (And a pain in the butt I've been doing on every single menu on every project for months). Rendering to MPG and to AC3 (or anything else for that matter) should produce the precise same length rendered output.

Here's a quick way to verify that it's doing this:

1) Take a short AVI file and render it to both MPG2 (no audio) and to AC3.
2) Go to DVDA and create a music compilation (only because music compilations show the precise length of the clip)
3) Drop the MPG and the ac3 clips as different 'songs' in the music compilation.
4) You should see that the lengths of the 'songs' are different.

Menus are the only place this shows up. In many of my videos, I transition segments with a fade to white. Anywhere I link from one segment to another with a fade to white I get a black flash.

To me, this has to be a bug. But is there something I can do to get around it such as ensuring the AVI length is a round number or something?

2G

Comments

PossibilityX wrote on 2/22/2005, 10:47 AM
2G, when rendering, do you create a region equal to the length of your project and then select RENDER LOOP REGION ONLY?

I had trouble myself with the AC3 being out of sync with the MPEG2, but doing it this way solved the problem.

The audio file and the video file have to be the EXACT SAME length to avoid sync problems.
2G wrote on 2/22/2005, 11:48 AM
Thanks for the feedback.

No, I wasn't doing any region stuff. I just stupidly assumed that if I said to render the project, it would do it correctly.

I do renders via a script. I modified the script this morning such that if it's an ac3 render, it will now render a region that is 300ms shorter than the project length. That got me some ac3's that were still not the same as the mpgs, but at least they were shorter than the mpg now, and that got rid of the black flashes.

So you are saying to render both the mpg and ac3 using a region that is precisely the length of the project? I'll try that and see if it works.

Sony, are you listening??? This is a problem. Workarounds are stop-gap. Please look into this.

2G
ScottW wrote on 2/22/2005, 5:51 PM
You should formally report this via one of the formal mechanisms. With the amount of traffic this forum sees, it's likely that sony folks will miss some things.
B.Verlik wrote on 2/22/2005, 6:02 PM
Yes, use the 'loop' feature. Place your cursor on the timeline, right where you want your video to end and drag it to the left (completely offscreen to get to the other end fast) to the very beginning of your video. It will darken when looped. Write down your exact times. (00:00:00:00 to 00:20:53:29 or whatever) If you need to re-do either the ac3 or the mpg2, you'll know exactly what time to set everything to without having to re-render both files. This will give you exact times for both files.
I usually suggest checking the ac3 file in DVD-A, by itself, to make sure it came out okay. Sometimes, if your overall volume is too loud, it comes out backwards and garbled. The ac3 will render relatively fast and once it's done, you can then render the mpg2.
ScottW wrote on 2/23/2005, 6:03 AM
One other thing you might want to try - since most of the time DVDA is going to re-encode the MPEG supplied for a menu anyway, I've generally take to just feeding it DV AVI and letting DVDA do the encode (depending on what your menu content is, this can really improve the look). You may want to try this and see if you get the same results.
2G wrote on 2/23/2005, 9:29 AM
What are the 'formal mechanisms' for reporting bugs?

2G
bStro wrote on 2/23/2005, 9:35 AM
What are the 'formal mechanisms' for reporting bugs?

http://www.custcenter.com/cgi-bin/sonypictures.cfg/php/enduser/ask.php

Rob