Error while playing any video stream for a 2nd time (1 Viewer)

xppx

Portal Pro
September 2, 2007
85
58
Home Country
Belgium Belgium
Since MP v1.6 I cannot play a 2nd video within one session of MP without getting an error.

Use case: You produce the error by playing a video (doesn't matter which video/audio type or format, no matter whether it is via videos, tv-series, movingpictures or onlinevideos); it will play perfectly and then you close the stream (B) and start another (doesn't matter which video/audio type or format, etc... - can even be the same video). The video will seem to start and then a popup "cannot play" is shown. And when you do this via onlinevideos (e.g. watching a trailer) MP just crashes.

The workaround is to restart MP and then you can perfectly play the video again that just refused in the previous MP session.
The problem is gone ... until you play a second video.

This issue popped up after I upgraded to MP v1.6. Never saw this before and I'm using MediaPortal for over 6 years now.
Today I uninstalled everything, made sure each file on my system was gone, cleaned the registry and did a full fresh install of MP v1.7 with the latest StreamedMP and OnlineVideos. Only things reused where the databases and the thumbs.

Same issue appeared as soon as I tried to play a video for a second time.

For your convenience I added here my codec configuration. I'm not sure how that is related because I didn't touch that when upgrading MP to v1.6.
I use a combination of CoreAVC (I'm using this for years now without issue), CyberLink (same thing - using it for years now), Haali (as splitter and also using it for years now) and the latest LAV filters that come with MP (so not installed separately!)

nb. I also set everything to LAV to see if that was the problem but that didn't solve aforementioned issue.

dr2ucy.jpg



LOG A: In the logs you see this specific line the second time you play (any) video:

VideoPlayer9: Exception while creating DShow graph Creating an instance of the COM component with CLSID {E436EBB3-524F-11CE-9F53-0020AF0BA770} from the IClassFactory failed due to the following error: 8000ffff Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)). at MediaPortal.Player.VideoPlayerVMR9.GetInterfaces()

Code:
[2014-04-20 16:49:51,493] [Log    ] [MPMain   ] [INFO ] - CycleRefreshRate: result DISP_CHANGE_SUCCESSFUL for refresh rate change 23Hz
[2014-04-20 16:49:51,493] [Log    ] [MPMain   ] [DEBUG] - CycleRefresh: DWM Detected, performing shenanigans
[2014-04-20 16:49:51,519] [Log    ] [MPMain   ] [INFO ] - g_Player.Play(\\NAS_DS412\Media\Series\Continuum\Season 2 (2013)\S02E03.Second.Thoughts\Continuum.S02E03.(Second.Thoughts).720p.WEB-DL.AAC2.0.H264.mkv Video)
[2014-04-20 16:49:51,519] [Log    ] [MPMain   ] [DEBUG] - PlayerFactory: Successfully created player instance for file - \\NAS_DS412\Media\Series\Continuum\Season 2 (2013)\S02E03.Second.Thoughts\Continuum.S02E03.(Second.Thoughts).720p.WEB-DL.AAC2.0.H264.mkv
[2014-04-20 16:49:51,520] [Log    ] [MPMain   ] [INFO ] - VideoPlayer:play \\NAS_DS412\Media\Series\Continuum\Season 2 (2013)\S02E03.Second.Thoughts\Continuum.S02E03.(Second.Thoughts).720p.WEB-DL.AAC2.0.H264.mkv
[2014-04-20 16:49:51,790] [Error  ] [MPMain   ] [ERROR] - VideoPlayer9: Exception while creating DShow graph Creating an instance of the COM component with CLSID {E436EBB3-524F-11CE-9F53-0020AF0BA770} from the IClassFactory failed due to the following error: 8000ffff Catastrophic failure (Exception from HRESULT: 0x8000FFFF (E_UNEXPECTED)).    at MediaPortal.Player.VideoPlayerVMR9.GetInterfaces()
[2014-04-20 16:49:51,793] [Log    ] [MPMain   ] [INFO ] - g_Player: ended
[2014-04-20 16:49:51,795] [Log    ] [MPMain   ] [DEBUG] - Windowmanager: Goto previous window


LOG B: This is the log when the video is played the first time where everything still works as it should:

Code:
[2014-04-20 16:49:32,469] [Log    ] [MPMain   ] [INFO ] - g_Player.Play(\\NAS_DS412\Media\Series\Continuum\Season 2 (2013)\S02E03.Second.Thoughts\Continuum.S02E03.(Second.Thoughts).720p.WEB-DL.AAC2.0.H264.mkv Video)
[2014-04-20 16:49:32,480] [Log    ] [MPMain   ] [INFO ] - Loading external players plugins
[2014-04-20 16:49:32,481] [Log    ] [MPMain   ] [INFO ] -   found plugin:MediaPortal.ITunesPlayer.ITunesPlugin in M:\MediaPortal\Plugins\ExternalPlayers\ExternalPlayers.dll
[2014-04-20 16:49:32,481] [Log    ] [MPMain   ] [INFO ] -   player:iTunes.  author: Frodo
[2014-04-20 16:49:32,481] [Log    ] [MPMain   ] [INFO ] -   found plugin:MediaPortal.WinampPlayer.WinampPlugin in M:\MediaPortal\Plugins\ExternalPlayers\ExternalPlayers.dll
[2014-04-20 16:49:32,482] [Log    ] [MPMain   ] [INFO ] -   player:Winamp.  author: int_20h
[2014-04-20 16:49:32,482] [Log    ] [MPMain   ] [DEBUG] - PlayerFactory: Successfully created player instance for file - \\NAS_DS412\Media\Series\Continuum\Season 2 (2013)\S02E03.Second.Thoughts\Continuum.S02E03.(Second.Thoughts).720p.WEB-DL.AAC2.0.H264.mkv
[2014-04-20 16:49:32,486] [Log    ] [MPMain   ] [INFO ] - VideoPlayer:play \\NAS_DS412\Media\Series\Continuum\Season 2 (2013)\S02E03.Second.Thoughts\Continuum.S02E03.(Second.Thoughts).720p.WEB-DL.AAC2.0.H264.mkv
[2014-04-20 16:49:32,505] [Log    ] [MPMain   ] [INFO ] - VideoPlayer9: Enabling DX9 exclusive mode
[2014-04-20 16:49:32,505] [Log    ] [MPMain   ] [INFO ] - Main: GUI_MSG_SWITCH_FULL_WINDOWED message is obsolete.
[2014-04-20 16:49:32,538] [Log    ] [MPMain   ] [INFO ] - VMR9: added Video Mixing Renderer 9 to graph


Again I want to stress that my codec setup has been perfect for several years now and that this event started after upgrading (no fresh install) to MP v1.6. And that after a fresh install of MP v1.7 the problem persists.
Another important thing is that in the MP logs there are no other [ERROR] lines to be found. So the problem was easily pinpointed.

Has anyone any idea what this is about?
 
Last edited:

mm1352000

Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Has anyone any idea what this is about?
    This is very odd.
    The error means that the player DirectShow filter graph can't be created. Can't see why that should fail.

    If you revert to MP 1.5 does the problem go away?
     

    xppx

    Portal Pro
    September 2, 2007
    85
    58
    Home Country
    Belgium Belgium
    Yes it does.

    I can only see the problem in 3 areas:
    • or one of my DB's has gone corrupt and is causing issues .. but I do not see fail statements in any of the logs; (note that I still have my DB from MP v1.4 - I copy it each time in order not to loose my meta data)
    • or v1.6 introduced a try/catch statement where the catch should go on with a warning instead of stopping with an error; I assume from the log that the return fails but it doesn't say if it fails completely or one of the interfaces is null (what I suspect);
    • I also noticed that the 2nd time the external player plugin's aren't loaded anymore before the MediaPortal.Player.VideoPlayerVMR9.GetInterfaces() is called. Could be that this is normal behavior.
     
    Last edited:

    mm1352000

    Retired Team Member
  • Premium Supporter
  • September 1, 2008
    21,577
    8,224
    Home Country
    New Zealand New Zealand
    Yes it does.
    Hmmm, okay.

    The logs supplied above - were they produced with option 1, 2 or 3?
    If possible (and if not done already) I think it would be great if you could try option 1 to disable all plugins and eliminate them from the equation.
     

    xppx

    Portal Pro
    September 2, 2007
    85
    58
    Home Country
    Belgium Belgium
    First of all thank you for your swift reaction.

    The logs were not produced via de debug tool. I started by deleting the existing logs, produced the error in MP and then picked up the generated logs.

    As I'm leaving for a business trip today I'll run the use case in MP debug mode next Saturday.
     
    Last edited:

    xppx

    Portal Pro
    September 2, 2007
    85
    58
    Home Country
    Belgium Belgium
    If possible (and if not done already) I think it would be great if you could try option 1 to disable all plugins and eliminate them from the equation.

    Finally had some time to do some sound debugging.
    I wanted to make sure there were no specific elements clouding the mediaportal setup,
    so I:
    • did a full uninstall of my current MediaPortal 1.7 (incl. reg, and removed all folders manually)
    • uninstalled and installed (no update) my Nvidea video drivers to the latest recommended WHQLversion (v337.88 - May 26th)
      • used Driver Sweeper to make sure all my previous dll's were erased (did this of course in safe mode)
    • did a new fresh install of MediaPortal 1.7.1 Hotfix with all features enabled (LAV filters, etc...) just to be sure
    • and added following plug-ins: StreamedMP and OnlineVideos
    All with the necessary reboots, and it installed & configured perfectly fine.
    I did NOT copy old files, xml's, databases or anything over the setup. I kept it as clean as possible.

    Then I executed the MediaPortal debug tool which started MediaPortal stripped (with Titan as skin).

    I started some basic video's and ... bam... got the pop-up "cannot play with mention of video & audio codec' again. (so the error does not seem to be related to the video driver or a specific setup...)
    Only thing I noticed which was different, is that I only got the problem after the 4th try while with the full MP enabled you get the error always immediately on the 2nd video.

    The ZIP produced by the debug tool has been attached.

    I would be really grateful if someone could have a look at this. This problem is bugging me for some months now while before MediaPortal 1.6 I had no issue(s) whatsoever.
     
    Last edited:

    Sebastiii

    Development Group
  • Team MediaPortal
  • November 12, 2007
    16,583
    10,403
    France
    Home Country
    France France
    Hi,

    Did you try to set all to lav ? (splitter codec and all)
    And also audio device to use dsound or mpar (but try with dsound first).

    This is strange, but it can be some filter that hold the graph and lead to failed to create a new one.

    For sure this is not a common error but you could ride of haali etc like recent version of can quite all handle (chapter / edition and co.)

    But for purpose testing try all lav + dsound :)
     

    xppx

    Portal Pro
    September 2, 2007
    85
    58
    Home Country
    Belgium Belgium
    Thank you for your swift reply.

    Setting everyting to LAV & directsound was one of the combinations (see first post) I tried out.
    It gives the same result/errormessage however.

    Nb. Before MP 1.4 I didn't use LAV at all. I decided to switch to LAV because of all the good feedbacks it got.
    And the combination of Haali+CoreAVC+LAV worked fine until MP 1.6

    Would you like a debug result (zip) with requested combination?
     

    Users who are viewing this thread

    Top Bottom