Hi. I have an AVI with AC3 audio which is perfectly in sync. If I demux with VirtualDubMod the audio stream and I then encode AVI --> M2V, once I author
M2V+AC3 ---> DVD
the final VOBs are slightly off of sync.
I tried many application: YAAI didn't see any delay, MediaInfo saw a 700 ms delay, but after hours re-encoding the AC3 stream into a delayed AC3 stream using the AC3Machine, I discovered that the delay is non-constant! Opening the AVI with SyncView I saw that the A/V are Interleaved - In fact, by opening the AVI as audio source I receive the message 'interleaved audio non supported' and, playing the set, I see that the delay is non constant during the movie.
Whay can I do fo fix that stuff?
+ Reply to Thread
Results 1 to 7 of 7
-
-
The only way I have found to get the correct delay is by eyeball and ear. You can use SyncView or even Media Player Classic to do it.
-
Originally Posted by aldaco12
To directly cut or pad the AC3, use Delaycut, very fast.
To stretch or squeeze a little, use AC3scale.
And to work out the amount needed, you can try this Avisyth script like this:
Code:video=MPEG2Source("lom-101.d2v") audio=DirectShowSource("lom-101.ac3") AudioDub(video,audio) DelayAudio(1.39) Info()
There's a more elaborate script at http://avisynth.org/FindAudioSyncScript if you want to get more geeky.
Then you can use the number you arrive at to fix the AC3 as above.
You should check at least near the begining and ends to see if the sync is constant.
Sometimes I get it correct at the begining, which gives me a delay. Then I correct it with Delaycut. But I notice it's out of sync towards the end. Then I need to strech it using AC3scale. -
Very nice reply, but I can't use it.
Once I opened the AVI with the AVS:
video=AVISource("movie.avi", false, fourCC="DIVX") #seen using VirtualDub
audio=DirectShowSource("movie.avi",FPS=25) #seen using VirtualDub
AudioDub(video,audio)
DelayAudio(1.39)
Info()
VirtualDub shows ths useless screen:
Frame: (0-end)
Colorspace: YV12
Width: X pixels; Heigth: Y pixels
Frames per second: 25.0000
FieldBased (separated) Video: NO
Parity: assuming Bottom Field First
Video Pitch: 720 bytes
Has audio: YES
Audio Channels: 2
Sample type: Integer 16 bit
Samples per second: 48000
CPU detected ......
and now? I see no delay info....
More, the AVI is in-sync. Is after an AVI-->M2V conversion that it goes out of sync! -
Originally Posted by aldaco12
I used :
Code:video=MPEG2Source("lom-101.d2v")
Also, the "Info" command prints that data over the video. That won't tell you the delay you need, you have to work out the actual delay by trial and error. Doesn't take long, just a few seconds for each trial this way. -
MediaInfo saw a 700 ms delay, but after hours re-encoding the AC3 stream...
That was a complete waste of time. As AlanHK mentioned, either adjust the delay in your authoring app or by using Delay Cut on the AC3 track.
...into a delayed AC3 stream using the AC3Machine, I discovered that the delay is non-constant!
Throw that one away and check with the original one (where you've adjusted the delay properly) if the delay is constant or progressive. If the delay is progressive (gets worse as the movie goes along), you probably changed the video framerate while encoding. If the original AVI is 23.976fps, and you converted the video framerate to 25fps, for example, that would account for it. What script did you feed into your MPEG-2 encoder, and what's the framerate of the source AVI (use GSpot if you don't know)?
Similar Threads
-
Increasing Audio volume on AVI/DivX/Xvid with AC3 Audio
By Spacedementia87 in forum User guidesReplies: 21Last Post: 24th Dec 2021, 07:21 -
mkv with ac3 audio -> avi with ac3 audio ? is this possible?
By Substance001 in forum Video ConversionReplies: 9Last Post: 20th Jun 2011, 23:56 -
Avi to Ac3 user guide. How to encode the audio from an avi to ac3 .
By freebird73717 in forum User guidesReplies: 5Last Post: 9th Dec 2009, 21:53 -
demux audio from avi then two audio sources(aac 2ch + ac3 6ch)
By fatcat23 in forum ffmpegX general discussionReplies: 4Last Post: 21st Sep 2008, 01:19 -
AC3 AVI -> DVD with CuCuSoft audio problem
By carlos305 in forum Video ConversionReplies: 3Last Post: 23rd Aug 2007, 02:19