Moving Pictures config & MP crashing | Page 2

Discussion in 'Moving Pictures' started by Dark Eyes, November 18, 2017.

  1. Dark Eyes

    Dark Eyes Portal Pro

    Joined:
    February 27, 2011
    Messages:
    51
    Likes Received:
    4
    Ratings:
    +4 / 0
    Show System Specs
    Hello RoChess

    Okay, I will start with the divide and conquer process to see if I can narrow down the offending file(s).
    I would be interested in trying your verification script, I have an i5 in my Media-PC, so hopefully it would run a bit quicker.


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Dark Eyes

    Dark Eyes Portal Pro

    Joined:
    February 27, 2011
    Messages:
    51
    Likes Received:
    4
    Ratings:
    +4 / 0
    Show System Specs
    Surprisingly MovPic now successfully scans all the folders, after I reintroduced them 1 by 1 !!
    MediaPortal was still crashing, but that turned out to be Fanart handler, which I have now disabled.
    So now all I have to do is deal with the 1832 items, it hasn't automatically identified :(

    Thanks RoChess for your help, I really appreciate it.
     
    • Like Like x 1
  4. RoChess
    • Premium Supporter

    RoChess Extension Developer

    Joined:
    March 10, 2006
    Messages:
    4,204
    Likes Received:
    1,319
    Ratings:
    +1,709 / 2
    Yeah, and it can be an annoying single file with corrupt header that is causing it.

    Clearly Moving-Pictures should have used more try/catch code to support exceptions without crashing, but it is hard to account for every scenario unless you have an easy reproducible way to test for all possible use-cases.

    Computer code tends to be 100 lines of code to do something, and then it grows to 10,000 lines to account for every possible scenario that might go wrong :)

    Fanart-handler has given me much grieve in the past as well, because it caused database corruption for me to occur (and sounds like that was your issue as well). That is what ended up inspiring me to write an auto-backup+restore script for MediaPortal (available somewhere on this forum as well), which uses SQLite.exe command-line tool and runs a PRAGMA INTEGRITY scan real quick to verify the database did not become corrupt, and if it did to auto-restore the last known good-backup.

    Feel free to use that as well to avoid running into the same issue again, because it is annoying to have to do a fresh install and full import scan each time something goes wrong.

    Moving-Pictures makes a backup itself as well, but only when you update the plugin. Still that backup might save you some time if it was made before the database got corrupted.

    PS: IMDb+ should be able to auto-identify a lot more than the default IMDb scraper that comes with MovPic, so that might save you a bunch of time.
     
  5. RoChess
    • Premium Supporter

    RoChess Extension Developer

    Joined:
    March 10, 2006
    Messages:
    4,204
    Likes Received:
    1,319
    Ratings:
    +1,709 / 2
    This is the script (attached), and yeah an i5 should do much better than the AMD A5-5300 that I used, unless you got a really old i5 second generation.

    It requires ffmpeg.exe that you can download from: Builds - Zeranoe FFmpeg and extract from the ZIP file in the /bin folder.

    I'd recommend to first put the script in a folder with 1 or 2 sample media files, so you can see what it does and how long it will take.

    It's an ugly script that does not support resume or anything, so if it fails for some unexpected reason you're on your own, but I would be interested in more info to see if I can improve it.

    Two logs file are created, one that shows every file processed (good and bad), and one that shows just the ones that failed.

    PS: The failures should fail to play in MediaPlayerClassic or VLC, but it is good to double-check obviously as ffmpeg.exe might have a bug itself as well.
     

    Attached Files:

    • ScanMedia.zip
      File size:
      873 bytes
      Uploaded:
      December 31, 2017
      Views:
      40
  6. Edalex
    • Premium Supporter

    Edalex Community Plugin Dev

    Joined:
    January 3, 2008
    Messages:
    2,908
    Likes Received:
    713
    Gender:
    Male
    Location:
    Saratov
    Ratings:
    +1,229 / 9
    Home Country:
    Russian Federation Russian Federation
    Show System Specs
    Probably it uses SQL requests instead of some MovPics API, that's why
     
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!