Error while playing any video stream for a 2nd time

Discussion in 'Watch / Listen Media' started by xppx, April 20, 2014.

  1. xppx

    xppx Portal Pro

    Joined:
    September 2, 2007
    Messages:
    71
    Likes Received:
    15
    Ratings:
    +29 / 0
    Home Country:
    Belgium Belgium
    Show System Specs
    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.

    [​IMG]


    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 (Text):
    1. [2014-04-20 16:49:51,493] [Log    ] [MPMain   ] [INFO ] - CycleRefreshRate: result DISP_CHANGE_SUCCESSFUL for refresh rate change 23Hz
    2. [2014-04-20 16:49:51,493] [Log    ] [MPMain   ] [DEBUG] - CycleRefresh: DWM Detected, performing shenanigans
    3. [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)
    4. [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
    5. [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
    6. [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()
    7. [2014-04-20 16:49:51,793] [Log    ] [MPMain   ] [INFO ] - g_Player: ended
    8. [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 (Text):
    1. [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)
    2. [2014-04-20 16:49:32,480] [Log    ] [MPMain   ] [INFO ] - Loading external players plugins
    3. [2014-04-20 16:49:32,481] [Log    ] [MPMain   ] [INFO ] -   found plugin:MediaPortal.ITunesPlayer.ITunesPlugin in M:\MediaPortal\Plugins\ExternalPlayers\ExternalPlayers.dll
    4. [2014-04-20 16:49:32,481] [Log    ] [MPMain   ] [INFO ] -   player:iTunes.  author: Frodo
    5. [2014-04-20 16:49:32,481] [Log    ] [MPMain   ] [INFO ] -   found plugin:MediaPortal.WinampPlayer.WinampPlugin in M:\MediaPortal\Plugins\ExternalPlayers\ExternalPlayers.dll
    6. [2014-04-20 16:49:32,482] [Log    ] [MPMain   ] [INFO ] -   player:Winamp.  author: int_20h
    7. [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
    8. [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
    9. [2014-04-20 16:49:32,505] [Log    ] [MPMain   ] [INFO ] - VideoPlayer9: Enabling DX9 exclusive mode
    10. [2014-04-20 16:49:32,505] [Log    ] [MPMain   ] [INFO ] - Main: GUI_MSG_SWITCH_FULL_WINDOWED message is obsolete.
    11. [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: April 20, 2014
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. mm1352000
    • Team MediaPortal

    mm1352000 Development Group

    Joined:
    September 1, 2008
    Messages:
    21,527
    Likes Received:
    4,738
    Ratings:
    +8,205 / 17
    Home Country:
    New Zealand New Zealand
    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?
     
  4. xppx

    xppx Portal Pro

    Joined:
    September 2, 2007
    Messages:
    71
    Likes Received:
    15
    Ratings:
    +29 / 0
    Home Country:
    Belgium Belgium
    Show System Specs
    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: April 20, 2014
  5. mm1352000
    • Team MediaPortal

    mm1352000 Development Group

    Joined:
    September 1, 2008
    Messages:
    21,527
    Likes Received:
    4,738
    Ratings:
    +8,205 / 17
    Home Country:
    New Zealand New Zealand
    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.
     
    • Like Like x 1
  6. xppx

    xppx Portal Pro

    Joined:
    September 2, 2007
    Messages:
    71
    Likes Received:
    15
    Ratings:
    +29 / 0
    Home Country:
    Belgium Belgium
    Show System Specs
    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: April 21, 2014
  7. xppx

    xppx Portal Pro

    Joined:
    September 2, 2007
    Messages:
    71
    Likes Received:
    15
    Ratings:
    +29 / 0
    Home Country:
    Belgium Belgium
    Show System Specs
    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: June 8, 2014
    • Thank You! Thank You! x 1
  8. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,256
    Likes Received:
    6,211
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,214 / 9
    Home Country:
    France France
    Show System Specs
    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 :)
     
    • Like Like x 1
  9. xppx

    xppx Portal Pro

    Joined:
    September 2, 2007
    Messages:
    71
    Likes Received:
    15
    Ratings:
    +29 / 0
    Home Country:
    Belgium Belgium
    Show System Specs
    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?
     
    • Like Like x 1
  10. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,256
    Likes Received:
    6,211
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,214 / 9
    Home Country:
    France France
    Show System Specs
    Yep :)
     
    • Agree Agree x 1
  11. Sebastiii
    • Team MediaPortal

    Sebastiii Development Group

    Joined:
    November 12, 2007
    Messages:
    16,256
    Likes Received:
    6,211
    Gender:
    Male
    Location:
    France
    Ratings:
    +10,214 / 9
    Home Country:
    France France
    Show System Specs
    • Thank You! Thank You! x 1
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!