[fixed] Video and sound syncronisation (1 Viewer)

1stdead

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

Didn't have time to ask, but are you coming with a new build then as this one still didn't fix it? :)
 

Smeulf

Retired Team Member
  • Premium Supporter
  • October 27, 2010
    672
    454
    France
    Home Country
    France France
    Hi morpheus_xx,

    Didn't have time to ask, but are you coming with a new build then as this one still didn't fix it? :)

    The next comming build have a big change in the code. We made some experiment sunday evening, and without going in the detail, frames are now passed in another way (textures instead of stetch+rect IIRC what Morpheus said but I must admit it means nothing to me ;) )

    On my side, it massively reduced the amount of stuttering, but I still have sometime some bad frames on my MKV test file, or rarely a black one presented.

    For HDTV, it seems now very good, but I have to disable any hardware acceleration in LAV to have a good result.

    Also, it seems these changes have broke the PIP feature, so their's still work to do.

    I think Morpheus will put online a new build ASAP for you to help us to close this issue once for all! Maybe we will work on it again for some days before, I can't say... But we (mostly Morpheus) are working hard on it! I've been myself testing the last changes the all evening...

    Thanks to all for your help and support, you will be kept informed.

    Cheers.

    Smeulf.
     

    Albert

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

    Also, it seems these changes have broke the PIP feature, so their's still work to do.

    The builds which are presented here are builds with unclean code, just to test how video problems like the frame flashing problem can be solved. They only try to fix the playback problems and could break other functions. But that is no problem because the only reason of those builds is to track down the playback problems.
    When we have found the problem, we'll repair the original MP2 code, which can always be downloaded from github.
    So all those builds presented in this thread or in the context of bug finding are explicitly declared "unstable".
     

    Smeulf

    Retired Team Member
  • Premium Supporter
  • October 27, 2010
    672
    454
    France
    Home Country
    France France
    Re: AW: Re: Video and sound syncronisation

    Also, it seems these changes have broke the PIP feature, so their's still work to do.

    The builds which are presented here are builds with unclean code, just to test how video problems like the frame flashing problem can be solved. They only try to fix the playback problems and could break other functions. But that is no problem because the only reason of those builds is to track down the playback problems.
    When we have found the problem, we'll repair the original MP2 code, which can always be downloaded from github.
    So all those builds presented in this thread or in the context of bug finding are explicitly declared "unstable".

    Indeed it it unstable and for this particular issue only, and my point was not to report a new bug, but just to point out that the new way was not working with PIP at the moment. I just very hope it's not incompatible... It was writted most as a side note :)

    Will now check last build...

    Cheers.
     

    1stdead

    Portal Pro
    February 1, 2008
    1,089
    139
    Copenhagen
    Home Country
    Denmark Denmark
    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

    Version: MP2_20111122_TextureCallback.7z

    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]

    EVRCustomPresenter using Texture mode: 0 : All three render modes shutters like provided in video example.


    EVRCustomPresenter using Texture mode: 1: Shuttering seems to be less than mode 0.


    -----------------------------------------------------------------------------------------------------------------------------------------



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

    Screen 1366x768 @ 60Hz

    Version: MP2_20111122_TextureCallback.7z

    Codec: MSCODEC

    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]



    EVRCustomPresenter using Texture mode: 0 : Small shuttering here as well in all three renders. Almost watchable now like mode 1. There isn't much difference between the modes.


    EVRCustomPresenter using Texture mode: 1: Flickers very little, but still noticable in all three render modes. Screen flashes black for like 1ms. It actually begins to be watchable.



    ---------------------------------------------------------------------------------------------------------------------------------------------------------------

    There definite a difference between my laptop and htpc. Htpc is allmost watchable while laptop is still flickering very badly.

    Tried Ffdshow DVAX and shutting was still large in all test cases :(
     

    Smeulf

    Retired Team Member
  • Premium Supporter
  • October 27, 2010
    672
    454
    France
    Home Country
    France France
    Please, can you also try with subtitles disables ? Here it seems it makes the video perfect without subs...
     

    Smeulf

    Retired Team Member
  • Premium Supporter
  • October 27, 2010
    672
    454
    France
    Home Country
    France France
    Oh tks 1stdead.

    So here I have :

    UseTextureCallback = False => not good at all

    UseTextureCallback = True => Good for my mkv test file as soon as I remove the subtitles. If subs are enabled, it stutters when the sub appears it seems, but not always.

    For an another file (HDTV), I have some stutters from time to time. No matter the screen refresh rate or the rendering mode.

    [Edit] Oh btw, A/V sync is now very ok!! :D [/Edit]

    HDTV File Details :
    [COLLAPSE]
    General
    ID : 4 (0x4)
    Complete name : D:\Smeulf\Videos\Recorded TV\Faut pas rêver - France 3 HD - 2011-10-28.ts
    Format : MPEG-TS
    File size : 4.57 GiB
    Duration : 2h 11mn
    Overall bit rate mode : Variable
    Overall bit rate : 4 991 Kbps

    Video
    ID : 48 (0x30)
    Menu ID : 137 (0x89)
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L4.0
    Format settings, CABAC : Yes
    Format settings, ReFrames : 4 frames
    Codec ID : 27
    Duration : 2h 11mn
    Width : 1 440 pixels
    Height : 1 080 pixels
    Display aspect ratio : 16:9
    Frame rate : 25.000 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : MBAFF

    Audio
    ID : 64 (0x40)
    Menu ID : 137 (0x89)
    Format : AAC
    Format/Info : Advanced Audio Codec
    Format version : Version 2
    Format profile : LC
    Muxing mode : ADTS
    Codec ID : 15
    Duration : 2h 11mn
    Bit rate mode : Variable
    Channel(s) : 2 channels
    Channel positions : Front: L R
    Sampling rate : 48.0 KHz
    Compression mode : Lossy
    Delay relative to video : -283ms
    Language : French

    Text
    ID : 97 (0x61)-888
    Menu ID : 137 (0x89)
    Format : Teletext Subtitle
    Language : French
    [/COLLAPSE]
     

    Attachments

    • 01.jpg
      01.jpg
      170.9 KB
    • 02.jpg
      02.jpg
      239.7 KB
    • 03.jpg
      03.jpg
      293.2 KB

    Smeulf

    Retired Team Member
  • Premium Supporter
  • October 27, 2010
    672
    454
    France
    Home Country
    France France
    Quick rectification : my MKV still stutter, but very few. But you're on the right way Morpheus.
     

    Users who are viewing this thread

    Top Bottom