Official BS.Player forums

Official BS.Player forums (http://forum.bsplayer.com/index.php)
-   General Talk And Support (http://forum.bsplayer.com/forumdisplay.php?f=8)
-   -   Audio out of sync on some video files (http://forum.bsplayer.com/showthread.php?t=7185)

Anthony2816 7th February 2006 08:41 PM

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?

adicoto 7th February 2006 09:06 PM

It could be a bad video file, a bad audio decoder or a slow CPU.

Anthony2816 11th June 2006 08:10 PM

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?

adicoto 11th June 2006 08:30 PM

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 ?

Anthony2816 11th June 2006 11:48 PM

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.

Tizio 12th June 2006 12:02 AM

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)

Anthony2816 12th June 2006 01:01 AM

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.

adicoto 12th June 2006 04:12 AM

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)

Anthony2816 12th June 2006 05:03 AM

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...

artam 12th June 2006 09:10 AM

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.

adicoto 12th June 2006 10:26 AM

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.

Anthony2816 12th June 2006 03:05 PM

Thanks for the info!

adicoto 12th June 2006 03:59 PM

Please come back and post the results.

artam 12th June 2006 09:38 PM

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.

adicoto 12th June 2006 09:59 PM

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.

artam 14th June 2006 02:06 PM

Quote:

Most of the TV episodes are XviD
Well, it depends on people and what p2p you are searching for. Just tell you, what people are - I know guys they grab TV series primarily in MPEG1 just because it is far less CPU power consuming that coding directly to XviD, but after that they convert that crap into XviD as final... :? Can anybody understand that ? I can't :shock: . Good advices didn't work for them :( .

But I think I'm right :D so decoder changing will be useless.

J7N 15th June 2006 04:54 AM

Quote:

I know guys they grab TV series primarily in MPEG1 just because it is far less CPU power consuming that coding directly to XviD, but after that they convert that crap into XviD as final
So that's why analog TV rips suck so hard? Good to know. :)


All times are GMT +1. The time now is 04:08 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
Ad Management plugin by RedTyger


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20