View Full Version : Sound wrong titles correct
The Old Timer
14th June 2006, 02:20
I have in the past reported that I have encoded using AGK with bother the XVID & DIVX codec & created a file that had subtitles in them but that these titles were useless because there were always displayed about 30 seconds behind the audio.
I finally got around to viewing a DIVX file creared with AGK that has the reverse problem. The titles are in the correct place but the sound is about by about 2 seconds.
Has anyone had this problem? Can this be corrected using VirtualDub or some other program?
setarip_old
14th June 2006, 04:34
Most of the subtitle extraction/conversion programs also have time correction ability. Which program did you use to extract the subtitles from your original source material?
CWR03
14th June 2006, 06:59
The problem can be corrected with VirtualDubMod quite easily. Open the file, click Streams > Stream list, right click the audio and select Interleaving, then input a value in to the "Delay audio track by" box that you feel is appropriate, and make sure "Offset audio to maintain a/v synch" is checked. Click Ok on those two windows. Click File > Save as, select "Direct stream copy" from the Video mode dropdown list, then save the file with a new, unique filename and check it for audio synch. It may take a few attempts to get it correct. I suggest using the delay value you last entered as part of the new filename to more easily denote which direction you have offset the audio for your next attempt. Use a "-" symbol before the number for a negative delay.
The Old Timer
14th June 2006, 07:11
I'm guessing that to do thiis I will end up with the titles in the wrong place or more likely that the won't be found at all. Am I correct?
setarip_old
14th June 2006, 08:19
@The Old Timer
Please advise - Which is correct?:
Are you trying to synchronize your subtitles with your audio? (My understanding)
or
Are you trying to synchronize your audio with video? (For which "CWR03" has provided information as to how to correct this)
CWR03
14th June 2006, 10:10
Good questions, setarip_old. If what I surmised from the original post is correct, that "The titles are in the correct place but the sound is about by about 2 seconds" means the subs come in at the right time for the video, then adjusting the audio won't affect the subs. In any case, trying it won't bother anything because you'll be creating a new file. If it doesn't work, just delete it.
The Old Timer
15th June 2006, 02:17
I would like to get audio & video in sync. The subtitles & video are already OK. My last posting was just wondering that if I used virtualdub to fix these 2 would this result in loosing the titles that are already correct.
Its more important to have audio & video in sync but if I can get audio, video & subtitles in sync all the better.
setarip_old
15th June 2006, 06:19
I would like to get audio & video in sync. The subtitles & video are already OK.Thanks for clarifying.
By all means, follow the instructions provided by "CWR03"...
CWR03
15th June 2006, 07:51
I would like to get audio & video in sync. The subtitles & video are already OK. My last posting was just wondering that if I used virtualdub to fix these 2 would this result in loosing the titles that are already correct.
Its more important to have audio & video in sync but if I can get audio, video & subtitles in sync all the better.
Did you read my posts at all, or try my suggestions? I think we understand your goal sufficiently that you can stop explaining it and give it a try. As I said, since you'll be creating a new file, if it doesn't work you won't have to start from scratch, but there's no reason why delaying the audio would change the subtitle synch. Subs are synched with the video, so if they're synched now, they'll remain in synch.
The Old Timer
16th June 2006, 01:54
I tried opening the file in VirtualDub but got this error message "AVI:stream 3 & 4 has invalid sample rate. Substitution 15 samples/sec as a placeholder"
I can then move the bottom handle & see video but it I fit play I get another message "No audio decompressor could be found to recompress the source audio format. Source format tag 0055.
I don't know what this means or how to fix it. I assume that this is why I can't get to see the Streams>streams list.
setarip_old
16th June 2006, 03:31
"No audio decompressor could be found to recompress the source audio format. Source format tag 0055What audio codec did you use when you originally created the file? (It should still be installed on your system)
CWR03
16th June 2006, 07:42
There's no reason to play it within VirtualDub because it won't display any changes made. Just make the changes as I've suggested and save it, then play the new file and check it.
Did you get a message about the audio header when you first opened it? If so, make sure you click "No," otherwise you'll never make it work.
Did you try to open the file with VirtualDubMod as I suggested? The placement of the menu items will differ from my earlier instructions when using VirtualDub.
The Old Timer
16th June 2006, 08:43
The audio file created would have to have been the same as my original was, 5.1 if I recall correctly. The VirtualDub info screen says channels 2 stereo Compression 'unknown tag 0055.
I got this message as I tried to open file. I didn't get the oportunity to click 'no'. All I get to see is a click 'OK'. This opens video & I can scroll through video by dragging bottom handle. I get no sound. None of the drop down windows displays stream>streams list option. I'm using version 1.615 build 2442 which I think is still the latest version available.
I haven't added or deleted any audio codec for a very long while so I can't understand what codec might be missing. As I stated I encoded using AGK & the DIVX option.
CWR03
16th June 2006, 09:22
What does GSpot report about the audio codec?
Did you try VirtualDubMod?
setarip_old
16th June 2006, 19:18
The audio file created would have to have been the same as my original was, 5.1 if I recall correctly.unknown tag 0055"Tag 0055" is .MP3, not 5.1...
The Old Timer
17th June 2006, 03:59
No wonder I could not find the stream information since I was looking at VirtualDub & not VirtualDubMod. I now have the Mod version but I still get an error message about the audio. I can see the stream audio information & it says as suggested that the audio is MP3.
I still haven't any idea as to why I have an error since I have heaps of MP3 files on my machine & even have one playing at the moment. Device manager audio codec listing shows a 'Ulead ACM MP3 codec' listed. plus Ulead MPEG1 Layer 2 Audio Codec as well as several other codec, althought they don't have MP3 in the discription.
CWR03
17th June 2006, 04:45
Regardless of the error message, have you yet attempted to synchronize the audio with my instructions? There will be no re-encoding, so it shouldn't even matter that VirtualDub(Mod) doesn't recognize the audio (which is most likely Lame MP3).
setarip_old
17th June 2006, 07:54
I finally got around to viewing a DIVX file creared with AGK that has the reverse problem.The audio file created would have to have been the same as my original was, 5.1 if I recall correctly.The VirtualDub info screen says channels 2 stereo Compression 'unknown tag 0055.
Perhaps I'm wrong, but your responses appear to indicate that you did not create this DivX-compressed .AVI file...
CWR03
17th June 2006, 08:40
His comments sound more like he created them with AutoGK, which I've noticed just today uses Lame MP3 to encode. It's hard to believe that the codecs would not have gotten installed with the package, but it's possible. I believe I had to hunt down and install a Lame pack before some of my own files would play after my last reformat, even after reinstalling AutoGK, Gordian Knot and the Gordian Knot codec pack.
The Old Timer
18th June 2006, 02:35
I have finally created a new file using VirtualDubMod & the sound is now in a new place. I suppose that it's mainly just a case of trial & error as to getting the location correct. I don't appear to have titles anymore according to DIVX player.
Since the file in question is an AVI perhaps I might try opening it in a full video editing program where I can get both audio & video on the time line & just slide audio forward & back & listen to results in real time.
CWR03
18th June 2006, 08:28
I don't appear to have titles anymore according to DIVX player.
AutoGK outputs the subs in a separate file - in order to have them play with the new, resynched video file, you only have to rename the new .AVI file to match the old one after you either move or delete it, or rename the subs to match the new .AVI file.
Since the file in question is an AVI perhaps I might try opening it in a full video editing program where I can get both audio & video on the time line & just slide audio forward & back & listen to results in real time.
It's unlikely you'll find a video editing program that will do that with an MPEG-4-encoded file, and even if you do, you can't overwrite an .AVI file you're editing. You'd still have to save the file under a new name, and you'd almost certainly have to re-encode it. Believe me, you're making this way more difficult than it really is. I've done exactly what you're trying to achieve with a 26-episode TV series, and it took me maybe two minutes per file to get it right.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.