Resume Time DVD issue (1 Viewer)

popy

MP Donator
  • Premium Supporter
  • July 3, 2011
    617
    141
    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:
    [Log    ] [MPMain   ] [INFO ] - g_Player.OnStarted() \\MEDIASERVER\Videos\Movies\Arielle die Meerjungfrau - Special Edition\VIDEO_TS\VIDEO_TS.IFO media:Video
    [Log    ] [MPMain   ] [INFO ] - DVDPlayer::SetResumeState() begin
    [Log    ] [MPMain   ] [INFO ] - DVDPlayer::SetResumeState() SetState
    [Log    ] [25       ] [DEBUG] - PlaneScene: PresentImage() dispose surfaces
    [Log    ] [7        ] [DEBUG] - PlaneScene: crop T, B  : 0, 0
    [Log    ] [7        ] [DEBUG] - PlaneScene: crop L, R  : 0, 0
    [Log    ] [7        ] [INFO ] - PlaneScene: video WxH  : 720x576
    [Log    ] [7        ] [DEBUG] - PlaneScene: video AR   : 16:9
    [Log    ] [7        ] [INFO ] - PlaneScene: screen WxH : 1280x720
    [Log    ] [7        ] [DEBUG] - PlaneScene: AR type    : Stretch
    [Log    ] [7        ] [DEBUG] - PlaneScene: PixelRatio : 1
    [Log    ] [7        ] [DEBUG] - PlaneScene: src        : (0,0)-(720,576)
    [Log    ] [7        ] [DEBUG] - PlaneScene: dst        : (0,0)-(1280,720)
    [Log    ] [MPMain   ] [INFO ] - DVDPlayer::SetResumeState() end false
    [Log    ] [MPMain   ] [DEBUG] - [WIFI_REMOTE]  Playback started!
    [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"}}
    [Log    ] [51       ] [DEBUG] - [WIFI_REMOTE]  Start now-playing update thread
    [Log    ] [MPMain   ] [DEBUG] - Window: MediaPortal.GUI.Video.GUIVideoFullscreen deinit
    [Log    ] [7        ] [DEBUG] - SetThumbnails: Thumbs for video (VIDEO_TS) not found. Creating a new video thumb...
    [Log    ] [MPMain   ] [DEBUG] - TextureManager: CleanupThumbs()
    [Log    ] [MPMain   ] [DEBUG] - Window: MediaPortal.GUI.Video.GUIVideoFullscreen init
    [Log    ] [MPMain   ] [DEBUG] - EVT:DvdAudioStreamChange:-1
    [Log    ] [MPMain   ] [DEBUG] - EVT:DvdTitleChange:1
    [Log    ] [MPMain   ] [DEBUG] - EVT:DvdButtonChange: buttons:#0, focused button: 0
    [Log    ] [MPMain   ] [DEBUG] - EVT:DvdValidUopsChange:0x1FFFFFF
    [Log    ] [MPMain   ] [DEBUG] - EVT:DVDPlayer:domain=firstplay
    [Log    ] [MPMain   ] [DEBUG] - EVT:DVDPlayer:domain=videomanagermenu (menu)
    [Log    ] [MPMain   ] [DEBUG] - EVT:DVDPlayer:domain=videotitlesetmenu (menu)
    [Log    ] [MPMain   ] [DEBUG] - EVT:DvdValidUopsChange:0x400000
    [Log    ] [MPMain   ] [DEBUG] - EVT:DvdAudioStreamChange:1
    [Log    ] [MPMain   ] [DEBUG] - EVT:DvdSubPicture Changed to:4 Enabled:1
    [Log    ] [MPMain   ] [DEBUG] - EVT:DvdValidUopsChange:0x400000
    [Log    ] [MPMain   ] [DEBUG] - EVT:DvdChaptStart:6
    [Log    ] [MPMain   ] [DEBUG] - EVT:DvdButtonChange: buttons:#0, focused button: 0

    Resume NOT ok with same DB on other client:
    Code:
    [Log    ] [MPMain   ] [INFO ] - g_Player.OnStarted() \\MEDIASERVER\Videos\Movies\Arielle die Meerjungfrau - Special Edition\VIDEO_TS\VIDEO_TS.IFO media:Video
    [Log    ] [49       ] [DEBUG] - PlaneScene: PresentImage() dispose surfaces
    [Log    ] [MPMain   ] [INFO ] - DVDPlayer::SetResumeState() begin
    [Log    ] [MPMain   ] [INFO ] - DVDPlayer::SetResumeState() SetState
    [Log    ] [53       ] [DEBUG] - PlaneScene: crop T, B  : 0, 0
    [Log    ] [53       ] [DEBUG] - PlaneScene: crop L, R  : 0, 0
    [Log    ] [53       ] [INFO ] - PlaneScene: video WxH  : 720x576
    [Log    ] [53       ] [DEBUG] - PlaneScene: video AR   : 16:9
    [Log    ] [53       ] [INFO ] - PlaneScene: screen WxH : 1920x1080
    [Log    ] [53       ] [DEBUG] - PlaneScene: AR type    : Normal
    [Log    ] [53       ] [DEBUG] - PlaneScene: PixelRatio : 1
    [Log    ] [53       ] [DEBUG] - PlaneScene: src        : (0,0)-(720,576)
    [Log    ] [53       ] [DEBUG] - PlaneScene: dst        : (0,0)-(1920,1080)
    [Log    ] [53       ] [DEBUG] - SetThumbnails: Thumbs for video (VIDEO_TS) not found. Creating a new video thumb...
    [Log    ] [MPMain   ] [INFO ] - DVDPlayer::SetResumeState() end false
    [Log    ] [MPMain   ] [DEBUG] - [WIFI_REMOTE]  Playback started!
    [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"}}
    [Log    ] [52       ] [DEBUG] - [WIFI_REMOTE]  Start now-playing update thread
    [Log    ] [MPMain   ] [DEBUG] - Window: MediaPortal.GUI.Video.GUIVideoFullscreen deinit
    [Log    ] [MPMain   ] [DEBUG] - TextureManager: CleanupThumbs()
    [Log    ] [MPMain   ] [DEBUG] - Window: MediaPortal.GUI.Video.GUIVideoFullscreen init
    [Log    ] [MPMain   ] [DEBUG] - EVT:DvdAudioStreamChange:-1
    [Log    ] [MPMain   ] [DEBUG] - EVT:DvdTitleChange:1
    [Log    ] [MPMain   ] [DEBUG] - EVT:DvdButtonChange: buttons:#0, focused button: 0
    [Log    ] [MPMain   ] [DEBUG] - EVT:DvdValidUopsChange:0x1FFFFFF
    [Log    ] [MPMain   ] [DEBUG] - EVT:DVDPlayer:domain=firstplay
    [Log    ] [MPMain   ] [DEBUG] - EVT:DVDPlayer:domain=videomanagermenu (menu)
    [Log    ] [MPMain   ] [DEBUG] - EVT:DVDPlayer:domain=videotitlesetmenu (menu)
    [Log    ] [MPMain   ] [DEBUG] - EVT:DvdValidUopsChange:0x400000
    [Log    ] [MPMain   ] [DEBUG] - EVT:DvdValidUopsChange:0x400000
    [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
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,751
    7,196
    Sydney
    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
     

    Users who are viewing this thread

    Top Bottom