Resume Time DVD issue

Discussion in 'Moving Pictures' started by popy, February 4, 2015.

  1. popy
    • Super User

    popy Super User

    Joined:
    July 3, 2011
    Messages:
    616
    Likes Received:
    83
    Ratings:
    +141 / 2
    Show System Specs
    Hey guys.

    I am working on the Plugin WatchedSyncronizer which syncs all UserMovieSettings to a centralized server db.
    During development i have found an issue where the DVD (which are IFO, VOB files) Resume Time, chapter ... is not restored.
    I can reproduce the issue in the following way:
    • Open MP on client 1 and navigate to MovingPictures
    • Start a DVD movie (from disk, IFO & VOB files) on client 1 -> go to main movie and stop at about ~10 minutes
    • ResumeData, Time etc. is stored in movingpictures.db at table UserMovieSettings
    • close MP on client 1
    • backup the movingpictures.db for later use
    • Open MP on client 1 again and navigate to MovingPictures
    • Start the same DVD again -> MP ask to resume @10minutes -> press yes and here you go, the dvd playback resumes correctly
    Now on client 2:
    • copy the movingpictures.db backup made of client 1 (with resume data, time in it) to client 2
    • Open MP on client 2 and navigate to MovingPictures
    • Start the same DVD movie (from disk, IFO & VOB files) on client 2 -> MP ask to resume @10minutes -> press yes and...
    • BAM, you are NOT @ the previous chapter you where stopping @ client 1, the DVD just starts from the beginning.
    First i was thinking that my syncronisation of my plugin was wrong. But when you do the steps MANUALLY like descibed above the same happens. This just happens when "resume_data" is needed for gPlayer to resume the chapters and so on.
    On single files like MKV where just the "resume_time" is needed the issue doesnt come up.

    So my thinkings are that there is something in the Gplayer ResumeData Part which doesnt work on an other machine!?

    Just to be sure, i have made two debug logs, one from the machine where the resumedata was written and was resumed correctly, and one with the same DB (copied the file before) on the other machine where the resume fails.
    After removing the timestamps and comparing them with Beyond Compare there are just a few lines in the OK log which are missing in the NOT OK log. But no usful inromation to get behind whats going wrong:



    Resume OK:
    Code (Text):
    1. [Log    ] [MPMain   ] [INFO ] - g_Player.OnStarted() \\MEDIASERVER\Videos\Movies\Arielle die Meerjungfrau - Special Edition\VIDEO_TS\VIDEO_TS.IFO media:Video
    2. [Log    ] [MPMain   ] [INFO ] - DVDPlayer::SetResumeState() begin
    3. [Log    ] [MPMain   ] [INFO ] - DVDPlayer::SetResumeState() SetState
    4. [Log    ] [25       ] [DEBUG] - PlaneScene: PresentImage() dispose surfaces
    5. [Log    ] [7        ] [DEBUG] - PlaneScene: crop T, B  : 0, 0
    6. [Log    ] [7        ] [DEBUG] - PlaneScene: crop L, R  : 0, 0
    7. [Log    ] [7        ] [INFO ] - PlaneScene: video WxH  : 720x576
    8. [Log    ] [7        ] [DEBUG] - PlaneScene: video AR   : 16:9
    9. [Log    ] [7        ] [INFO ] - PlaneScene: screen WxH : 1280x720
    10. [Log    ] [7        ] [DEBUG] - PlaneScene: AR type    : Stretch
    11. [Log    ] [7        ] [DEBUG] - PlaneScene: PixelRatio : 1
    12. [Log    ] [7        ] [DEBUG] - PlaneScene: src        : (0,0)-(720,576)
    13. [Log    ] [7        ] [DEBUG] - PlaneScene: dst        : (0,0)-(1280,720)
    14. [Log    ] [MPMain   ] [INFO ] - DVDPlayer::SetResumeState() end false
    15. [Log    ] [MPMain   ] [DEBUG] - [WIFI_REMOTE]  Playback started!
    16. [Log    ] [MPMain   ] [INFO ] - [WIFI_REMOTE]  {"Type":"nowplaying","Duration":0,"File":"\\\\MEDIASERVER\\Videos\\Movies\\Arielle die Meerjungfrau - Special Edition\\VIDEO_TS\\VIDEO_TS.IFO","Position":0,"IsTv":false,"IsFullscreen":true,"MediaInfo":{"MediaType":"movie","MpExtId":"72","MpExtMediaType":0,"MpExtProviderId":3,"ItemId":72,"Summary":"Arielle wächst mit ihren sechs Schwestern behütet in der Meereswelt auf, nur ihre Nanny ist eine rechte Schreckschraube. Doch ein Schatten lastet auf ihrem Vater, dem König der Unterwasserwelt Triton. Aus Trauer verbietet er seinem Volk die Musik. Diese hat Arielle aber gerade als ihre Leidenschaft entdeckt. Die Meerjungfrau versucht die Hintergründe aufzuklären und die Musik zurück ins Königreich zu bringen. Dabei lernt sie mehr über die Geschichte ihrer Mutter. Bei ihrem Abenteuer zur Seite stehen Krabbe Sebastian und Flunder Fabius.","Title":"Arielle, die Meerjungfrau – Wie alles begann","AlternateTitles":"|The Little Mermaid - Ariel's Beginning|A Pequena Sereia: A História de Ariel|Le Secret de la Petite Sirène|La Petite Sirène 3 - Le Secret de la Petite Sirène|Русалочка: Начало истории Ариэль|De kleine zeemeermin 3: Ariël hoe het begon|A kis hableány 3|","Tagline":"Every Story Has a Beginning, But Only One Begins Under the Sea","Directors":"|Peggy Holmes|","Writers":"|Robert Reece|Evan Spiliotopoulos|","Actors":"|Jodi Benson|Samuel E. Wright|Sally Field|","Rating":"7,9","Year":2008,"Genres":"|Animation|Musical|Familie|","Certification":"G","DetailsUrl":"http://www.imdb.com/title/tt0969647","ImageName":"C:\\ProgramData\\Team MediaPortal\\MediaPortal\\Thumbs\\MovingPictures\\Covers\\FullSize\\{Arielle,.die.Meerjungfrau.–.Wie.alles.begann-2008} [-231144223].jpg"}}
    17. [Log    ] [51       ] [DEBUG] - [WIFI_REMOTE]  Start now-playing update thread
    18. [Log    ] [MPMain   ] [DEBUG] - Window: MediaPortal.GUI.Video.GUIVideoFullscreen deinit
    19. [Log    ] [7        ] [DEBUG] - SetThumbnails: Thumbs for video (VIDEO_TS) not found. Creating a new video thumb...
    20. [Log    ] [MPMain   ] [DEBUG] - TextureManager: CleanupThumbs()
    21. [Log    ] [MPMain   ] [DEBUG] - Window: MediaPortal.GUI.Video.GUIVideoFullscreen init
    22. [Log    ] [MPMain   ] [DEBUG] - EVT:DvdAudioStreamChange:-1
    23. [Log    ] [MPMain   ] [DEBUG] - EVT:DvdTitleChange:1
    24. [Log    ] [MPMain   ] [DEBUG] - EVT:DvdButtonChange: buttons:#0, focused button: 0
    25. [Log    ] [MPMain   ] [DEBUG] - EVT:DvdValidUopsChange:0x1FFFFFF
    26. [Log    ] [MPMain   ] [DEBUG] - EVT:DVDPlayer:domain=firstplay
    27. [Log    ] [MPMain   ] [DEBUG] - EVT:DVDPlayer:domain=videomanagermenu (menu)
    28. [Log    ] [MPMain   ] [DEBUG] - EVT:DVDPlayer:domain=videotitlesetmenu (menu)
    29. [Log    ] [MPMain   ] [DEBUG] - EVT:DvdValidUopsChange:0x400000
    30. [Log    ] [MPMain   ] [DEBUG] - EVT:DvdAudioStreamChange:1
    31. [Log    ] [MPMain   ] [DEBUG] - EVT:DvdSubPicture Changed to:4 Enabled:1
    32. [Log    ] [MPMain   ] [DEBUG] - EVT:DvdValidUopsChange:0x400000
    33. [Log    ] [MPMain   ] [DEBUG] - EVT:DvdChaptStart:6
    34. [Log    ] [MPMain   ] [DEBUG] - EVT:DvdButtonChange: buttons:#0, focused button: 0
    Resume NOT ok with same DB on other client:
    Code (Text):
    1. [Log    ] [MPMain   ] [INFO ] - g_Player.OnStarted() \\MEDIASERVER\Videos\Movies\Arielle die Meerjungfrau - Special Edition\VIDEO_TS\VIDEO_TS.IFO media:Video
    2. [Log    ] [49       ] [DEBUG] - PlaneScene: PresentImage() dispose surfaces
    3. [Log    ] [MPMain   ] [INFO ] - DVDPlayer::SetResumeState() begin
    4. [Log    ] [MPMain   ] [INFO ] - DVDPlayer::SetResumeState() SetState
    5. [Log    ] [53       ] [DEBUG] - PlaneScene: crop T, B  : 0, 0
    6. [Log    ] [53       ] [DEBUG] - PlaneScene: crop L, R  : 0, 0
    7. [Log    ] [53       ] [INFO ] - PlaneScene: video WxH  : 720x576
    8. [Log    ] [53       ] [DEBUG] - PlaneScene: video AR   : 16:9
    9. [Log    ] [53       ] [INFO ] - PlaneScene: screen WxH : 1920x1080
    10. [Log    ] [53       ] [DEBUG] - PlaneScene: AR type    : Normal
    11. [Log    ] [53       ] [DEBUG] - PlaneScene: PixelRatio : 1
    12. [Log    ] [53       ] [DEBUG] - PlaneScene: src        : (0,0)-(720,576)
    13. [Log    ] [53       ] [DEBUG] - PlaneScene: dst        : (0,0)-(1920,1080)
    14. [Log    ] [53       ] [DEBUG] - SetThumbnails: Thumbs for video (VIDEO_TS) not found. Creating a new video thumb...
    15. [Log    ] [MPMain   ] [INFO ] - DVDPlayer::SetResumeState() end false
    16. [Log    ] [MPMain   ] [DEBUG] - [WIFI_REMOTE]  Playback started!
    17. [Log    ] [MPMain   ] [INFO ] - [WIFI_REMOTE]  {"Type":"nowplaying","Duration":0,"File":"\\\\MEDIASERVER\\Videos\\Movies\\Arielle die Meerjungfrau - Special Edition\\VIDEO_TS\\VIDEO_TS.IFO","Position":0,"IsTv":false,"IsFullscreen":true,"MediaInfo":{"MediaType":"movie","MpExtId":"72","MpExtMediaType":0,"MpExtProviderId":3,"ItemId":72,"Summary":"Arielle wächst mit ihren sechs Schwestern behütet in der Meereswelt auf, nur ihre Nanny ist eine rechte Schreckschraube. Doch ein Schatten lastet auf ihrem Vater, dem König der Unterwasserwelt Triton. Aus Trauer verbietet er seinem Volk die Musik. Diese hat Arielle aber gerade als ihre Leidenschaft entdeckt. Die Meerjungfrau versucht die Hintergründe aufzuklären und die Musik zurück ins Königreich zu bringen. Dabei lernt sie mehr über die Geschichte ihrer Mutter. Bei ihrem Abenteuer zur Seite stehen Krabbe Sebastian und Flunder Fabius.","Title":"Arielle, die Meerjungfrau – Wie alles begann","AlternateTitles":"|The Little Mermaid - Ariel's Beginning|A Pequena Sereia: A História de Ariel|Le Secret de la Petite Sirène|La Petite Sirène 3 - Le Secret de la Petite Sirène|Русалочка: Начало истории Ариэль|De kleine zeemeermin 3: Ariël hoe het begon|A kis hableány 3|","Tagline":"Every Story Has a Beginning, But Only One Begins Under the Sea","Directors":"|Peggy Holmes|","Writers":"|Robert Reece|Evan Spiliotopoulos|","Actors":"|Jodi Benson|Samuel E. Wright|Sally Field|","Rating":"7,9","Year":2008,"Genres":"|Animation|Musical|Familie|","Certification":"G","DetailsUrl":"http://www.imdb.com/title/tt0969647","ImageName":"C:\\ProgramData\\Team MediaPortal\\MediaPortal\\Thumbs\\MovingPictures\\Covers\\FullSize\\{Arielle,.die.Meerjungfrau.–.Wie.alles.begann-2008} [-231144223].jpg"}}
    18. [Log    ] [52       ] [DEBUG] - [WIFI_REMOTE]  Start now-playing update thread
    19. [Log    ] [MPMain   ] [DEBUG] - Window: MediaPortal.GUI.Video.GUIVideoFullscreen deinit
    20. [Log    ] [MPMain   ] [DEBUG] - TextureManager: CleanupThumbs()
    21. [Log    ] [MPMain   ] [DEBUG] - Window: MediaPortal.GUI.Video.GUIVideoFullscreen init
    22. [Log    ] [MPMain   ] [DEBUG] - EVT:DvdAudioStreamChange:-1
    23. [Log    ] [MPMain   ] [DEBUG] - EVT:DvdTitleChange:1
    24. [Log    ] [MPMain   ] [DEBUG] - EVT:DvdButtonChange: buttons:#0, focused button: 0
    25. [Log    ] [MPMain   ] [DEBUG] - EVT:DvdValidUopsChange:0x1FFFFFF
    26. [Log    ] [MPMain   ] [DEBUG] - EVT:DVDPlayer:domain=firstplay
    27. [Log    ] [MPMain   ] [DEBUG] - EVT:DVDPlayer:domain=videomanagermenu (menu)
    28. [Log    ] [MPMain   ] [DEBUG] - EVT:DVDPlayer:domain=videotitlesetmenu (menu)
    29. [Log    ] [MPMain   ] [DEBUG] - EVT:DvdValidUopsChange:0x400000
    30. [Log    ] [MPMain   ] [DEBUG] - EVT:DvdValidUopsChange:0x400000
    31. [Log    ] [MPMain   ] [DEBUG] - EVT:DvdButtonChange: buttons:#0, focused button: 0
    The resume lines are not here!?
    Currently i have no clue how to fix the resume data, or whats wrong in it to get it working on oher client.

    Would be nice if anyone can help me.
    pOpY
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. ltfearme
    • Premium Supporter

    ltfearme Community Plugin Dev

    Joined:
    June 10, 2007
    Messages:
    6,457
    Likes Received:
    4,241
    Gender:
    Male
    Occupation:
    Software Test Engineer
    Location:
    Sydney
    Ratings:
    +5,385 / 0
    Home Country:
    Australia Australia
    Hey Popy,

    thanks for the analysis. I probably wont have time to look into this anytime soon. If I used DVD/Bluray media that might be a different story but im a MKV file man myself as im sure 99% of the other users in MovPics :)

    Cheers
    Damien
     
    • Thank You! Thank You! x 1
  4. popy
    • Super User

    popy Super User

    Joined:
    July 3, 2011
    Messages:
    616
    Likes Received:
    83
    Ratings:
    +141 / 2
    Show System Specs
    Hey ltfearme.

    You are right i am also a MKV boy ;)
    Would be nice that you look at it "anytime" :p

    pOpY
     
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!