![]() |
Audio out of sync on some video files On some of the video files I've downloaded, both avi and mgp, the audio is out of sync with the video. It's as if the audio was recorded at a different speed, so the further I go into the video, the more the difference between the video and audio. According to Gspot, I have the correct codecs installed. Is there any way to fix this, or does it just mean the video files are bad? |
It could be a bad video file, a bad audio decoder or a slow CPU. |
No new ideas on this? Guess I've just been getting some video files in which the audio wasn't recorded in sync with the video? |
1. It could be a bad video file, as you said before 2. It could be a bad audio decoder or your audio card is trying to use hardware acceleration for MP3. 3. Your CPU speed may be too slow and can't decode fast enough the streams. So, can you provide more details so we can try to help you ? What CPU, wich audio\video decoder is used on those files, wich audio card do you use, does disabling hardware acceleration help ? |
Um, lessee. My computer has a P4, 2.8 ghz, 1 gb PC3200 ram, and a Creative SB Audigy 2 Platinum EX. Running the latest offending video file through Gspot shows: Container: MPEG-1 System Stream << 1 vid, 1 aud, 1 other, Sys Bitrate 1394 kb/s Audio: MPEG-1 Layer 2; Codec(s) Installed Video: Codec: MPEG_Payload Name: MPEG-1 Stat: Codec(s) are Installed. Not sure how to turn off hardware acceleration. |
To turn off the audio hardware acceleration, if you installed a sound card utility probably you'll be able to do that directly in it, otherwise you can open Windows Control Panel, click on the "Sound and Audio Periferals" icon. Now select Audio tab and in "Sound playback" press the Advanced button. On the new window go to the second tab and lower the Hardware acceleration slider. (I don't have the Windows XP English version, so the voices may be a bit different, but I think they are understandable) |
Thanks...I knew I'd seen that somewhere. Okay, I can now say that disabling audio hardware acceleration had no effect on the out-of-sync sound. I also tried playing the video file back on a different computer, and it's still out of sync there. Also makes no difference whether I use BSPlayer or Windows Media Player. |
In this case I am afraid that your file is bad. But, still, let's try one last option: If you open the file in BSPlayer, wich filters are used for playing the file ? (rightclick->options->filters) |
I've never used the filter option, so it's whatever the default ones are. How do I tell which ones are being used? The non-grayed-out choices are: Default DirectSound Device MPEG Video Decoder MPEG Audio Decoder Advanced I kind of suspected that the file is bad, although I do seem to get quite a few of them. Most are downloaded TV episodes... |
Anthony2816> Unfortunately, your video files are bad encoded. This is the typical feature of videos from coders that don't understand principles of A/V sampling. Using cheap TV card and separate sound card (or on-mainboard chip) make this out-of-sync feature unavoidable, especially when sampling audio directly on 44.1 kHz instead of 48 kHz. Soud cards run internally on 48 kHz and the sample rate 44.1 is mostly just interpolated. Moreover, video sampling ADC and audio sampling ADC are unsynchronized because of running with separate oscillators. There is nothing else to do with such a mpeg files than resample the sound track to correspond with video track length. In avi file there is the possibility to correct the header with fps value to match the video length with audio without resampling anything (using VirtualDub for example), however the fps value will not correspond any video standart (you can get something like 25.007 fps or 23.983...), it will be sure playable on PC, but if you decide to make the mpeg from it, you will have to make the fps back to 25.000 (or 23.976 for NTSC) and resample the sound track. |
Old MPEG audio decoder that is built-in windows do often get out of sink on 48.000 VBR files. YOu could try to install an alternate MPEG decoder such as Elecard (moonlight) or BitCtrl. |
Thanks for the info! |
Please come back and post the results. |
2adicoto> AFAIK these TV series are mostly coded as VCD video MPEG-1 stream and the 48.000 audio would be not correct for VCD standard, reasonable software will force 44.100 when selecting VCD profile. I think that the decoder is not the case of audio unsync, IMO it is due to primary bad grabbing with all arising consequences. On a hardware wihout professional synchronized A/D converters I would recommend allways to grab at 48.000 and then to resample to 44100, the time difference after cca 1 hr (the usual length of an episode) will probably stay as low as no further time stretching will be necessary. |
Most of the TV episodes are XviD :D. If you are right, than we can't help. We can post here a tutorial to transform MPEG files to .avi using VirtualDub. I think I've posted it somwere around here. If I am right, we may be of some help with decoder changing. I hope I am right (just because of that) Just thinking, saw plenty of files on the net as KVCD, wich is a non-standard VCD type. |
Quote:
But I think I'm right :D so decoder changing will be useless. |
Quote:
|
All times are GMT +1. The time now is 02:14 AM. |
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
Ad Management plugin by RedTyger