[fixed] Video and sound syncronisation (1 Viewer)

morpheus_xx

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

    There is a new testbuild, based on the brand new RenderStats branch!

    It's basically based on dev and BDPlayer, so you'll get some more nice things to test (see also native bluray playback thread for MP1).

    Main changes I've added:
    • I now expose 3 different RenderModes:
      • SleepForceImmediate: the way as in master/dev branch (manually sleep till next frame time, use Present.ForceImmediate)
      • NoSleepPresentNone: do not manually sleep, use Present.None that takes care for one present per VBlank
      • NoSleepForceImmediate: dot not sleep, use Present.ForceImmediate (when NOT playing video this renders the GUI at maximum speed)
    • I added rendering lines for
      • GUI render duration (red)
      • Offset time in ms to next VBlank (green)

    Comment on render modes: in principle they affect the "idle" mode when no video is playing (mostly the maximum speed).

    For a test I need feedback while video is playing (in combination with the active RenderMode!)
    • are the lines quite steady
    • does the video playback stutter
    • do "wrong frames" appear (or black frames flashing)

    Please also post some screenshots (like mine attached), when idle and playing video :D

    Edit 1:
    - attached 1st Update: added yellow line (nr. of glitches), added screen and video resolution info (primary+PiP)

    Edit 2 (2011-11-20):
    - attached a fresh full build (unzip to a different folder), containing highly experimental code regarding process / thread usage

    Edit 3 (2011-11-21):
    - deleted build from day before, experiment didn't show improvements ;) new version will come soon!

    Edit 4 (2011-11-22):
    - new build added. main change is the use of Texture callbacks from EVRPresenter. this build is based on current dev, so it's newer than builds before. note: this build is known to break PiP video, but it's not the most important thing to check currently ;)

    Edit 5 (2011-11-23):
    - new version of plugins added (incremental update to Edit 4). better locking, removed waitvblank call, applied scheduler changes from EVR_v2

    Edit 6 (2011-11-23):
    - new version of plugins added (incremental update to Edit 5). more locking

    Edit 7 (2011-11-27):
    - I changed the locking of VideoBrush like it is done in dev branch. But this version doesn't do the StretchRect twice, but creates a local new texture instance. I've done this because on my ATI 5670 probably StretchRect can cause stutters as well

    Edit 8 (2011-11-29):
    - new build based on dev, using texture callback without StretchRect. This should work without flicker now for ATI. code got cleaned up and will be found in new branch "20111129-BluRay_v2"

    Edit 9 (2011-11-30):
    - small update of video player + media plugin. I'm now waiting in EVR callback until the render process is finished. Does it work better now?

    Edit 10 (2011-12-02):
    - Changed all video frame processing to use the single texture from callback only (no more copying). Callback thread is blocked until render process is done. Also includes a release build of BDReader.ax, so regsrv32 should work now. this is a release compiled build.

    Edit 11 (2011-12-19):
    - New tesbuild from VideoFlickerFix branch (https://github.com/MediaPortal/MediaPortal-2/commit/fb53c35d961f33e329806b5efeac94c72a3db12b). The EVR callback is now fully syncronized with the RenderThread. Should work now with both ATI+NVIDIA :)
     

    Attachments

    • 01_SleepForceImmediate.jpg
      01_SleepForceImmediate.jpg
      93.3 KB
    • 02_NoSleepPresentNone.jpg
      02_NoSleepPresentNone.jpg
      93 KB
    • 03_NoSleepForceImmediate.png
      03_NoSleepForceImmediate.png
      471.6 KB
    • 04_SleepForceImmediate_video.jpg
      04_SleepForceImmediate_video.jpg
      335.6 KB
    • 05_NoSleepPresentNone_video.jpg
      05_NoSleepPresentNone_video.jpg
      264 KB
    • 06_NoSleepForceImmediate_video.jpg
      06_NoSleepForceImmediate_video.jpg
      349 KB
    • 08_update_1.jpg
      08_update_1.jpg
      323.8 KB
    • Update_1.7z
      393.9 KB
    • MP2_20111122_TextureCallback.7z
      18.5 MB
    • MediaPortal.UI.Players.Video.Settings.VideoSettings.xml
      158 bytes
    • MP2_20111123_TextureCallback_Update1.7z
      1.4 MB
    • MP2_20111123_TextureCallback_Update2.7z
      1.4 MB
    • MP2_20111127_TextureCallback_VideoBrushLock.7z
      18.5 MB
    • MP2_20111129_BluRay_v2.7z
      17.5 MB
    • MP2_20111130_Update_EVR.7z
      447.3 KB

    1stdead

    Portal Pro
    February 1, 2008
    1,089
    139
    Copenhagen
    Home Country
    Denmark Denmark
    Hi,
    finally got to test MP2, thanks for public "debug" version.

    Just a little note if dokan isn't installed MP2 crashes.
    [2011-11-18 16:53:47,139] [1780 ] [Dokan ] [ERROR] - Dokan: Error mounting virtual filesystem at drive 'R' (is DOKAN not installed?)
    System.DllNotFoundException: DLL'en 'dokan.dll' kunne ikke indlæses: Det angivne modul blev ikke fundet. (Undtagelse fra HRESULT: 0x8007007E)
    ved Dokan.Dokan.DokanMain(DOKAN_OPTIONS& options, DOKAN_OPERATIONS& operations)
    ved Dokan.DokanNet.DokanMain(DokanOptions options, DokanOperations operations)
    ved MediaPortal.Common.Services.Dokan.Dokan.Run()

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

    Ok, now back to playback issue. Running MP2 without video fps seems stable around 62,5. But with video i got black screen and VERY choppy playback. Perhaps i didn't set my codec right or something? I did try and play the mkv in graphstudio and got the graph shown below. Perfect playback here. For some reason i could not get graphstudio to connect to MP2. But i hoping the same graph is being used.

    Anyways attached results are here.

    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)


    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]
     

    Attachments

    • mp2_novideo.png
      mp2_novideo.png
      285.1 KB
    • mp2_video.png
      mp2_video.png
      121.7 KB
    • graph.png
      graph.png
      66.3 KB

    morpheus_xx

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

    :D
    Two questions first:
    1) do you get a video rendered at all? because your sceenshot is only black and 10fps are not valid...
    2) when you have video, how does it behave when you use the other RenderModes (toggle them with F2)?

    According to your logfile, the FFDSHOW DXVA codec is used. You might try to use the MS Default one (Settings->Player->Codecs->MPEG4)
     

    1stdead

    Portal Pro
    February 1, 2008
    1,089
    139
    Copenhagen
    Home Country
    Denmark Denmark
    Wow that was a fast reply :D Nice!

    1) do you get a video rendered at all? because your sceenshot is only black and 10fps are not valid...

    --> yes it is rendered. At least i can hear music.

    2) when you have video, how does it behave when you use the other RenderModes (toggle them with F2)?

    --> No change when changing rendermodes. See new picture.


    Trying MS Default one as x264 codec. Hang on.


    --------------------------------------------------------------------------------------
    Ok when to do "Settings->Player->Codecs->MPEG4" and change to MS. MP2 Crashed after choosing the codec and pressing "ok":
    [collapse][2011-11-18 17:28:03,177] [1884864] [AMQ 'ScreenManager'] [DEBUG] - ScreenManager: Showing screen 'configuration-section'...
    [2011-11-18 17:28:06,043] [1887730] [Thread63 ] [DEBUG] - ThreadPool.ProcessQueue(): Quitting (inUse: 0, total: 3)
    [2011-11-18 17:28:06,048] [1887735] [Thread62 ] [DEBUG] - ThreadPool.ProcessQueue(): Quitting (inUse: 0, total: 2)
    [2011-11-18 17:28:11,025] [1892712] [InputMgr ] [INFO ] - WorkflowManager: Pushing workflow state 'Config: '/Players'' (id='2b9a2080-f1ee-4b25-b89d-a3a7e4001fac') onto the navigation stack...
    [2011-11-18 17:28:11,028] [1892715] [InputMgr ] [DEBUG] - WorkflowManager: Using workflow model with id '545674f1-d92a-4383-b6c1-d758cecdbdf5' for new workflow state '2b9a2080-f1ee-4b25-b89d-a3a7e4001fac'
    [2011-11-18 17:28:11,028] [1892715] [InputMgr ] [DEBUG] - WorkflowManager: Entering workflow state 'Config: '/Players''
    [2011-11-18 17:28:11,029] [1892716] [InputMgr ] [DEBUG] - WorkflowManager: Changing model context to workflow state '2b9a2080-f1ee-4b25-b89d-a3a7e4001fac' (old state was 'e7422bb8-2779-49ab-bc99-e3f56138061b') in workflow model '545674f1-d92a-4383-b6c1-d758cecdbdf5'
    [2011-11-18 17:28:11,036] [1892723] [InputMgr ] [DEBUG] - WorkflowManager: Compiling menu actions for workflow state 'Config: '/Players''
    [2011-11-18 17:28:11,037] [1892724] [InputMgr ] [DEBUG] - WorkflowManager: Tidying up...
    [2011-11-18 17:28:11,038] [1892725] [InputMgr ] [INFO ] - WorkflowManager: Trying to show screen 'configuration-section'...
    [2011-11-18 17:28:11,039] [1892726] [InputMgr ] [DEBUG] - ScreenManager: Preparing to show screen 'configuration-section'...
    [2011-11-18 17:28:11,040] [1892727] [InputMgr ] [DEBUG] - ScreenManager: Loading screen from file path 'C:\Users\1st\Downloads\MP2_20111118_StatsRender\Plugins\Configuration\Skin\default\screens\configuration-section.xaml'...
    [2011-11-18 17:28:11,052] [1892739] [InputMgr ] [DEBUG] - WorkflowManager: Attaching GUI model '9e9d0cd9-4fdb-4c0f-a0c4-f356e151bde0' to workflow state '2b9a2080-f1ee-4b25-b89d-a3a7e4001fac'
    [2011-11-18 17:28:11,060] [1892747] [InputMgr ] [DEBUG] - WorkflowManager: Attaching GUI model 'ca6428a7-a6e2-4dd3-9661-f89cebaf8e62' to workflow state '2b9a2080-f1ee-4b25-b89d-a3a7e4001fac'
    [2011-11-18 17:28:11,067] [1892754] [InputMgr ] [DEBUG] - WorkflowManager: Attaching GUI model '854aba9a-71a1-420b-a657-9641815f9c01' to workflow state '2b9a2080-f1ee-4b25-b89d-a3a7e4001fac'
    [2011-11-18 17:28:11,202] [1892889] [InputMgr ] [INFO ] - WorkflowManager: Screen 'configuration-section' successfully shown
    [2011-11-18 17:28:11,202] [1892889] [AMQ 'ScreenManager'] [DEBUG] - ScreenManager: Showing screen 'configuration-section'...
    [2011-11-18 17:28:12,949] [1894636] [InputMgr ] [INFO ] - WorkflowManager: Pushing workflow state 'Config: '/Players/Codecs'' (id='1bf68d9b-e55c-42f7-a1e5-41171b1811e4') onto the navigation stack...
    [2011-11-18 17:28:12,949] [1894636] [InputMgr ] [DEBUG] - WorkflowManager: Using workflow model with id '545674f1-d92a-4383-b6c1-d758cecdbdf5' for new workflow state '1bf68d9b-e55c-42f7-a1e5-41171b1811e4'
    [2011-11-18 17:28:12,950] [1894637] [InputMgr ] [DEBUG] - WorkflowManager: Entering workflow state 'Config: '/Players/Codecs''
    [2011-11-18 17:28:12,951] [1894638] [InputMgr ] [DEBUG] - WorkflowManager: Changing model context to workflow state '1bf68d9b-e55c-42f7-a1e5-41171b1811e4' (old state was '2b9a2080-f1ee-4b25-b89d-a3a7e4001fac') in workflow model '545674f1-d92a-4383-b6c1-d758cecdbdf5'
    [2011-11-18 17:28:12,951] [1894638] [InputMgr ] [DEBUG] - WorkflowManager: Compiling menu actions for workflow state 'Config: '/Players/Codecs''
    [2011-11-18 17:28:12,952] [1894639] [InputMgr ] [DEBUG] - WorkflowManager: Tidying up...
    [2011-11-18 17:28:12,953] [1894640] [InputMgr ] [INFO ] - WorkflowManager: Trying to show screen 'configuration-section'...
    [2011-11-18 17:28:12,953] [1894640] [InputMgr ] [DEBUG] - ScreenManager: Preparing to show screen 'configuration-section'...
    [2011-11-18 17:28:12,954] [1894641] [InputMgr ] [DEBUG] - ScreenManager: Loading screen from file path 'C:\Users\1st\Downloads\MP2_20111118_StatsRender\Plugins\Configuration\Skin\default\screens\configuration-section.xaml'...
    [2011-11-18 17:28:12,966] [1894653] [InputMgr ] [DEBUG] - WorkflowManager: Attaching GUI model '9e9d0cd9-4fdb-4c0f-a0c4-f356e151bde0' to workflow state '1bf68d9b-e55c-42f7-a1e5-41171b1811e4'
    [2011-11-18 17:28:12,984] [1894671] [InputMgr ] [DEBUG] - WorkflowManager: Attaching GUI model 'ca6428a7-a6e2-4dd3-9661-f89cebaf8e62' to workflow state '1bf68d9b-e55c-42f7-a1e5-41171b1811e4'
    [2011-11-18 17:28:12,985] [1894672] [InputMgr ] [DEBUG] - WorkflowManager: Attaching GUI model '854aba9a-71a1-420b-a657-9641815f9c01' to workflow state '1bf68d9b-e55c-42f7-a1e5-41171b1811e4'
    [2011-11-18 17:28:13,143] [1894830] [InputMgr ] [INFO ] - WorkflowManager: Screen 'configuration-section' successfully shown
    [2011-11-18 17:28:13,143] [1894830] [AMQ 'ScreenManager'] [DEBUG] - ScreenManager: Showing screen 'configuration-section'...
    [2011-11-18 17:28:16,755] [1898442] [InputMgr ] [DEBUG] - ScreenManager: Preparing to show dialog 'dialog_configuration_singleselectionlist'...
    [2011-11-18 17:28:16,758] [1898445] [InputMgr ] [DEBUG] - ScreenManager: Loading screen from file path 'C:\Users\1st\Downloads\MP2_20111118_StatsRender\Plugins\Configuration\Skin\default\screens\dialog_configuration_singleselectionlist.xaml'...
    [2011-11-18 17:28:23,327] [1905014] [InputMgr ] [DEBUG] - ScreenManager: Preparing to close dialog '24e4f86f-3676-4ac1-9ea9-b9ac98f77fa4'[/collapse]

    After starting MP2 again and playing mkv again i got video picture and MS codec was used. In both renders i got the jittering effect. Cpu consumption is around 60%, so enough free power left.


    Edit: I'm not completely sure but the jitter effect seems worse in NoSleepPresent
     

    Attachments

    • mp2_video_nosleep.png
      mp2_video_nosleep.png
      158.6 KB
    • mp2_video_nosleep_MScodec.png
      mp2_video_nosleep_MScodec.png
      955.1 KB
    • mp2_video_sleep_MScodec.png
      mp2_video_sleep_MScodec.png
      819.7 KB
    • mp2_video_nosleep_none_MScodec.png
      mp2_video_nosleep_none_MScodec.png
      1,021.3 KB

    1stdead

    Portal Pro
    February 1, 2008
    1,089
    139
    Copenhagen
    Home Country
    Denmark Denmark
    Yeah sorry, saw the last RenderMode a bit late, but updated it. Ok update1 here.

    Jitter effect seems not as big in SleepForceImmediate. But it's really hard to tell any difference at all.
     

    Attachments

    • MP2_gui_SleepForceImmediate.png
      MP2_gui_SleepForceImmediate.png
      329.1 KB
    • MP2_gui_NoSleepPresentNone.png
      MP2_gui_NoSleepPresentNone.png
      330 KB
    • MP2_gui_NoSleepForceImmediate.png
      MP2_gui_NoSleepForceImmediate.png
      351.1 KB
    • MP2_video_SleepForceImmediate.jpg
      MP2_video_SleepForceImmediate.jpg
      120.5 KB
    • MP2_video_NoSleepPresentNone.jpg
      MP2_video_NoSleepPresentNone.jpg
      103.5 KB
    • MP2_video_NoSleepForceImmediate.jpg
      MP2_video_NoSleepForceImmediate.jpg
      96.4 KB

    1stdead

    Portal Pro
    February 1, 2008
    1,089
    139
    Copenhagen
    Home Country
    Denmark Denmark
    Ok tried on my HTPC with same result. Shuttering in all three rendermodes with MSCODEC.

    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]


    But reproduced the bug when changing from from h264 codec to MS codec, then MP2 crashes.
     

    Attachments

    • MP_video_SleepForceImmediate.png
      MP_video_SleepForceImmediate.png
      967.9 KB
    • MP_video_NoSleepPresentNone.png
      MP_video_NoSleepPresentNone.png
      962.9 KB
    • MP_video_NoSleepForceImmediate.png
      MP_video_NoSleepForceImmediate.png
      952.9 KB
    • MP_gui_SleepForceImmediate.png
      MP_gui_SleepForceImmediate.png
      391.9 KB
    • MP_gui_NoSleepPresentNone.png
      MP_gui_NoSleepPresentNone.png
      385.7 KB
    • MP_gui_NoSleepForceImmediate.png
      MP_gui_NoSleepForceImmediate.png
      394.8 KB

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Thanks for testing!

    The issue with codec selection I can confirm. Probably it's caused by some recent changes in skinengine, and my branch is not up to date.

    Because your are affected by the stuttering I am really interested how the EvrV2 testbuild from above does work for you. It differs in some frame scheduling changes and that video textures are passed back to MP directly.

    Sent from my GT-I9000 using Tapatalk
     

    1stdead

    Portal Pro
    February 1, 2008
    1,089
    139
    Copenhagen
    Home Country
    Denmark Denmark
    Just for people following this thread. Tested the EVR2 render with same result as the 3 renders. Movie shutters randomly.

    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)
     

    Attachments

    • MP2_gui_EVR2.png
      MP2_gui_EVR2.png
      262.2 KB
    • mp2_video_evr2.jpg
      mp2_video_evr2.jpg
      99.6 KB

    Smeulf

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

    Here's some pictures.

    On pictures 4, 5 and 6, when the red marks diseapears, it's because the OSD has closed.

    My sound sync problem seems gone. Maybe because of the last update of my drivers, or because some other rework (it's ok in the DEV branch also, that's the strangest point).

    About video stuttering, it's worse in this actual branch than on DEV here : almost every move is stuttering... I can't tell about wrong frame with so many stutters.

    What's bug me the most is that when render stats are enabled or the OSD is displayed, then the video seems perfect. As soon as the OSD disapears, the player starts to stutter.

    Monitor : 1280*1024 @75Hz

    File Infos (but it's the same with DVD (less stutter I think) or AVI files :
    [COLLAPSE]
    General
    Unique ID : 209762657572057652778402501978803434091 (0x9DCED17EF115A35B996E6259FA60726B)
    Complete name : D:\Smeulf\Videos\TestMovie.mkv
    Format : Matroska
    Format version : Version 2
    File size : 1.30 GiB
    Duration : 2h 55mn
    Overall bit rate mode : Variable
    Overall bit rate : 1 067 Kbps
    Encoded date : UTC 2010-10-30 11:58:19
    Writing application : mkvmerge v4.3.0 ('Escape from the Island') built on Sep 5 2010 10:30:51
    Writing library : libebml v1.0.0 + libmatroska v1.0.0

    Video
    ID : 1
    Format : MPEG-4 Visual
    Format profile : Advanced Simple@L5
    Format settings, BVOP : Yes
    Format settings, QPel : No
    Format settings, GMC : No warppoints
    Format settings, Matrix : Custom
    Codec ID : XVID
    Codec ID/Hint : XviD
    Duration : 2h 55mn
    Bit rate : 828 Kbps
    Width : 720 pixels
    Height : 400 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 : Progressive
    Compression mode : Lossy
    Bits/(Pixel*Frame) : 0.115
    Stream size : 1.01 GiB (78%)
    Writing library : XviD 1.2.1 (UTC 2008-12-04)
    Default : Yes
    Forced : No

    Audio #1
    ID : 2
    Format : MPEG Audio
    Format version : Version 1
    Format profile : Layer 3
    Mode : Joint stereo
    Mode extension : MS Stereo
    Muxing mode : Header stripping
    Codec ID : A_MPEG/L3
    Codec ID/Hint : MP3
    Duration : 2h 55mn
    Bit rate mode : Variable
    Bit rate : 115 Kbps
    Nominal bit rate : 128 Kbps
    Channel(s) : 2 channels
    Sampling rate : 48.0 KHz
    Compression mode : Lossy
    Stream size : 144 MiB (11%)
    Writing library : LAME3.98r
    Encoding settings : -m j -V 4 -q 2 -lowpass 17 --abr 128
    Language : English
    Default : Yes
    Forced : No

    Audio #2
    ID : 3
    Format : MPEG Audio
    Format version : Version 1
    Format profile : Layer 3
    Mode : Joint stereo
    Mode extension : MS Stereo
    Muxing mode : Header stripping
    Codec ID : A_MPEG/L3
    Codec ID/Hint : MP3
    Duration : 2h 55mn
    Bit rate mode : Variable
    Bit rate : 103 Kbps
    Nominal bit rate : 128 Kbps
    Channel(s) : 2 channels
    Sampling rate : 48.0 KHz
    Compression mode : Lossy
    Stream size : 129 MiB (10%)
    Writing library : LAME3.98r
    Encoding settings : -m j -V 4 -q 2 -lowpass 17 --abr 128
    Language : English
    Default : No
    Forced : No

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

    Text #2
    ID : 5
    Format : UTF-8
    Codec ID : S_TEXT/UTF8
    Codec ID/Info : UTF-8 Plain Text
    Language : French
    Default : No
    Forced : No
    [/COLLAPSE]

    Smeulf.
     

    Attachments

    • 5-VIDEO-NoSleepPresnetNone.jpg
      5-VIDEO-NoSleepPresnetNone.jpg
      215.8 KB
    • 4-VIDEO-SleepForceImmediate.jpg
      4-VIDEO-SleepForceImmediate.jpg
      197.5 KB
    • 3-IDLE-NoSleepForceImmediate.jpg
      3-IDLE-NoSleepForceImmediate.jpg
      134.6 KB
    • 2-IDLE-NoSleepPresnetNone.jpg
      2-IDLE-NoSleepPresnetNone.jpg
      134.3 KB
    • 1-IDLE_SleepForceImmediate.jpg
      1-IDLE_SleepForceImmediate.jpg
      134.5 KB
    • 6-VIDEO-NoSleepForceImmediate.jpg
      6-VIDEO-NoSleepForceImmediate.jpg
      156.2 KB

    Users who are viewing this thread

    Top Bottom