[fixed] Video and sound syncronisation (1 Viewer)

Smeulf

Retired Team Member
  • Premium Supporter
  • October 27, 2010
    672
    454
    France
    Home Country
    France France
    For me, it's like in your example but only when OSD or stats are not displayed.

    If the OSD is displayed, or the stats are enabled, I have no stutter. But it seems it's very related to graphics device drivers so.. just a question : are your graphics drivers up to date on your NVIDIA plateform ? I think yes but, it worth the check.

    Cheers.

    Smeulf.
     

    1stdead

    Portal Pro
    February 1, 2008
    1,089
    139
    Copenhagen
    Home Country
    Denmark Denmark
    No it's terrible out of date. I think from dec 2009 or something like that. It's a laptop, new drivers are rare.

    NVIDIA: 8.15.11.8688 / 28-08-2009
    ATI: 11.6, oktober 2011
     

    1stdead

    Portal Pro
    February 1, 2008
    1,089
    139
    Copenhagen
    Home Country
    Denmark Denmark
    Hi,
    new results here :) I definitely feel some changes now. But unfortunately they're in the wrong direction for me.

    Test Setup:
    Intel Core 2 Duo SU7300 1.30GHz, 4gb ram, Integrated Intel® GMA X4500MHD & NVIDIA® GeForce® G 210M with 512 MB VRAM- switchable graphics . (x264 is normally rendered in graphic card)

    Codec: MSDecoder

    movie.mkv:
    [collapse]General
    Unique ID : 185504191080121096176377446134406727196 (0x8B8ECEC1906875F9B0D15A5854E8461C)
    Complete name : D:\movie.mkv
    Format : Matroska
    Format version : Version 2
    File size : 7.94 GiB
    Duration : 1h 51mn
    Overall bit rate : 10.2 Mbps
    Encoded date : UTC 2011-10-28 13:26:48
    Writing application : mkvmerge v5.0.1 ('Es ist Sommer') built on Oct 9 2011 11:55:43
    Writing library : libebml v1.2.2 + libmatroska v1.3.0

    Video
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L4.1
    Format settings, CABAC : Yes
    Format settings, ReFrames : 12 frames
    Muxing mode : Header stripping
    Codec ID : V_MPEG4/ISO/AVC
    Duration : 1h 51mn
    Bit rate : 9 530 Kbps
    Width : 1 280 pixels
    Height : 534 pixels
    Display aspect ratio : 2.40:1
    Frame rate : 23.976 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.582
    Stream size : 7.28 GiB (92%)
    Writing library : x264 core 119 r2106 07efeb4
    Encoding settings : cabac=1 / ref=12 / deblock=1:-3:-3 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.10:0.10 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-3 / threads=12 / sliced_threads=0 / nr=0 / decimate=0 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=7 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=150 / rc=2pass / mbtree=1 / bitrate=9530 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:0.60
    Language : English
    Default : Yes
    Forced : No

    Audio
    ID : 2
    Format : AC-3
    Format/Info : Audio Coding 3
    Mode extension : CM (complete main)
    Muxing mode : Header stripping
    Codec ID : A_AC3
    Duration : 1h 51mn
    Bit rate mode : Constant
    Bit rate : 640 Kbps
    Channel(s) : 6 channels
    Channel positions : Front: L C R, Side: L R, LFE
    Sampling rate : 48.0 KHz
    Bit depth : 16 bits
    Compression mode : Lossy
    Stream size : 512 MiB (6%)
    Language : English
    Default : Yes
    Forced : No

    Text
    ID : 3
    Format : UTF-8
    Codec ID : S_TEXT/UTF8
    Codec ID/Info : UTF-8 Plain Text
    Language : English
    Default : No
    Forced : No

    Menu
    00:00:00.000 : en:Chapter.01
    00:07:01.504 : en:Chapter.02
    00:11:33.275 : en:Chapter.03
    00:19:25.164 : en:Chapter.04
    00:26:43.518 : en:Chapter.05
    00:33:36.514 : en:Chapter.06
    00:40:30.511 : en:Chapter.07
    00:45:42.156 : en:Chapter.08
    00:51:57.114 : en:Chapter.09
    00:56:59.958 : en:Chapter.10
    01:02:24.365 : en:Chapter.11
    01:08:12.505 : en:Chapter.12
    01:13:30.906 : en:Chapter.13
    01:18:33.875 : en:Chapter.14
    01:25:31.334 : en:Chapter.15
    01:30:25.378 : en:Chapter.16
    01:38:20.352 : en:Chapter.17
    01:43:37.836 : en:Chapter.18[/collapse]


    20111120_video_SleepForceImmediate.png: My computer seems to slow to do the playback, video stops and seems like its doing some buffering. Cpuusage is however max 60%. Fps drops from 24 to 6, going up again and playback continues and buffers later on again.

    20111120_video_NoSleepPresentNone.png: Playback seems better than 20111120_video_SleepForceImmediate.png, but still suffering from the slowness. Fps is between 24 and 18.

    20111120_video_SleepForceImmediate.png: Little better than 20111120_video_NoSleepPresentNone.png. But still can't do the playback at full speed.
     

    Attachments

    • 20111120_gui_NoSleepForceImmediate.png
      20111120_gui_NoSleepForceImmediate.png
      269.5 KB
    • 20111120_gui_NoSleepPresentNone.png
      20111120_gui_NoSleepPresentNone.png
      256 KB
    • 20111120_gui_SleepForceImmediate.png
      20111120_gui_SleepForceImmediate.png
      248.1 KB
    • 20111120_video_NoSleepForceImmediate.png
      20111120_video_NoSleepForceImmediate.png
      885.1 KB
    • 20111120_video_NoSleepPresentNone.png
      20111120_video_NoSleepPresentNone.png
      831.9 KB
    • 20111120_video_SleepForceImmediate.png
      20111120_video_SleepForceImmediate.png
      1,013.9 KB

    commander197

    Portal Pro
    December 23, 2008
    97
    7
    AW: Video and sound syncronisation

    Hi,

    i've tested the update1 and evr build with some dvds. For me working your builds great. I will test next week your new build with mkv files and other dvds. Why you don't you test madVR as render? MadVR support with the new version dxva.

    Greets commander
     

    1stdead

    Portal Pro
    February 1, 2008
    1,089
    139
    Copenhagen
    Home Country
    Denmark Denmark
    My HTPC- results for MP2_20111120_ThreadExperiment

    Test Setup:
    AMD 64 X2 4850e, 2gb ram, ati HD5450

    Screen 1366x768 @ 60Hz

    Movie: Another x264 in mkv
    [collapse]General
    Unique ID : 198342692890307813922039719606784699467 (0x953769C41E65DD5AB41954DA204D2C4B)
    Complete name : D:\test\movie.mkv
    Format : Matroska
    Format version : Version 2
    File size : 6.38 GiB
    Duration : 2h 4mn
    Overall bit rate : 7 351 Kbps
    Encoded date : UTC 2011-10-16 07:06:02
    Writing application : mkvmerge v5.0.1 ('Es ist Sommer') built on Oct 9 2011 11:55:43
    Writing library : libebml v1.2.2 + libmatroska v1.3.0

    Video
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L4.1
    Format settings, CABAC : Yes
    Format settings, ReFrames : 12 frames
    Codec ID : V_MPEG4/ISO/AVC
    Duration : 2h 4mn
    Bit rate : 5 840 Kbps
    Width : 1 280 pixels
    Height : 544 pixels
    Display aspect ratio : 2.35:1
    Frame rate : 23.976 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.350
    Stream size : 4.94 GiB (77%)
    Writing library : x264 core 118 r2085 8a62835
    Encoding settings : cabac=1 / ref=12 / deblock=1:-3:-3 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=0.90:0.40 / mixed_ref=1 / me_range=64 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-4 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=1 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=80 / rc=2pass / mbtree=1 / bitrate=5840 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:0.90
    Language : English
    Default : Yes
    Forced : No

    Audio
    ID : 2
    Format : DTS
    Format/Info : Digital Theater Systems
    Codec ID : A_DTS
    Duration : 2h 4mn
    Bit rate mode : Constant
    Bit rate : 1 510 Kbps
    Channel(s) : 6 channels
    Channel positions : Front: L C R, Side: L R, LFE
    Sampling rate : 48.0 KHz
    Bit depth : 24 bits
    Compression mode : Lossy
    Stream size : 1.31 GiB (21%)
    Default : Yes
    Forced : No

    Text #1
    ID : 3
    Format : UTF-8
    Codec ID : S_TEXT/UTF8
    Codec ID/Info : UTF-8 Plain Text
    Language : English
    Default : No
    Forced : No

    Text #2
    ID : 4
    Format : UTF-8
    Codec ID : S_TEXT/UTF8
    Codec ID/Info : UTF-8 Plain Text
    Language : Chinese
    Default : No
    Forced : No

    Text #3
    ID : 5
    Format : UTF-8
    Codec ID : S_TEXT/UTF8
    Codec ID/Info : UTF-8 Plain Text
    Language : Czech
    Default : No
    Forced : No

    Text #4
    ID : 6
    Format : UTF-8
    Codec ID : S_TEXT/UTF8
    Codec ID/Info : UTF-8 Plain Text
    Language : Spanish
    Default : No
    Forced : No

    Text #5
    ID : 7
    Format : UTF-8
    Codec ID : S_TEXT/UTF8
    Codec ID/Info : UTF-8 Plain Text
    Language : Finnish
    Default : No
    Forced : No

    Text #6
    ID : 8
    Format : UTF-8
    Codec ID : S_TEXT/UTF8
    Codec ID/Info : UTF-8 Plain Text
    Language : French
    Default : No
    Forced : No

    Text #7
    ID : 9
    Format : UTF-8
    Codec ID : S_TEXT/UTF8
    Codec ID/Info : UTF-8 Plain Text
    Language : Greek
    Default : No
    Forced : No

    Text #8
    ID : 10
    Format : UTF-8
    Codec ID : S_TEXT/UTF8
    Codec ID/Info : UTF-8 Plain Text
    Title : Hong Kong
    Language : Chinese
    Default : No
    Forced : No

    Text #9
    ID : 11
    Format : UTF-8
    Codec ID : S_TEXT/UTF8
    Codec ID/Info : UTF-8 Plain Text
    Language : Italian
    Default : No
    Forced : No

    Text #10
    ID : 12
    Format : UTF-8
    Codec ID : S_TEXT/UTF8
    Codec ID/Info : UTF-8 Plain Text
    Language : Polish
    Default : No
    Forced : No

    Text #11
    ID : 13
    Format : UTF-8
    Codec ID : S_TEXT/UTF8
    Codec ID/Info : UTF-8 Plain Text
    Language : rom
    Default : No
    Forced : No

    Text #12
    ID : 14
    Format : UTF-8
    Codec ID : S_TEXT/UTF8
    Codec ID/Info : UTF-8 Plain Text
    Language : Swedish
    Default : No
    Forced : No

    Menu
    00:00:00.000 : en:00:00:00.000
    00:08:12.158 : en:00:08:12.158
    00:14:56.813 : en:00:14:56.813
    00:24:21.543 : en:00:24:21.543
    00:30:39.129 : en:00:30:39.129
    00:38:39.859 : en:00:38:39.859
    00:45:52.166 : en:00:45:52.166
    00:51:58.157 : en:00:51:58.157
    00:57:55.639 : en:00:57:55.639
    01:03:59.294 : en:01:03:59.294
    01:12:22.588 : en:01:12:22.588
    01:19:10.663 : en:01:19:10.663
    01:28:27.052 : en:01:28:27.052
    01:33:53.002 : en:01:33:53.002
    01:42:20.343 : en:01:42:20.343
    01:50:45.055 : en:01:50:45.055
    01:53:46.319 : en:01:53:46.319
    [/collapse]

    Best one is MP_gui_NoSleepForceImmediate, but still huge hickups once in a while(2-10seconds) and smaller jittering in between. Sometimes audio even goes out.
     

    Attachments

    • MP_video_NoSleepPresentNone.png
      MP_video_NoSleepPresentNone.png
      581.7 KB
    • MP_video_NoSleepForceImmediate.png
      MP_video_NoSleepForceImmediate.png
      627.1 KB
    • MP_gui_SleepForceImmediate.png
      MP_gui_SleepForceImmediate.png
      303.3 KB
    • MP_gui_NoSleepPresentNone.png
      MP_gui_NoSleepPresentNone.png
      295.5 KB
    • MP_gui_NoSleepForceImmediate.png
      MP_gui_NoSleepForceImmediate.png
      302.2 KB
    • MP_video_SleepForceImmediate.png
      MP_video_SleepForceImmediate.png
      706.7 KB

    1stdead

    Portal Pro
    February 1, 2008
    1,089
    139
    Copenhagen
    Home Country
    Denmark Denmark
    Hi commander197,

    Problem is not the render, problem is to make it work with OSD etc. All gui related stuff.


    Oki i understand all this, what i don't understand is: Can the "trick" potPlayer use to get madVR with DXVA working also work for MP? As i understand it u need direct control over the outputted data/decoder and manually have to copy the contents, so a default dshow graph wont work. What about a special intermediate "copy" filter just right between the dxva decoder and the renderer or so to speak 1 fake dxva renderer filter dummy connected to the real that just does the copy part so dxva can work. If this don't work i guess maybe its possible to could work with the LAVFilter guy to get the LAVFilters special support for this setup?

    Problem is not related to DXVA in anyway (no DXVA support is a limitation of current madVR - not sure if it is planned to be implemented). If madVR would have DXVA support it still wouldn't be possible to use it with MediaPortal.

    PotPlayer's approach can only solve the DXVA support, not the GUI & video rendering "issue". If you ask from me it is just an ugly way to enable DXVA - people should just use LAV CUVID or some relevant non-DXVA based decoder with madVR.

    https://forum.team-mediaportal.com/improvement-suggestions-46/adding-madvr-support-94582/index6.html
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Thanks for testing. I have now removed the experimental build, because it does not help at all. No need to test it further!

    Yesterday we made some more success and I will provide a new version this evening.

    Sent from my GT-I9000 using Tapatalk
     

    Users who are viewing this thread

    Top Bottom