Dropped frames from ffdshow with AviSynth scripts (1 Viewer)

SotY

Portal Member
February 24, 2010
20
0
Home Country
United States of America United States of America
MediaPortal Version: 1.1.0 RC4
MediaPortal Skin: Black Glass Nova
Windows Version: 7 Ultimate x64
CPU Type: Intel Core i7-860 @ 3.6GHz
HDD: Seagate 500GB 1xST3500410AS 3xST3500320AS
Memory: 2x2GB DDR3-1600 @ 1960MHz
Motherboard: ASUS P7P55D-E Pro
Video Card: Sapphire Radeon HD4870 512MB
Video Card Driver: 10.4
Sound Card: Creative X-Fi XtremeMusic
Sound Card AC3: no AC3
Sound Card Driver: 2.17.4010
1. TV Card:
1. TV Card Type:
1. TV Card Driver:
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: MPC Video Decoder
MPEG2 Audio Codec: AC3Filter
h.264 Video Codec: MPC Video Decoder
Satelite/CableTV Provider: Dish Network/Comcast
HTPC Case: Antec P180B rev. 1.1
Cooling: Scythe Infinity
Power Supply: Antec NeoPower 550W
Remote: Soundgraph iMON RSC
TV: Samsung LN40A550
TV - HTPC Connection: HDMI

I'm trying to use AviSynth frame doubling script with ffdshow through MediaPortal with no success. Everything is working fine with MPC-HC but when using the same script with MediaPortal movie is not smooth and has lot of skips. My rig is strong enough (i7-860 @ 3.6GHz, 4GB DDR3 @ 1960MHz, HD4870, W7 x64) so there has to be something wrong with MediaPortal's internal player. I can use MPC-HC as external player but then some important MediaPortal funcionality is lost so basically I can't use any of these script right now. Some screen shots. Both players (MPC-HC and MediaPortal) using EVR renderer and codecs with system merits so graphs looks the same. As you can see there is a lot dropped frames on EVR from MediaPortal and nothing from MPC-HC. CPU usage is the same for both players (<35%), on MediaPortal screen shot it went higher for a moment when I started snipping tool. Test movie was Avatar 1080p x264 rip with DTS (15.5Mbs video bit rate). Any idea what's going on ?

MediaPortal graphstudio:
mediaportal.png


MPC-HC graphstudio:
mpchc.png


scripts source from Guru3D forum
 

tourettes

Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Do you get same results with SD resolution movies? MP is a bit more hungry for GPU & CPU when it comes to video renderering so it could be just a performance issue.

    Is that CPU having 4 cores? If yes then the 35% is already quite much since video decoding / rendering is not that much scaling for multiple threads.
     

    SotY

    Portal Member
    February 24, 2010
    20
    0
    Home Country
    United States of America United States of America
    It's overclocked core i7 and yes it has 4 cores with ht so 8 threads totally. Believe me my CPU is more than enough for any kind of ffdshow processing and GPU has nothing to do with that, it's pure software process. I'm using modified multi-thread AviSynth. 35% is with AviSynth script only enabled, without is ~%3. I didn't check SD movies because this kind of script is useful only for HD. Read Guru3D forum to see what it exactly does but basically it makes any movie play at 60fps by putting fake frames so video is very smooth and synchronized with display refresh rate.
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    It's overclocked core i7 and yes it has 4 cores with ht so 8 threads totally. Believe me my CPU is more than enough for any kind of ffdshow processing and GPU has nothing to do with that, it's pure software process. I'm using modified multi-thread AviSynth. 35% is with AviSynth script only enabled, without is ~%3. I didn't check SD movies because this kind of script is useful only for HD. Read Guru3D forum to see what it exactly does but basically it makes any movie play at 60fps by putting fake frames so video is very smooth and synchronized with display refresh rate.

    Next thing you could try to is to process that video offline so that you would have a real video that has 60 fps. Just to pin point if the issue lies ffdshow or MP's video rendering side.

    and GPU has nothing to do with that

    And are you sure that MP is not using DirectX to draw every single video frame? :) There could be some performance issue with GPU and MP's video rendering.
     

    SotY

    Portal Member
    February 24, 2010
    20
    0
    Home Country
    United States of America United States of America
    Next thing you could try to is to process that video offline so that you would have a real video that has 60 fps. Just to pin point if the issue lies ffdshow or MP's video rendering side.

    I don't understand what did you mean. Graph is the same for MediaPortal and MPC-HC. Same splitter, decoder and renderer. The only difference is that EVR has 3 inputs when playing through MP and only 1 from HPC. MPC has no drops and MP has lot of them so it's clear for me that the problem is on MP side not ffdshow.

    And are you sure that MP is not using DirectX to draw every single video frame? :) There could be some performance issue with GPU and MP's video rendering.

    Are you telling me that Radeon HD4870 is too weak for simple video rendering ? :) So why it is more than enough for MPC-HC ?
     

    SotY

    Portal Member
    February 24, 2010
    20
    0
    Home Country
    United States of America United States of America

    SotY

    Portal Member
    February 24, 2010
    20
    0
    Home Country
    United States of America United States of America
    I did try this "Smooth Video Pack" but it's doing the same as other AviSynth scripts that I have tried before. The only difference is a nice GUI for controlling script parameters. But problem with dropped frames on EVR from MediaPortal remains the same. Everything is fine when using MPC-HC but MP playback is terrible.

    Question to MP developers: is there a way to replace current MP player core with the same as MPC-HS is using ? Maybe it will launch EVR with only one input then and my problem will be gone.
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Question to MP developers: is there a way to replace current MP player core with the same as MPC-HS is using ?

    You can use MPC-HC as external player. Integrating it would require hundreds of man hours. Simply not feasiable.

    Maybe it will launch EVR with only one input then and my problem will be gone.

    Number of imput pins wont affect for performance (unless they are used).
     

    tourettes

    Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    I don't understand what did you mean. Graph is the same for MediaPortal and MPC-HC. Same splitter, decoder and renderer. The only difference is that EVR has 3 inputs when playing through MP and only 1 from HPC. MPC has no drops and MP has lot of them so it's clear for me that the problem is on MP side not ffdshow.

    Please try it, it will reduce the possible places where the error can happen. If you aren't willing to try that don't expect any developer to spend many hours pondering about that issue.
     

    Users who are viewing this thread

    Top Bottom