c# - WPF HD background video playback lags UI -


i've touch screen application built using wpf running @ hd resolution (1920 x 1080) , have looping background video in hd. background video runs long lifetime of app. ui placed "above" (in z order). ui's rendering seems jerky , laggy , want improve performance. when run app without video running, ui runs smoother expected. can suggest way improve ui responsiveness? below details of looping video file.

edit: investigations did: on slower computers, video , ui becomes laggy. however, when running video alone, video runs smoothly. when running ui without video, runs smoothly. problem arises when have video , ui running together, somehow rendering becomes sluggish. using mediaurielement control wpfmediakit. tried use win7dsfiltertweaker change windows 7 default decoder no avail. suggestions?

edit 2: bottleneck seems wpf rendering engine. when ran video, fps drops ~34fps. when paused video, running @ 60fps again. suggestions here?

video id                             : 0 format                         : mpeg-4 visual codec id                       : div3 codec id/hint                  : divx 3 low duration                       : 12s 12ms bit rate                       : 8 558 kbps width                          : 1 920 pixels height                         : 1 080 pixels display aspect ratio           : 16:9 frame rate                     : 29.970 fps color space                    : yuv chroma subsampling             : 4:2:0 bit depth                      : 8 bits compression mode               : lossy bits/(pixel*frame)             : 0.138 stream size                    : 12.3 mib (100%) 


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -