INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Audio out of Sync [solved]  (Read 14133 times)

dmeinl

  • Junior Woodchuck
  • **
  • Posts: 68
Audio out of Sync [solved]
« on: April 08, 2009, 02:31:29 am »

Have some issues with all video and dvd files: Audio getting out of sync after a couple minutes. Small amount, but quite noticeable and can be over 1 second. This happended with my former system with nvidia graphic cards, intel quadore and WindowsXP x64 as with my new intel i7 system, ati cards and Vista 64. If I play the videos with another player everything works fine. Seems to be an J.R. Mediacenter issue. Any experience or solution? Thanks!
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Audio out of Sync
« Reply #1 on: April 08, 2009, 11:01:03 am »

Which specific "other player" were you trying with?  If it isn't a DirectShow player (like VLC, for example), then it isn't using the same rendering pipeline as MC, which would explain the difference.

The problem is almost certainly something with your DirectShow filters that are being used to decode the video/audio.  What filters do you have installed?  Are you using some kind of "filter pack"?  Is it specific to one specific type of video file?
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

dmeinl

  • Junior Woodchuck
  • **
  • Posts: 68
Re: Audio out of Sync
« Reply #2 on: April 08, 2009, 11:10:11 am »

I was using Zoom Player. Indeed I have installed a codec pack which is using the ffdshow filters (rev2527) mostly. The problem exists with all kind of video files with different codecs including ripped dvd images. Anyway it seems that I have to try another codec pack. Which one do you recommend for Vista64? Thanks!
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Audio out of Sync
« Reply #3 on: April 08, 2009, 03:28:17 pm »

If playback works properly in Zoom Player, then it should typically play okay with MC.  My guess is that the problem is either:

a) the DivX codec is installed and being used for some part of the decoding process.
b) an out-of-date version of AC3Filter is doing the audio decoding.

Either of these things are known to cause a similar effect.  Zoom Player does do some fancy footwork to work around known incompatibilities, so perhaps it "knows better" and is deactivating the bad filters.  It could be other things too, though.  I've had similar problems in the past with the ReClock filter and with bad, old versions of VSFilter (aka DirectVobSub).

Could you capture your filter graph (the set of filters actively being used) while playing back a particular file in MC where the issue occurs, and post the results here?  To do this:

1. Start the file playing back in MC.
2. Right click on the playing window, and go to DirectShow Filters -> Copy graph info to clipboard.
3. Then paste the results here.  It helps for readability if you enclose the pasted info in the CODE tags (the button in the posting editor for this is the #).

So, this is my graph for a MPEG-4 ASP video in an AVI container (on Windows XP):

Code: [Select]
Filter Graph Info:

    Filter 'Default DirectSound Device'
        CLSID: {79376820-07D0-11CF-A24D-0020AFD79767}
        Host: C:\WINDOWS\system32\quartz.dll
        Input Pin 'Audio Input pin (rendered)'
            Connected to pin 'Out' of filter 'ffdshow Audio Decoder'
            Major type MEDIATYPE_Audio  Sub type MEDIASUBTYPE_PCM, Format type FORMAT_WaveFormatEx

    Filter 'Video Mixing Renderer 9'
        CLSID: {51B4ABF3-748F-4E3B-A276-C828330E926A}
        Host:
        Input Pin 'VMR Input0'
            Connected to pin 'Out' of filter 'ffdshow Video Decoder'
            Major type MEDIATYPE_Video  Sub type MEDIASUBTYPE_YV12, Format type FORMAT_VideoInfo2
        Input Pin 'VMR Input1'

    Filter 'ffdshow Audio Decoder'
        CLSID: {0F40E1E5-4F79-4988-B1A9-CC98794E6B55}
        Host: C:\Program Files\Combined Community Codec Pack\Filters\FFDShow\ffdshow.ax
        Output Pin 'Out'
            Connected to pin 'Audio Input pin (rendered)' of filter 'Default DirectSound Device'
            Major type MEDIATYPE_Audio  Sub type MEDIASUBTYPE_PCM, Format type FORMAT_WaveFormatEx
        Input Pin 'In'
            Connected to pin 'Output' of filter 'JRiver Media Proxy Audio'
            Major type MEDIATYPE_Audio  Sub type Unknown GUID Name: {00000055-0000-0010-8000-00AA00389B71}, Format type FORMAT_WaveFormatEx

    Filter 'ffdshow Video Decoder'
        CLSID: {04FE9017-F873-410E-871E-AB91661A4EF7}
        Host: C:\Program Files\Combined Community Codec Pack\Filters\FFDShow\ffdshow.ax
        Input Pin 'In'
            Connected to pin 'Output' of filter 'JRiver Media Proxy Video'
            Major type MEDIATYPE_Video  Sub type Unknown GUID Name: {44495658-0000-0010-8000-00AA00389B71}, Format type FORMAT_VideoInfo
        Output Pin 'Out'
            Connected to pin 'VMR Input0' of filter 'Video Mixing Renderer 9'
            Major type MEDIATYPE_Video  Sub type MEDIASUBTYPE_YV12, Format type FORMAT_VideoInfo2
        Input Pin 'In Text'

    Filter 'JRiver Media Proxy Audio'
        CLSID: {A4207487-E7D8-406B-9882-B66370DE2492}
        Host:
        Input Pin 'Input'
            Connected to pin 'Stream 01' of filter 'AVI Splitter'
            Major type MEDIATYPE_Audio  Sub type Unknown GUID Name: {00000055-0000-0010-8000-00AA00389B71}, Format type FORMAT_WaveFormatEx
        Output Pin 'Output'
            Connected to pin 'In' of filter 'ffdshow Audio Decoder'
            Major type MEDIATYPE_Audio  Sub type Unknown GUID Name: {00000055-0000-0010-8000-00AA00389B71}, Format type FORMAT_WaveFormatEx

    Filter 'JRiver Media Proxy Video'
        CLSID: {A4207487-E7D8-406B-9882-B66370DE2492}
        Host:
        Input Pin 'Input'
            Connected to pin 'Stream 00' of filter 'AVI Splitter'
            Major type MEDIATYPE_Video  Sub type Unknown GUID Name: {44495658-0000-0010-8000-00AA00389B71}, Format type FORMAT_VideoInfo
        Output Pin 'Output'
            Connected to pin 'In' of filter 'ffdshow Video Decoder'
            Major type MEDIATYPE_Video  Sub type Unknown GUID Name: {44495658-0000-0010-8000-00AA00389B71}, Format type FORMAT_VideoInfo

    Filter 'AVI Splitter'
        CLSID: {1B544C20-FD0B-11CE-8C63-00AA0044B51E}
        Host: C:\WINDOWS\system32\quartz.dll
        Output Pin 'Stream 00'
            Connected to pin 'Input' of filter 'JRiver Media Proxy Video'
            Major type MEDIATYPE_Video  Sub type Unknown GUID Name: {44495658-0000-0010-8000-00AA00389B71}, Format type FORMAT_VideoInfo
        Output Pin 'Stream 01'
            Connected to pin 'Input' of filter 'JRiver Media Proxy Audio'
            Major type MEDIATYPE_Audio  Sub type Unknown GUID Name: {00000055-0000-0010-8000-00AA00389B71}, Format type FORMAT_WaveFormatEx
        Input Pin 'input pin'
            Connected to pin 'Output' of filter 'C:\media\video\Movies\Munich (Disc 1) - Unknown Artist.avi'
            Major type MEDIATYPE_Stream  Sub type MEDIASUBTYPE_Avi, Format type TIME_FORMAT_NONE

    Filter 'C:\media\video\Movies\Munich (Disc 1) - Unknown Artist.avi'
        CLSID: {E436EBB5-524F-11CE-9F53-0020AF0BA770}
        Host: C:\WINDOWS\system32\quartz.dll
        Output Pin 'Output'
            Connected to pin 'input pin' of filter 'AVI Splitter'
            Major type MEDIATYPE_Stream  Sub type MEDIASUBTYPE_Avi, Format type TIME_FORMAT_NONE
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

dmeinl

  • Junior Woodchuck
  • **
  • Posts: 68
Re: Audio out of Sync
« Reply #4 on: April 09, 2009, 12:27:24 am »

Ok, here is my log...
Code: [Select]
Filter Graph Info:

    Filter 'Default DirectSound Device'
        CLSID: {79376820-07D0-11CF-A24D-0020AFD79767}
        Host: quartz.dll
        Input Pin 'Audio Input pin (rendered)'
            Connected to pin 'Out' of filter 'ffdshow Audio Decoder'
            Major type MEDIATYPE_Audio  Sub type MEDIASUBTYPE_PCM, Format type FORMAT_WaveFormatEx

    Filter 'Enhanced Video Renderer'
        CLSID: {FA10746C-9B63-4B6C-BC49-FC300EA5F256}
        Host: E:\Windows\SysWOW64\evr.dll
        Input Pin 'EVR Input0'
            Connected to pin 'Out' of filter 'ffdshow Video Decoder'
            Major type MEDIATYPE_Video  Sub type MEDIASUBTYPE_YUY2, Format type FORMAT_VideoInfo2
        Input Pin 'EVR Input1'

    Filter 'ffdshow Audio Decoder'
        CLSID: {0F40E1E5-4F79-4988-B1A9-CC98794E6B55}
        Host: E:\Windows\SysWow64\ffdshow.ax
        Output Pin 'Out'
            Connected to pin 'Audio Input pin (rendered)' of filter 'Default DirectSound Device'
            Major type MEDIATYPE_Audio  Sub type MEDIASUBTYPE_PCM, Format type FORMAT_WaveFormatEx
        Input Pin 'In'
            Connected to pin 'Output' of filter 'JRiver Media Proxy Audio'
            Major type MEDIATYPE_Audio  Sub type Unknown GUID Name: {00000055-0000-0010-8000-00AA00389B71}, Format type FORMAT_WaveFormatEx

    Filter 'ffdshow Video Decoder'
        CLSID: {04FE9017-F873-410E-871E-AB91661A4EF7}
        Host: E:\Windows\SysWow64\ffdshow.ax
        Input Pin 'In'
            Connected to pin 'Output' of filter 'JRiver Media Proxy Video'
            Major type MEDIATYPE_Video  Sub type Unknown GUID Name: {33564944-0000-0010-8000-00AA00389B71}, Format type FORMAT_VideoInfo
        Output Pin 'Out'
            Connected to pin 'EVR Input0' of filter 'Enhanced Video Renderer'
            Major type MEDIATYPE_Video  Sub type MEDIASUBTYPE_YUY2, Format type FORMAT_VideoInfo2
        Input Pin 'In Text'

    Filter 'JRiver Media Proxy Audio'
        CLSID: {A4207487-E7D8-406B-9882-B66370DE2492}
        Host:
        Input Pin 'Input'
            Connected to pin 'Stream 01' of filter 'AVI Splitter'
            Major type MEDIATYPE_Audio  Sub type Unknown GUID Name: {00000055-0000-0010-8000-00AA00389B71}, Format type FORMAT_WaveFormatEx
        Output Pin 'Output'
            Connected to pin 'In' of filter 'ffdshow Audio Decoder'
            Major type MEDIATYPE_Audio  Sub type Unknown GUID Name: {00000055-0000-0010-8000-00AA00389B71}, Format type FORMAT_WaveFormatEx

    Filter 'JRiver Media Proxy Video'
        CLSID: {A4207487-E7D8-406B-9882-B66370DE2492}
        Host:
        Input Pin 'Input'
            Connected to pin 'Stream 00' of filter 'AVI Splitter'
            Major type MEDIATYPE_Video  Sub type Unknown GUID Name: {33564944-0000-0010-8000-00AA00389B71}, Format type FORMAT_VideoInfo
        Output Pin 'Output'
            Connected to pin 'In' of filter 'ffdshow Video Decoder'
            Major type MEDIATYPE_Video  Sub type Unknown GUID Name: {33564944-0000-0010-8000-00AA00389B71}, Format type FORMAT_VideoInfo

    Filter 'AVI Splitter'
        CLSID: {1B544C20-FD0B-11CE-8C63-00AA0044B51E}
        Host: quartz.dll
        Output Pin 'Stream 00'
            Connected to pin 'Input' of filter 'JRiver Media Proxy Video'
            Major type MEDIATYPE_Video  Sub type Unknown GUID Name: {33564944-0000-0010-8000-00AA00389B71}, Format type FORMAT_VideoInfo
        Output Pin 'Stream 01'
            Connected to pin 'Input' of filter 'JRiver Media Proxy Audio'
            Major type MEDIATYPE_Audio  Sub type Unknown GUID Name: {00000055-0000-0010-8000-00AA00389B71}, Format type FORMAT_WaveFormatEx
        Input Pin 'input pin'
            Connected to pin 'Output' of filter 'D:\Movies\Passwort Swordfish.avi'
            Major type MEDIATYPE_Stream  Sub type MEDIASUBTYPE_Avi, Format type TIME_FORMAT_NONE

    Filter 'D:\Movies\Passwort Swordfish.avi'
        CLSID: {E436EBB5-524F-11CE-9F53-0020AF0BA770}
        Host: quartz.dll
        Output Pin 'Output'
            Connected to pin 'input pin' of filter 'AVI Splitter'
            Major type MEDIATYPE_Stream  Sub type MEDIASUBTYPE_Avi, Format type TIME_FORMAT_NONE

Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Audio out of Sync
« Reply #5 on: April 09, 2009, 09:53:14 am »

Hmmm...  That all looks okay.  I don't have a Vista64 system, but plenty of others here do and we haven't seen similar reports.  Plus, I do have a Windows 7 64-bit system and playback works fine there.  On my Windows 7 system, I'm just using the current build of CCCP, and everything works okay. 

My next guess would be the FFDSHOW Audio Decoder settings, specifically on the Output "tab".  Are you using CCCP?  If so, could you set it back to it's defaults?
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

fitbrit

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4887
Re: Audio out of Sync
« Reply #6 on: April 09, 2009, 10:09:34 am »

Are you usinf ffdshow to "upmix" sound from 2 to more channels. I noticed audio lag when doing this before.
As Glynor says, lots of people use MC without sync issues, including myself, so hopefully you can get to the bottom of your problem. I personally use AC3filter for AC3 and DTS decoding and never have problems unless the fie itself is encoded out of sync.
Logged

dmeinl

  • Junior Woodchuck
  • **
  • Posts: 68
Re: Audio out of Sync
« Reply #7 on: April 10, 2009, 05:13:17 am »

Thank you guys! It seems that fitbrit gave the clue: There was an mixer option activated in ffdshow with an output speaker configuration that doesn't match my system. I tested now a couple videos and there was no audio time lag at all. At least when it will happen again I have now the tools to find a solution.
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Audio out of Sync [solved]
« Reply #8 on: April 10, 2009, 09:22:52 am »

Nice!  Good detective work, fitbrit!
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

fitbrit

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4887
Re: Audio out of Sync [solved]
« Reply #9 on: April 10, 2009, 02:24:58 pm »

Nice!  Good detective work, fitbrit!

Thanks, glynor. However, it was more anecdotal rambling than detective work. :)
Logged
Pages: [1]   Go Up