0.2.0.0 CVS (2006-01-15) / ReClock + MPEG (EDIT: was DVD) (1 Viewer)

pulsar

Portal Member
January 23, 2006
5
0
Germany
Area: Media Portal Program
MediaPortal Version: 0.2.0.0 RC2 (2006-01-15)
MediaPortal Skin: mce
Windows Version: Windows XP (SP2)
.NET CLR Version: 2.0.50727
DirectX Version: 4.09.00.0904 (9.0c)
Audio Codec: AC3 Filter
Video Codec: Mpeg2Dec Filter
CPU Type: AMD Athlon - 900MHz
Memory: 511 MB
Motherboard: 8363-686A
TV Card Model: -
TV Card Type: -
TV Card Driver: -
Video Card Model: Hightech Excalibur Radeon 9550se Series (128 MB)
Video Card Driver: 5.13
Video Card Resolution: 720x576
Video Render Type: VMR9
Audio Card Model: Hercules Game Theater(tm) XP 7.1 WDM Interface
Audio Card Driver: 6.09
Synopsis::

Playing DVDs does not work while Reclock Audiorenderer is enabled. Reclock *is* configured properly and does work for movies. The attached logfile shows the attempt to play a dvd using mpeg2decoder. In this particular case the playback just wont start.

reclock is configured to detect the framerate via directdraw since its is the only way to go when using VMR9 and exclusive mode in MP.

Code:
23.01.2006 02:48:39 window:MediaPortal.GUI.Video.GUIVideoFiles init
23.01.2006 02:48:42 key:13 0xD (2)
23.01.2006 02:48:43 key:13 0xD (2)
23.01.2006 02:48:43 GUIVideoFiles::OnPlayBackStopped idFile=140 timeMovieStopped=903 resumeData=System.Byte[]
23.01.2006 02:48:43 window:MediaPortal.Dialogs.GUIDialogYesNo init
23.01.2006 02:48:46 key:13 0xD (2)
23.01.2006 02:48:46 PlaylistPlayer.Play(D:\VIDEO_TS\VIDEO_TS.IFO)
23.01.2006 02:48:46 player: file is not live tv, so stop timeshifting:D:\VIDEO_TS\VIDEO_TS.IFO
23.01.2006 02:48:46 g_Player.Play(D:\VIDEO_TS\VIDEO_TS.IFO)
23.01.2006 02:48:46 playingFalse radio:False
23.01.2006 02:48:46 DVD:enable dx9 exclusive mode
23.01.2006 02:48:46 goto fullscreen:True
23.01.2006 02:48:46 app:Switch to fullscreen mode False
23.01.2006 02:48:47 app:Switched to fullscreen mode
23.01.2006 02:48:48 VMR9: now active
23.01.2006 02:48:48 DVDPlayer9:Add DVD Navigator
23.01.2006 02:48:48 add filter:DVD Navigator to graph
23.01.2006 02:48:48 added filter:DVD Navigator to graph
23.01.2006 02:48:48 add filter:Mpeg2Dec Filter to graph
23.01.2006 02:48:48 added filter:Mpeg2Dec Filter to graph
23.01.2006 02:48:48 add filter:AC3Filter to graph
23.01.2006 02:48:48 added filter:AC3Filter to graph
23.01.2006 02:48:48 add filter:ReClock Audio Renderer to graph clock:ReClock Audio Renderer
23.01.2006 02:48:50 added filter:ReClock Audio Renderer to graph
23.01.2006 02:48:50 got pins
23.01.2006 02:48:50   got pin#0:Video
23.01.2006 02:48:51   render ok
23.01.2006 02:48:51   got pin#1:AC3
23.01.2006 02:48:51   render ok
23.01.2006 02:48:51   got pin#2:SubPicture
23.01.2006 02:49:00   render failed:80040209
23.01.2006 02:49:00 Dvdplayer9:disable line 21
23.01.2006 02:49:00 vmr9: pin:0 not connected:80040209
23.01.2006 02:49:00 vmr9: no input pin 1 found
23.01.2006 02:49:00 vmr9: no input pin 2 found
23.01.2006 02:49:00 DVDPlayer9:failed vmr9 not connected
23.01.2006 02:49:00 DVDPlayer9:cleanup DShow graph
23.01.2006 02:49:00 VMR9: not active
23.01.2006 02:49:00 DVD:disable dx9 exclusive mode
23.01.2006 02:49:00 goto windowed:False
23.01.2006 02:49:00 app:Switch to windowed mode False
23.01.2006 02:49:00 app:Switched to windowed mode
23.01.2006 02:49:00 VMR7Helper:AddVMR7
23.01.2006 02:49:00 add filter:DVD Navigator to graph
23.01.2006 02:49:01 added filter:DVD Navigator to graph
23.01.2006 02:49:01 add filter:Mpeg2Dec Filter to graph
23.01.2006 02:49:01 added filter:Mpeg2Dec Filter to graph
23.01.2006 02:49:01 add filter:AC3Filter to graph
23.01.2006 02:49:01 added filter:AC3Filter to graph
23.01.2006 02:49:01 add filter:ReClock Audio Renderer to graph clock:ReClock Audio Renderer
23.01.2006 02:49:01 added filter:ReClock Audio Renderer to graph
23.01.2006 02:49:01 got pins
23.01.2006 02:49:01   got pin#0:Video
23.01.2006 02:49:01   render ok
23.01.2006 02:49:01   got pin#1:AC3
23.01.2006 02:49:01   render ok
23.01.2006 02:49:01   got pin#2:SubPicture
23.01.2006 02:49:03   render failed:80040209
23.01.2006 02:49:03 DVDPlayer:Adding AC3 filter to graph
23.01.2006 02:49:03 SetDefaultLanguages
23.01.2006 02:49:03 DVDPlayer:Set default language:German 1031 Success.
23.01.2006 02:49:04 DVDPlayer:Set default menu language:German 1031 Success.
23.01.2006 02:49:04 DVDPlayer:Set subtitle language:German 1031 Success.
23.01.2006 02:49:04 DVDPlayer:Unable to set window owner 0x80040209
23.01.2006 02:49:04 DVDPlayer:Unable to set options()
23.01.2006 02:49:04 DVDPlayer9:cleanup DShow graph
23.01.2006 02:49:04 DVD:disable dx9 exclusive mode
23.01.2006 02:49:04 goto windowed:True
23.01.2006 02:49:04 player:ended
23.01.2006 02:49:06 key:13 0xD (2)
23.01.2006 02:49:10 key:27 0x1B (2)
23.01.2006 02:49:10 key:27 0x1B (2)
23.01.2006 02:49:10 key:27 0x1B (2)
23.01.2006 02:49:10 key:27 0x1B (2)
23.01.2006 02:49:11 window:MediaPortal.GUI.Video.GUIVideoFiles deinit
23.01.2006 02:49:11 texturemanager:CleanupThumbs()
23.01.2006 02:49:11 Recorder:disable dx9 exclusive mode
23.01.2006 02:49:11 goto windowed:True
23.01.2006 02:49:11 Texturemanager loaded temporay:skin\mce\media\tetris\hover.png 175x131 format:A8R8G8B8
23.01.2006 02:49:11   texturemanager:added:skin\mce\media\tetris\hover.png total:1 mem left:128974848
23.01.2006 02:49:11 window:MediaPortal.GUI.Home.HomeWindow init
23.01.2006 02:49:11 key:27 0x1B (2)
23.01.2006 02:49:14 Mediaportal.OnExit()
23.01.2006 02:49:14   PlugInManager.Stop()
23.01.2006 02:49:14 MediaPortal done
23.01.2006 02:49:14 dbs:close:ProgramDatabaseV3.db3
23.01.2006 02:49:14 dbs:close:TVDatabaseV21.db3
23.01.2006 02:49:14 dbs:close:VideoDatabaseV5.db3
23.01.2006 02:49:14 dbs:close:FolderDatabase2.db3

The logfiles/errorlogs of mediaplayer did not show anything obvious. At least not messages above debug/info level.

Let me know if i can help you any further!
 

Taipan

Retired Team Member
  • Premium Supporter
  • February 23, 2005
    2,075
    44
    Melbourne
    Home Country
    Australia Australia
    Re: 0.2.0.0 CVS (2006-01-15)

    pulsar said:
    reclock is configured to detect the framerate via directdraw since its is the only way to go when using VMR9 and exclusive mode in MP.
    Why do you think that ReClock is necessary?

    AFAIK, ReClock is superfluous with VMR9, as VMR9 already does the correct video synching?
     

    pulsar

    Portal Member
    January 23, 2006
    5
    0
    Germany
    Re: 0.2.0.0 CVS (2006-01-15)

    Taipan said:
    AFAIK, ReClock is superfluous with VMR9, as VMR9 already does the correct video synching?

    I need reclock to speed up ntsc movies to play super-fluent on my pal setup. Reclock does "tell" ntsc movies to play a little bit faster so 23.976 fps get 25 fps. So yes, VMR9 does already take care (right now in exclusive mode only) of the vsyncing, but it wont provide a modified reference clock and do the time-stretching thingie.
     

    mPod

    Portal Pro
    January 26, 2005
    2,084
    3
    Berlin
    Home Country
    Germany Germany
    NTSC NDF is 29.97, not 23.976 btw. NTSC movies NEVER made problems on my PAL setup. Kick ReClock, that's history.
     

    AberDino

    MP Donator
  • Premium Supporter
  • February 17, 2005
    240
    28
    Kincardineshire
    Home Country
    Scotland Scotland
    I've got a dedicated media PC connected to a widescreen CRT TV using a custom made VGA to RGB cable and Powerstrip (25Hz Interlaced), and I definitely use ReClock for movie playback (not for live TV), even though I use VMR9 renderless. The speed adjustment for NTSC movies is mandatory, but even PAL movies are a lot smoother with ReClock. I'm not sure how ReClock works, but it definitely does more than VMR9 VSYNC alone.

    Also, ReClock was 'dead' for a while, but I just noticed its creator is back on the job. I'll be trying the latest version tonight, including the kernel streaming feature.
     

    pulsar

    Portal Member
    January 23, 2006
    5
    0
    Germany
    mPod said:
    NTSC NDF is 29.97, not 23.976 btw. NTSC movies NEVER made problems on my PAL setup. Kick ReClock, that's history.

    Please, we are getting off topic here.

    Fact: i have various dvd movies which are encoded at 23.976 fps (which is also refered as film 24 fps). 29.97 FPS is beeing achieved during the playback. This is tagged with flags in the mpeg stream which tell the decoder which frame to repeat at what time.

    Fact: Pans for example will show heavy jittering when playing 29FPS or 24FPS material @ 25/50hz. The only way to get rid of this is about adjusting the framerate. Maybe you do not notice it, but i am very picky about smooth video playback.

    Fact: ReClock is not history, the development just continued including really nice features (kernel streaming, time stretching)

    Fact: all of this does not have anything to do with the bugreport. A nice discussion though :D You do not solve an bug / problem by not looking at it.
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    pulsar said:
    Fact: Pans for example will show heavy jittering when playing 29FPS or 24FPS material @ 25/50hz. The only way to get rid of this is about adjusting the framerate. Maybe you do not notice it, but i am very picky about smooth video playback.

    Actually the correct way to play those 24/29FPS materials is to use a display that can handle the correct refresh rate :)

    If I remember correctly, there is a setting in ReClock that can be used to make ReClock to work with DX exclusive mode (sorry that I can't be more specific as I haven't needed reclock for a long time. It was something like DirectX / Direct Draw 2D selection... and the working one is 2D.)
     

    pulsar

    Portal Member
    January 23, 2006
    5
    0
    Germany
    tourettes said:
    If I remember correctly, there is a setting in ReClock that can be used to make ReClock to work with DX exclusive mode (sorry that I can't be more specific as I haven't needed reclock for a long time. It was something like DirectX / Direct Draw 2D selection... and the working one is 2D.)

    the option you are refering to is to use directdraw instead of directx to detect the currently used framerate. I have already configured it properly.
     

    pulsar

    Portal Member
    January 23, 2006
    5
    0
    Germany
    I have been investigating this issue a little bit deeper. It seems that the combination of mediaportal and reclock while using a mpeg2 decoder leads to problems with the playbackmode / surface allocation. According to the tests the problem is not only present in the dvd mode but affects mpeg decoding in general.

    This does not seem to be realted to the mpeg decoder used, so far i have reproduced this bug with the following decoders:

    - MainCopncept MPEG Video Decoder
    - Mpeg2Dec Filter
    - DScaler Mpeg2 Decoder
    - CyberLink Video/SP Decoder (powerdvd6)
    - Nero DVD Decoder

    For some reasons the VMR9 filter cannot be setup correctly and a fallback is beeing made to windowed mode and VMR7. Those assumtions are made after enabling / reading debug output produced by ReClock and comparing that one to the MP logifle. The interessting parts are:

    Code:
        1.45s 000be0         Media type set: 0 Hz, 6 channel(s), 16 bits PCM
        1.45s 000be0         CompleteConnect()
        1.45s 000be0         GetMediaInfo() cache=(0/0/0.000000)
        1.45s 000be0         m_detectedCaptureGraph=0
        1.45s 000be0         Found a renderer monitorInterfaceType=0 m_vidRenderer=VMR7 (windowed)
        1.45s 000be0         Found renderer IPin
        1.45s 000be0         m_detectedVideoStream=1
        1.45s 000be0         Found DVD interface
        1.45s 000be0 WARNING VideoAttributes not available
        1.45s 000fbc         Creating tray window
        1.47s 000be0         Getting reg key DISCID8922A0F0C82991070000000000 = 0
        1.47s 000be0         Searched framerate in registry m_digest=DISCID8922A0F0C82991070000000000 l_rateNum=0
        1.47s 000be0         Released DVD interface

    On the other side mediaplayer produces following error-log:
    Code:
    25.01.2006 16:10:29 VideoPlayer:play C:\someTestVideo.mpg
    25.01.2006 16:10:29 vmr9:ctor() done:True
    25.01.2006 16:10:29 goto fullscreen:True
    25.01.2006 16:10:29 app:Switch to fullscreen mode False
    25.01.2006 16:10:29 app:Switched to fullscreen mode
    25.01.2006 16:10:29 vmr9:addvmr9
    25.01.2006 16:10:29 VMR9: now active
    25.01.2006 16:10:29 VMR9Helper:Vmr9 Added
    25.01.2006 16:10:29 add filter:DScaler Mpeg2 Video Decoder to graph
    25.01.2006 16:10:29 added filter:DScaler Mpeg2 Video Decoder to graph
    25.01.2006 16:10:29 add filter:AC3Filter to graph
    25.01.2006 16:10:29 added filter:AC3Filter to graph
    25.01.2006 16:10:29 add filter:ffdshow raw video filter to graph
    25.01.2006 16:10:30 added filter:ffdshow raw video filter to graph
    25.01.2006 16:10:30 add filter:ReClock Audio Renderer to graph clock:ReClock Audio Renderer
    25.01.2006 16:10:30 added filter:ReClock Audio Renderer to graph
    25.01.2006 16:10:32 vmr9: pin:0 not connected:80040209
    25.01.2006 16:10:32 vmr9: no input pin 1 found
    25.01.2006 16:10:32 vmr9: no input pin 2 found
    25.01.2006 16:10:32 VideoPlayer9:cleanup DShow graph
    25.01.2006 16:10:32 vmr9:Dispose
    25.01.2006 16:10:32 VMR9: not active
    25.01.2006 16:10:32 goto windowed:False
    25.01.2006 16:10:32 app:Switch to windowed mode False
    25.01.2006 16:10:33 app:Switched to windowed mode
    25.01.2006 16:10:33 VMR7Helper:AddVMR7
    25.01.2006 16:10:33 add filter:DScaler Mpeg2 Video Decoder to graph
    25.01.2006 16:10:33 added filter:DScaler Mpeg2 Video Decoder to graph
    25.01.2006 16:10:33 add filter:AC3Filter to graph
    25.01.2006 16:10:33 added filter:AC3Filter to graph
    25.01.2006 16:10:33 add filter:ffdshow raw video filter to graph
    25.01.2006 16:10:33 added filter:ffdshow raw video filter to graph
    25.01.2006 16:10:33 add filter:ReClock Audio Renderer to graph clock:ReClock Audio Renderer
    25.01.2006 16:10:34 added filter:ReClock Audio Renderer to graph
    25.01.2006 16:10:35 VideoPlayer9:cleanup DShow graph
    25.01.2006 16:10:35 state:Stopped 0
    25.01.2006 16:10:35 goto windowed:True
    25.01.2006 16:10:35 player:ended

    The errorcode 80040209 translates to The operation cannot be performed because the pins are not connected. As it seems to me the filter graph cannot be initialized properly due incompatible / unexpected renderers? Those would be my speculations here.

    I am pretty sure this issue must be closely related to MP Since MediaPlayer classic is not suffering of such problems.

    Those recent tests were done using the latest CVS Version (2005-25-01, exlusive and non exclusive mode), Media Player Classic 6.4.8.2 (VMR9 renderless output) and ReClock version 1.6 Stable, 1.7 Beta3

    I hope this helps somehow to solve this issue. Let me know if i can do some further debugging, perhaps i could run mp code in the c# express debugger and step through if needed. I need to know what i am looking for though (or maybe one of the devs is up for a vnc session?)

    Cheers!
     

    Users who are viewing this thread

    Top Bottom