MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Get Support » Codecs, External Players


Codecs, External Players Post problems with Codecs or External Players here!

Reply
 
Thread Tools Display Modes
Old 2008-08-12, 15:08   #1 (permalink)
Portal Member
 
Join Date: Apr 2008
Posts: 30
Thanks: 1
Thanked 0 Times in 0 Posts

Country:

My System

Default MediaPortal uses EVR with 3 input pins-> drops 50% of all frames on interlaced stuff

TV-Server Version: TVE3
MediaPortal Version: 1.0.0.0RC2 & SVN19876
MediaPortal Skin: Indigo
Windows Version: Vistax64 HomeBasic SP1
CPU Type: AMD Athlon 64 x2 4850e 2x2.500MHz
HDD: 3xSamsung SpinPoint 500GB as a JBOD-Array
Memory: 2x1.000GB DDR2-800
Motherboard: Asus M3N78-EMH/HDMI
Video Card: Onboard mGPU GeForce 8200
Video Card Driver: 7.15.11.7519
Sound Card: onboard analog deactivated
Sound Card AC3: SPDIF Onboard Realtek
Sound Card Driver: Microsoft 6.0.6000.16386
1. TV Card: KNC1 TV-Station
1. TV Card Type: DVB-C
1. TV Card Driver: 1.9.10.414
2. TV Card:
2. TV Card Type:
2. TV Card Driver:
3. TV Card:
3. TV Card Type:
3. TV Card Driver:
4. TV Card:
4. TV Card Type:
4. TV Card Driver:
MPEG2 Video Codec: PowerDVD8
MPEG2 Audio Codec: DScaler5
h.264 Video Codec: PowerDVD8 h.264/AVC
Satelite/CableTV Provider:
HTPC Case: Origen ae X15e
Cooling: Scythe Shuriken
Power Supply:
Remote: MCE
TV: Samsung LE52F96
TV - HTPC Connection: HDMI 1.3a-cabel from Goldkabel


Hi, there. today I tried to solve my stutter- problems when playing interlaced TS-Files or watch H.264-TV.

The TS-files have Resolution 1920x1080 interlaced@25fps and 14,6Mbits bitrate (DVB-C Recordings)

If you watch Live TV or TS-Files in Resolution 1080p60, MP/EVR drops 50% of all frames (shift+1)
If you watch Live TV or TS-Files in 720p60, MP/EVR drops 15% of all frames
The more Resolution, the more frames are droped.

Filterchain at MP: TSReader/PowerDVD8 h.264/EVR - DXVA enabled and working, but dropped frames
Filterchain at Zoomplayer: Haali/PowerDVD8 h.264/EVR - DXVA enabled and working

The 2nd chain works with all external players i tested (ZoomPlayer/WM-Player/PowerDVD) with full DXVA at 1080p60. Main difference: I use Haali splitter.ax instead of TSReader. In MP of course there´s no way around TSReader.

Therefore first I thought it´s the TSreader, because other players using chain #2 do not cause problems at all. But then I produced a remote graph while MP was playing inlerlaced TS, replaced TSreader from the graph with Haali and still had that problem. Then I focused on EVR and noticed the 3 input-pins.



If you take a look at the attached Graphs, you see that MP opens 3 input pins at EVR. I retreived that graph as a remote graph while MP played the TS.

During testing I figured out that eventually the 2 not used pins cause EVR to drop frames:


I disconnected EVR from the chain, inserted a fresh EVR from Filter List and it comes with just 1 pin. That one works perfectly at 1080p60 and no frames are dropped on interlaced stuff

For comparison i deleted TSReader from the graph and replaced it with Haali and had the same (good) result. So it can´t be TSReader.

So the question is: Is that the reason why MP drops frames when using EVR or is it the mode which MP launches EVR in? And can I configure MP to not do so??

Also of interest:
-when i disable PwrDVD dxva in MP Config then there are no dropped frames at all and therefore rel. smooth playback...but of course bad software deinterlacing.
-when i play progressive material (i.e. mkv) MP also opens EVR with 3pins but has no droped frames and runs smooth..
-regardless the material MP always opens 3 pind in EVR- what for?
-no droped frames with MPEG-2 interlaced stuff, even though EVR comes here with 3Pins, too

Take a look at the attached graphs and thanks in advance

To avoid misunderstanding: I don´t use ffdshow ore CoreAVC and do not intend to do so-had enough experience with Software-Decoders. I want to stay with DXVA2.0/EVR, even more because other players then MP don´t cause issues (using 1Pin in EVR is the answer?!)

Graph1: Remote Graph from MP. Does not even show vid-therefore EVR reports no droped frames
Graph2: RemGraph changed-replaced 3pin-EVR with fresh one- runs smooth
Graph3: UserGraph with Haali/PowerDVD and EVR 1Pin- runs smooth
Attached Thumbnails
mediaportal-uses-evr-3-input-pins-drops-50-all-frames-interlaced-stuff-battlestar-tsreader-dxva-evr3pins.jpg  mediaportal-uses-evr-3-input-pins-drops-50-all-frames-interlaced-stuff-battlesta-tsreader-dxva-evr1pin.jpg  mediaportal-uses-evr-3-input-pins-drops-50-all-frames-interlaced-stuff-battlesta-haali-dxva-evr1pin.jpg  
Attached Files
File Type: zip MediaPortalLogs_12_08_08.zip (1,014.5 KB, 1 views)
File Type: zip TV-ServerLogs.zip (2.44 MB, 1 views)

Last edited by krusty2die4; 2008-08-12 at 15:21.
krusty2die4 is offline   Reply With Quote
Old 2008-08-12, 16:16   #2 (permalink)
Portal Developer
 
Join Date: Jan 2005
Age: 30
Posts: 3,354
Thanks: 89
Thanked 106 Times in 87 Posts


Default

Attached directshow helper DLL is only opening one pin on EVR side. Could you please test if its solving the stuttering / dropped frames issue you are seeing?

I'm pretty suprised if it does solve it as most likely MS woulndt have introduced such a bug, but who knows.
Attached Files
File Type: zip dshowhelper.zip (40.2 KB, 17 views)
__________________
http://day2.no-ip.org/

"Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen"
tourettes is offline   Reply With Quote
This User Say Thank You:
Old 2008-08-12, 17:55   #3 (permalink)
Portal Member
 
Join Date: Apr 2008
Posts: 30
Thanks: 1
Thanked 0 Times in 0 Posts

Country:

My System

Default

Thanks for the quick reply. Didn´t have any effect, so my 3-Pin-Theory seems to be Bullsh**.

I replaced the dll, started MP, watched the killed frames, made a snapshot (see #1). Then remotely connected to the graph. Tried to replay it: Black screen (snap #2) and EVR claims rendering something.

Repeated that 3 times, then deleted EVR from chain and manually plugged it in via DS-Filterlist. Now perfect picture-> snap #3.

So it´s not the 2 unconnected pins- but what else? How come that a manually connected EVR does the job and a EVR connected by MP does not (and they have the same settings on the EVR settings tabs).

So MP does something when launching EVR that other players don´t do...any idea?





Snap #4 is kind of a Demo, how well DXVA2.0 runs on a Vista x64 system (with just 2 GB RAM and a small CPU)

No stutter / no dropped frames / perfect picture

File: Alien vs. Predator 2
Container: mkv
Video Core: x264
Audio Core: 2x DTS @~1.500kbps eng/ger
Video Codec: PowerDVD8 h.264/AVC
Audio Codec: Dscaler5
SurceRes: 1920x800 progressive
SourceFramerate:23.976 fps
~bitrate: 9,8 MB/s
ScreenRes: 2x 1920x1080@60Hz on 2 Monitors (Fullsceen Clone Mode on Samsung LE52F96 and Origen ae x15e TFT)

Take a glance at CPU-Load: That´s the reason I want to stay with EVR
And as you can see: Also no droped frames at all in zplayer...
Attached Thumbnails
mediaportal-uses-evr-3-input-pins-drops-50-all-frames-interlaced-stuff-livetv-dsshowhelper-1pinevr.jpg  mediaportal-uses-evr-3-input-pins-drops-50-all-frames-interlaced-stuff-dsshowhelperevr-nopic.jpg  mediaportal-uses-evr-3-input-pins-drops-50-all-frames-interlaced-stuff-manualevr-showpic.jpg  mediaportal-uses-evr-3-input-pins-drops-50-all-frames-interlaced-stuff-vista-x64-dxva2.0-evr-1080p60-clone-demo.jpg  

Last edited by krusty2die4; 2008-08-12 at 18:06.
krusty2die4 is offline   Reply With Quote
Old 2008-08-12, 21:54   #4 (permalink)
Portal Developer
 
Join Date: Jan 2005
Age: 30
Posts: 3,354
Thanks: 89
Thanked 106 Times in 87 Posts


Default

Most likely its the custom allocator code in our EVR implementation as you wont be using that when building a graph in GraphEdit.
__________________
http://day2.no-ip.org/

"Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen"
tourettes is offline   Reply With Quote
Old 2008-08-12, 22:39   #5 (permalink)
Portal Member
 
Join Date: Apr 2008
Posts: 30
Thanks: 1
Thanked 0 Times in 0 Posts

Country:

My System

Default

Quote:
Originally Posted by tourettes View Post
Most likely its the custom allocator code in our EVR implementation as you wont be using that when building a graph in GraphEdit.
understand...so that´s not the bug. Any other ideas why MP+EVR drops frames on interlaced h.264? I guess I´m out of ideas now...
krusty2die4 is offline   Reply With Quote
Old 2008-08-12, 23:18   #6 (permalink)
Portal Developer
 
Join Date: Jan 2005
Age: 30
Posts: 3,354
Thanks: 89
Thanked 106 Times in 87 Posts


Default

Quote:
Originally Posted by krusty2die4 View Post
Quote:
Originally Posted by tourettes View Post
Most likely its the custom allocator code in our EVR implementation as you wont be using that when building a graph in GraphEdit.
understand...so that´s not the bug. Any other ideas why MP+EVR drops frames on interlaced h.264? I guess I´m out of ideas now...
Most likely because of some bug in MP / EVR allocator. Is anyone else experiencing similar issue?

btw. you should be getting at least stuttering (on all software) when playing 25fps files on 60Hz display, nothing can prevent that.
__________________
http://day2.no-ip.org/

"Commy64 - The problem there is that Oprah was on. MP tried to save you by blanking the screen"
tourettes is offline   Reply With Quote
Old 2008-08-12, 23:55   #7 (permalink)
Portal Member
 
Join Date: Dec 2007
Posts: 104
Thanks: 1
Thanked 2 Times in 2 Posts

Country:

My System

Default

There are a few threads running just now regarding stuttering on H264 playback which would suggest a general problem rather than something specific to Krusty2die4's setup.
5Hundred is offline   Reply With Quote
Old 2008-08-12, 23:56   #8 (permalink)
Portal Member
 
Join Date: May 2007
Posts: 69
Thanks: 10
Thanked 0 Times in 0 Posts

Country:

My System

Default

Quote:
Originally Posted by tourettes View Post
Quote:
Originally Posted by krusty2die4 View Post
Quote:
Originally Posted by tourettes View Post
Most likely its the custom allocator code in our EVR implementation as you wont be using that when building a graph in GraphEdit.
understand...so that´s not the bug. Any other ideas why MP+EVR drops frames on interlaced h.264? I guess I´m out of ideas now...
Most likely because of some bug in MP / EVR allocator. Is anyone else experiencing similar issue?

btw. you should be getting at least stuttering (on all software) when playing 25fps files on 60Hz display, nothing can prevent that.

Hi,

I was getting lots of dropped frames with PowerDVD codec/EVR/MediaPortal/Vista combo, though I seemed to be having issues with Hardware Acceleration not working properly (see this thread Vista Hardware Acceleration not working?). Not sure if related.
Currently reinstalling Vista (setting up to Dualboot with XP so I have a working MediaPortal to fall back on - should have done that when first installed Vista 'doh!' ) will report back when set up.
Jeditrav is offline   Reply With Quote
Old 2008-08-13, 00:48   #9 (permalink)
Portal Member
 
Join Date: Aug 2007
Posts: 22
Thanks: 2
Thanked 0 Times in 0 Posts


Default

I started with WinXP SP2 using ffdshow and could watch mkvs but had occasional annoying stutter, and installed Vista64 Ultimate and PowerDVD8 only to get almost totally unplayable video. It literally crashed MP sometimes. I think there is something definitely wrong. The ONLY thing installed on my computer are Vista64, PowerDVD8, MediaPortal, and the Subtitle thing... mksplitter or whatever its called. Harware acc checked everywhere.

At one point Windows Media center launched right in the middle of me trying to start an MKV video. For the life of me, I can not imagine why this would happen. Expecially since WMC can not even play MKVs... Could MP be causing the launch of something in the background that is tying up CPU cycles?
CharlieMopps is offline   Reply With Quote
Old 2008-08-13, 00:50   #10 (permalink)
Portal Member
 
Join Date: Apr 2008
Posts: 30
Thanks: 1
Thanked 0 Times in 0 Posts

Country:

My System

Default

Quote:
btw. you should be getting at least stuttering (on all software) when playing 25fps files on 60Hz display, nothing can prevent that.
I experimented with all possible refreshrates my Samsung supports in ScreenRes 1920x1080p:

23, 24, 25, 29, 30,50,59 and 60Hz

Although the theory says that i.e. a 23.976 progressive file is best played with 24, 48 or 72 Hz I experienced stutter @24Hz.

Interlaced 25Hz looks almost unnoticable better @ 50 Hz on zplayer or PowerDVD than @60Hz. At 25Hz it causes excessive flicker and stutter in all players.
But using 50Hz let MP´s Framekills drop from 50% to 35% with interlaced h.264/25fps-files- so you´re right with that.
35% is better than 50% kills, but still not smooth enough to watch...

For further testing i keep it @50Hz.

Quote:
Originally Posted by 5Hundred View Post
There are a few threads running just now regarding stuttering on H264 playback which would suggest a general problem rather than something specific to Krusty2die4's setup.
Noticed the other threads, too. But have only issues with MP playing back interlaced H.264 files with DXVA. Other players do the job with not 1 frame killed... see my posts above.

Quote:
Originally Posted by tourettes View Post
Most likely because of some bug in MP / EVR allocator. Is anyone else experiencing similar issue?
is there a way to log that for you?

Last edited by krusty2die4; 2008-08-13 at 01:01. Reason: Automerged Doublepost
krusty2die4 is offline   Reply With Quote
Reply

Bookmarks

Tags
50%, drops, evr, frames, input, interlaced, pinsandgt, stuff

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tunerlock Failure -> 50% cpu then hang (dual core) Spoonfed support 4 2008-02-29 01:17
Vista EVR 25fps 50 fps Pascal General Support 9 2007-12-29 20:28
welchen 37" lcd für mediaportal? 50 hz problem? este1234 Hardware 0 2007-01-31 20:36
9800XT or 6600Pro for DVI->HDMI 1920x1080P (50/60Hz)??? NLS General Support 16 2006-07-05 13:25
NullReferenceException in 'Remotes ->Direct Input' Nova The old Bugreport Forum 5 2006-01-08 13:53


All times are GMT +1. The time now is 19:02.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden