[Plugin] MPSync - MediaPortal multi-seat Synchronization (2 Viewers)

Scrounger

Retired Team Member
  • Premium Supporter
  • January 21, 2009
    1,032
    514
    Stuttgart
    Home Country
    Germany Germany
    @ m3rcury:
    Has your plugin a public interface to start the sync task/thread from other plugins?
    If yes, can you please explain how to use it?
     

    MrCrabs

    Portal Pro
    January 21, 2010
    884
    129
    Braunschweig
    Home Country
    Germany Germany
    This is my setup:
    Client:
    View attachment 139401
    View attachment 139402View attachment 139403View attachment 139404

    On the main HTPC its similar except the sync direction. There it is client -> server.

    What am I doing wrong?

    EDIT: Do I have to set the sync direction always from Client to Server maybe?

    Are anything been synced?
    Because I cant see any db's in "Select databases to be Synchronize" window. It should show you the db you got under "\\Frtiz-nas\frits.nas\MPDB\"?

    Have you looked at the log files MPSync is producing?
    What does the log say if you press "Synchronize Now" button?

    This is exactly what I have set up and I have the sme problem. But I think it does not synch any whatched flags - only if a movie is set as whatched or not, but no "whatch from last position"
     

    m3rcury

    Development Group
  • Team MediaPortal
  • August 12, 2010
    977
    733
    Home Country
    Malta Malta
    @ m3rcury:
    Has your plugin a public interface to start the sync task/thread from other plugins?
    If yes, can you please explain how to use it?

    Scrounger, sync task is done through the plugin itself, no other plugin intervention. What this plugin does is that if you use the triggers option, triggers will be created in the other plugins databases to record changes in tables. These changes are then read by MPSync and copied over to the target database.
     

    m3rcury

    Development Group
  • Team MediaPortal
  • August 12, 2010
    977
    733
    Home Country
    Malta Malta
    This is my setup:
    Client:
    View attachment 139401
    View attachment 139402View attachment 139403View attachment 139404

    On the main HTPC its similar except the sync direction. There it is client -> server.

    What am I doing wrong?

    EDIT: Do I have to set the sync direction always from Client to Server maybe?

    It seems that the folder selected \\Frtiz-nas\frits.nas\MPDB\ does not contain any databases and that is why it is not working. If \\Frtiz-nas\frits.nas\MPDB\ is the server, you should have one of your clients (the master client) copying from its C: path to \\Frtiz-nas\frits.nas\MPDB\ and then other clients can sync from the server.
     

    popy

    MP Donator
  • Premium Supporter
  • July 3, 2011
    617
    141
    Hey m3rcury.

    Have searched a stuttering/dropped frames problem with live tv.
    If ill disable your plugin the problem is gone.

    After checking task manager, it gave me spikes on cpu load every intervall which is configured in mpsync.
    Also pause when player active is enabled, it makes no difference.
    As a workaround i have set the intervall to 10hours, but the problem still exists.
    After checking logs your plugin says sleeping for 10 sec - NOT hours as configured.
    after changing the mpsync.xml to 36000 secs also the log says sleeping 36000 secs.
    The stuttering is also gone because your plugin just kicks in every 10 hours.
    Can you please fix this bug so we can set minutes and hours as intervall?

    Other questions:

    Does MPSync start syncing at start of MP? If yes i leave mpsync enabled with my workaround.

    Does MPSync sleep and not sync if LiveTV is running, option pause when player active is enabled.

    It seems that also when the message sleeping will be written to the log (your plugin is active) and it generates cpu load spikes.
    Can you please verify this in your code around the sleeping message.


    Logs are attached
    Otherwise great plugin, cant live without it ;-)

    thx
    pOpY

    PS: my sys specs are up to date, its the HTPC Living Room (C2D E8400)
     

    Attachments

    • mpsync.rar
      11.5 KB

    m3rcury

    Development Group
  • Team MediaPortal
  • August 12, 2010
    977
    733
    Home Country
    Malta Malta
    Hey m3rcury.

    Have searched a stuttering/dropped frames problem with live tv.
    If ill disable your plugin the problem is gone.

    After checking task manager, it gave me spikes on cpu load every intervall which is configured in mpsync.
    Also pause when player active is enabled, it makes no difference.
    As a workaround i have set the intervall to 10hours, but the problem still exists.
    After checking logs your plugin says sleeping for 10 sec - NOT hours as configured.
    after changing the mpsync.xml to 36000 secs also the log says sleeping 36000 secs.
    The stuttering is also gone because your plugin just kicks in every 10 hours.
    Can you please fix this bug so we can set minutes and hours as intervall?

    Other questions:

    Does MPSync start syncing at start of MP? If yes i leave mpsync enabled with my workaround.

    Does MPSync sleep and not sync if LiveTV is running, option pause when player active is enabled.

    It seems that also when the message sleeping will be written to the log (your plugin is active) and it generates cpu load spikes.
    Can you please verify this in your code around the sleeping message.


    Logs are attached
    Otherwise great plugin, cant live without it ;-)

    thx
    pOpY

    PS: my sys specs are up to date, its the HTPC Living Room (C2D E8400)

    popy thanks for the feedback. It does generate some CPU load as it has to compare all the records between the source and target databases ;). Will see how to reduce this load.

    Also will check how to pause when liveTV is running as currently it does that only when playing a movie, video or series.

    Regarding the hours thing, I will have a look as well.
     

    m3rcury

    Development Group
  • Team MediaPortal
  • August 12, 2010
    977
    733
    Home Country
    Malta Malta
    Stig mentioned that his server does copy it's database to fritz-nas, so that can'tbe it.

    MrCrabs, I asked that question because in the screenshots, there are no databases listed, hence it cannot be that there are databases in the selected folder.
     

    popy

    MP Donator
  • Premium Supporter
  • July 3, 2011
    617
    141
    Hey m3rcury.

    Have searched a stuttering/dropped frames problem with live tv.
    If ill disable your plugin the problem is gone.

    After checking task manager, it gave me spikes on cpu load every intervall which is configured in mpsync.
    Also pause when player active is enabled, it makes no difference.
    As a workaround i have set the intervall to 10hours, but the problem still exists.
    After checking logs your plugin says sleeping for 10 sec - NOT hours as configured.
    after changing the mpsync.xml to 36000 secs also the log says sleeping 36000 secs.
    The stuttering is also gone because your plugin just kicks in every 10 hours.
    Can you please fix this bug so we can set minutes and hours as intervall?

    Other questions:

    Does MPSync start syncing at start of MP? If yes i leave mpsync enabled with my workaround.

    Does MPSync sleep and not sync if LiveTV is running, option pause when player active is enabled.

    It seems that also when the message sleeping will be written to the log (your plugin is active) and it generates cpu load spikes.
    Can you please verify this in your code around the sleeping message.


    Logs are attached
    Otherwise great plugin, cant live without it ;-)

    thx
    pOpY

    PS: my sys specs are up to date, its the HTPC Living Room (C2D E8400)

    popy thanks for the feedback. It does generate some CPU load as it has to compare all the records between the source and target databases ;). Will see how to reduce this load.

    Also will check how to pause when liveTV is running as currently it does that only when playing a movie, video or series.

    Regarding the hours thing, I will have a look as well.

    Thats clear to me that it must do something at sync ;)
    maybe after every synced record a sleep(1) will reduce cpu load and gives MP more time todo its other necessary tasks.
    Or in any do-while or for loop a sleep(1) could help.
    Ill dont know anything about MPs plugin structure but can you set the priority of the sync thread/plugin to very low?
    Just my suggestions.

    Would be nice to see the pause feature working for live TV, maybe the pause feature should work if ANY media is running.

    One more question: Does MPSYNC makes an initial sync on MP start if pause when player active is set and intervall set to 36000 secs?
    if this is the case i can live with my workaround.


    thx
    pOpY
     

    The_Stig

    Retired Team Member
  • Premium Supporter
  • April 5, 2005
    2,176
    428
    MrCrabs, I asked that question because in the screenshots, there are no databases listed, hence it cannot be that there are databases in the selected folder.
    Sorry for leading to misunderstandings. I made these screenshots from work with no access to my server. So probably this is the error in the screenshots. So, to make it more transparent what is working and what not:

    Setup:
    #1: Server (FritzNas)
    #2: Main Client (HTPC with TV-Cards in)
    #3: Minor Client

    Working:
    Start a video file on #2, stop at 10:00 minutes and resume it at 10:00 minutes on #3

    Not working:
    Start a video file on #3, stop at 10.00 minutes and resume it at 10:00 minutes on #3

    Just to be sure: what should be the sync directions. I guess I have set it up wrong. Should it be always from client to server (meaning from #2->#1 and from #3->#1)?
     

    Users who are viewing this thread

    Top Bottom