[fixed] Video and sound syncronisation (1 Viewer)

infinite.loop

Retired Team Member
  • Premium Supporter
  • December 26, 2004
    16,163
    4,133
    127.0.0.1
    Home Country
    Austria Austria
    Re: AW: Video and sound syncronisation

    i-loop, can you post the reported fps after you pressed F1 and F2 (enable render stats+ max fps), just for info. not using any external tools
    aahhh, those are they keys in MP2, was trying the one from MP1. :D

    Attched 2 screenshots to my initial feedback post.
     

    Albert

    MP2 Developer
  • Premium Supporter
  • February 18, 2008
    1,297
    1,130
    46
    Freiburg im Breisgau, Germany
    Home Country
    Germany Germany
    AW: Re: AW: Video and sound syncronisation

    i-loop, can you post the reported fps after you pressed F1 and F2 (enable render stats+ max fps), just for info. not using any external tools
    aahhh, those are they keys in MP2, was trying the one from MP1. :D

    Attched 2 screenshots to my initial feedback post.

    Only as a short note: This thread is about a debug build of a special plugin which uses those keys. Those keys aren't "official debug keys" for MP2 or something. Morpheus has built that debug version to find out what's the problem with our flashing frames in video player.
     

    infinite.loop

    Retired Team Member
  • Premium Supporter
  • December 26, 2004
    16,163
    4,133
    127.0.0.1
    Home Country
    Austria Austria
    Re: AW: Re: AW: Video and sound syncronisation

    i-loop, can you post the reported fps after you pressed F1 and F2 (enable render stats+ max fps), just for info. not using any external tools
    aahhh, those are they keys in MP2, was trying the one from MP1. :D

    Attched 2 screenshots to my initial feedback post.

    Only as a short note: This thread is about a debug build of a special plugin which uses those keys. Those keys aren't "official debug keys" for MP2 or something. Morpheus has built that debug version to find out what's the problem with our flashing frames in video player.
    So what are the offical keys? :)

    also ! as in MP1?
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    I think frame rendering statistics won't be a core feature ;-) It is a way to debug wrong outputs.

    But I think it would be good if there were some interfaces to allow plugins to do this.

    Sent from my GT-I9000 using Tapatalk
     

    infinite.loop

    Retired Team Member
  • Premium Supporter
  • December 26, 2004
    16,163
    4,133
    127.0.0.1
    Home Country
    Austria Austria
    I think frame rendering statistics won't be a core feature ;-) It is a way to debug wrong outputs.

    But I think it would be good if there were some interfaces to allow plugins to do this.
    imo. it would be good to have the same stats/graphs available as in MP1 for proper playback quality research. That is usually what you tinker with the most when trying to get the perfect setup. :)
     

    MJGraf

    Retired Team Member
  • Premium Supporter
  • January 13, 2006
    2,478
    1,385
    Re: AW: Video and sound syncronisation

    Hi Morpheus,

    just back from holidays and still struggling with time in real life. So I could only test one video on my laptop (vaio tt) so far. I'm not quite sure what exactly you're looking for so I just tested one video as per your explanation:

    OS: W7 32bit - all SP/hotfixes
    CPU (type/freq): Intel Mobile Core2Duo U 9400 (2x1,4GHz)
    RAM size: 4GB
    Graphics (type, size of memory, screen resolution, refresh rate, fullscreen y/n): Mobile Intel 4 series, i think it's shared memory?!?, 1366x768, 40hz, fullscreen:yes)
    MP2-Skin: default - did not change anything
    FPS (max. fps enabled, fullscreen) in home screen, idle: about 100fps

    than what type of video you played
    Video format/Container: MPG-TS
    FPS: 25
    Resolution: 720x576 (tv recording)
    A/V synch: (see below)
    Codec: Microsoft / Win7 inbuilt
    .
    A/V synch: Video and Audio are in synch in both cases, with and without max fps enabled. But I had this problem when using your tv client. Does it help to reproduce this as well?!?

    Stuttering / Flickering:
    When I play the video without max fps enabled, I get heavy stuttering and flickering. The stuttering seems like old frames are rendered. The flickering seems to result from black frames being rendered?!? I get 40fps here
    When I play the video with max fps enabled, the flickering is gone, but there is still some stuttering. Much less than without max fps, but still visible. I get 50fps here.

    Please let me know exactly what you need from me to nail this down. I'm happy to help and can test other videos and / or other computers (my htpc is a lot more "beefy" than my laptop)

    Michael
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Hmm your results make me really wondering.

    When a video is played the render process is synced to the videoplayer: you should get the same fps as the active video. This should be also the case in maxfps mode.

    Currently I need to think about what to check next. I could also be, that the issue is not about the video presenter but the skinengine rendering itself.

    Could you also try a build from the current dev-
    branch? (I have no binaries, this would require a self compile...)

    Sent from my GT-I9000 using Tapatalk
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    AW: Video and sound syncronisation

    some more thoughts:
    - "max fps" uses "Present.ForceImmediate": this means the present does not take the screen refresh into account (v-blank) and presents when it's called. that's why you get 50 fps (25 fps clip, DXVA frame doubling to 50 fps).
    - "normal mode" uses "Present.None": this means, the presenting is matched to the screen refresh. now we have 50 fps incoming, but your screen is using a 40 Hz refresh rate (really strange value, btw). This could explain why you get issues in rendering (black frames etc).

    Maybe we could use "ForceImmediate" in case when the video fps is higher that the screen refresh rate?

    Can you please post screenshots from both modes (normal, max fps)?

    I really would like to know, how the playback is looking with a "dev branch" build (unfortunately there are no render stats and switches). On low end system it could be even smoother than my EVR_v2 branch (at least on my HTPC). I will create a build and upload it as well.
     

    MJGraf

    Retired Team Member
  • Premium Supporter
  • January 13, 2006
    2,478
    1,385
    Hi Morpheus,
    I can compile the dev branch. No worries. Just need to find some time. Will report back...
    Michael
     

    Users who are viewing this thread

    Top Bottom