Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 ASP

Reply
 
Thread Tools Display Modes
Old 16th August 2008, 21:00   #1  |  Link
IgorC
Registered User
 
Join Date: Apr 2004
Posts: 1,025
Perfomance of ffdshow and divx decoders.

Tested video:
http://trailers.divx.com/Dreamworks/SharkTale_HD.zip

Tested versions:
ffdshow 2079 clsid (no pp)
divx 6.8.4 (no pp, no logo)



System: Windows XP SP3. CPU E2160 (2x1.8Ghz)

Results:
NULL:
Code:
ffdshow
User: 20s, kernel: 0s, total: 20s, real: 20s, fps: 166.6, dfps: 166.4

divx 
User: 11s, kernel: 0s, total: 11s, real: 23s, fps: 293.1, dfps: 139.6

VMR9:
Code:
ffdshow
User: 22s, kernel: 0s, total: 22s, real: 38s, fps: 147.5, dfps: 87.9

divx 6.8.4
User: 8s, kernel: 0s, total: 9s, real: 44s, fps: 358.9, dfps: 74.9
ffdshow uses 1 core (50% LOAD)
divx uses 2 cores (approx. 80% load)

Last edited by IgorC; 16th August 2008 at 21:02.
IgorC is offline   Reply With Quote
Old 16th August 2008, 21:02   #2  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Location: Claremont, CA
Posts: 6,895
Its completely meaningless to do a benchmark between two different levels of threading; all it says is that "multithreading is faster than single threaded decoding," which everyone knows is obvious.

A more useful comparison would be to either do:

1. A singlethreaded-only comparison
or
2. A comparison of ffmpeg-mt and divx, both multithreaded
Dark Shikari is offline   Reply With Quote
Old 16th August 2008, 21:03   #3  |  Link
IgorC
Registered User
 
Join Date: Apr 2004
Posts: 1,025
ffdshow was faster
look at real time.
IgorC is offline   Reply With Quote
Old 16th August 2008, 21:11   #4  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Location: Claremont, CA
Posts: 6,895
Quote:
Originally Posted by IgorC View Post
ffdshow was faster
look at real time.
Oh wow, I didn't even notice that.

OK, so this means despite it being a war of single vs multithreaded, DivX still loses?
Dark Shikari is offline   Reply With Quote
Old 16th August 2008, 21:15   #5  |  Link
IgorC
Registered User
 
Join Date: Apr 2004
Posts: 1,025
Yes.
I also very surprised by the results.
Divx also loads CPU more during playback in MPC than ffdshow does.
IgorC is offline   Reply With Quote
Old 17th August 2008, 01:17   #6  |  Link
clsid
Registered User
 
Join Date: Feb 2005
Posts: 2,722
Things will even be better when ffmpeg-mt hits trunk
__________________
[ ffdshow SVN builds | ffdshow SVN changelog ]
clsid is offline   Reply With Quote
Old 17th August 2008, 01:26   #7  |  Link
MasterNobody
Registered User
 
Join Date: Aug 2007
Posts: 170
Tested video: same SharkTale sample.

Tested versions:
ffdshow_rev2079_20080815_clsid (pp: off)
DivX 6.8.4 (pp: off; film effect: off; logo: off)

System: Windows XP SP3. CPU Athlon XP 1600+ (1.4Ghz)

NULL
Code:
ffdshow
User: 39s, kernel: 0s, total: 39s, real: 42s, fps: 85.1, dfps: 79.2

DivX
User: 52s, kernel: 0s, total: 52s, real: 56s, fps: 63.4, dfps: 58.9
VMR9
Code:
ffdshow
User: 36s, kernel: 0s, total: 36s, real: 49s, fps: 90.9, dfps: 67.6

DivX
User: 54s, kernel: 0s, total: 55s, real: 72s, fps: 60.5, dfps: 46.0
Conclusion: ffdhow significantly faster on one core CPU.
MasterNobody is offline   Reply With Quote
Old 17th August 2008, 04:34   #8  |  Link
IgorC
Registered User
 
Join Date: Apr 2004
Posts: 1,025
So is it really important to have multithreading for ASP when actual cpus only use one core to decode 720p 1080p videos in real time?

Does it matter if there is mp3 decoder multithreaded for quad cores?

Does it matter if there is AVC decoder for quad cores when 2 cores are more than enough to decode high bitrate dual layer Blu-ray streams?

With all respect to Divx I see no usefullness around support of multithreading (2 cores) for ASP and (4 cores) for H.264 decoding.
1 core is enough to decode ASP and 2 are for H.264.
IgorC is offline   Reply With Quote
Old 17th August 2008, 15:03   #9  |  Link
Sharktooth
Mr. Sandman
 
Sharktooth's Avatar
 
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 10,818
why not? try playing uber high res encodes...
Sharktooth is offline   Reply With Quote
Old 17th August 2008, 20:38   #10  |  Link
Mercury_22
Registered User
 
Join Date: Dec 2007
Posts: 489
Still with ffdshow on Intel video "cards" I can't play many DX50 (encoder XviD build 37) files on Vista=EVR output (just a black screen & sound) but with DivX I can play the same files without no problem look here http://forum.doom9.org/showthread.ph...99#post1171099 ! Why ?

The problem it's only with ffdshow + Intel video "cards" & EVR output ! if I use VMR output or other video card ffdshow has no problem
__________________
Windows 7 x64, EVR CP Default Settings, Catalyst 9.11, HD4670, SAMSUNG LE32A656 HDMI, Realtek ALC889A, E8400, 4GB DDR2

Last edited by Mercury_22; 18th August 2008 at 09:17.
Mercury_22 is offline   Reply With Quote
Old 17th August 2008, 21:11   #11  |  Link
clsid
Registered User
 
Join Date: Feb 2005
Posts: 2,722
That clearly is a driver issue. You could try disabling YV12 in ffdshow output settings.
__________________
[ ffdshow SVN builds | ffdshow SVN changelog ]
clsid is offline   Reply With Quote
Old 17th August 2008, 21:40   #12  |  Link
Mercury_22
Registered User
 
Join Date: Dec 2007
Posts: 489
Quote:
Originally Posted by clsid View Post
That clearly is a driver issue. You could try disabling YV12 in ffdshow output settings.
That was my first thought too, but why DivX it's working ? (no YV12 in DivX ?)

Thanks ! Disabling YV12 in ffdshow output settings solved the "problem"

Do you know how to do the same thing in MPC-HC (if I use internal filters) ?
__________________
Windows 7 x64, EVR CP Default Settings, Catalyst 9.11, HD4670, SAMSUNG LE32A656 HDMI, Realtek ALC889A, E8400, 4GB DDR2
Mercury_22 is offline   Reply With Quote
Old 17th August 2008, 21:50   #13  |  Link
IgorC
Registered User
 
Join Date: Apr 2004
Posts: 1,025
Quote:
Originally Posted by Sharktooth View Post
why not? try playing uber high res encodes...
I mean practical use: 720-1080p 3-20 mbps. >99%
Nowdays it's very uncommon to see video with resolution bigger than 1080p.
IgorC is offline   Reply With Quote
Old 17th August 2008, 23:00   #14  |  Link
clsid
Registered User
 
Join Date: Feb 2005
Posts: 2,722
The DivX decoder perhaps outputs YUY2 by default.

The internal decoder of MPC-HC has no option to configure the output colorspace.

Disabling YV12 is just a workaround. The real source of the problem are buggy drivers.
__________________
[ ffdshow SVN builds | ffdshow SVN changelog ]
clsid is offline   Reply With Quote
Old 18th August 2008, 00:51   #15  |  Link
IgorC
Registered User
 
Join Date: Apr 2004
Posts: 1,025
For the same shark tale HD trailer.
For both divx and ffdshow: MPC (ovelay mixer), no pp, no logo, no film effect, nothing.



VLC is considerably faster due to built-in decoder.
IgorC is offline   Reply With Quote
Old 18th August 2008, 01:35   #16  |  Link
CruNcher
Registered User
 
CruNcher's Avatar
 
Join Date: Apr 2002
Location: Germany
Posts: 2,698
VLC and Mplayer are generaly less CPU intensive because of their close relationship with the parser/splitter/decoder/renderer (no dshow and windows overhead like reading extensions in registry, searching correct filter, creating a graph and initializing sync over dshow, optimal parseing/decoding workflow ect) result = reduced start time and alot less CPU stress @ playback ah and no dshow hell problems, for people without Hardware Accelleration capabilities there is no other choice then VLC or Mplayer except maybe CorePlayer and Betaplayer
__________________
all my compares are riddles so please try to decipher them yourselves :)
current Main XviD PSNRLab version 1.1
current XviD PSNRLab update 1.1.3
MT1389xx Player Infos
XviD EDP Build CVS (CruNchers Visual System ©) V 1.4 new with predefined profiles ;)
Code:
Olivera: "We're expendable assets"
         "and we've just been expended"
"It's not a trick it's a Sony Rootkit" pwnz :devil: :angry: :rolleyes:

Last edited by CruNcher; 18th August 2008 at 02:07.
CruNcher is offline   Reply With Quote
Old 18th August 2008, 11:11   #17  |  Link
Mercury_22
Registered User
 
Join Date: Dec 2007
Posts: 489
Quote:
Originally Posted by clsid View Post
The DivX decoder perhaps outputs YUY2 by default.

The internal decoder of MPC-HC has no option to configure the output colorspace.

Disabling YV12 is just a workaround. The real source of the problem are buggy drivers.
Just to let you know Xvid it's working too because it has "NO Force" on Output Colorspace by default which means that ffdshow it's the only one ( and MPC-HC ) who has Forced by default YV12 Colorspace output
__________________
Windows 7 x64, EVR CP Default Settings, Catalyst 9.11, HD4670, SAMSUNG LE32A656 HDMI, Realtek ALC889A, E8400, 4GB DDR2
Mercury_22 is offline   Reply With Quote
Old 18th August 2008, 15:05   #18  |  Link
clsid
Registered User
 
Join Date: Feb 2005
Posts: 2,722
I don't think that ffdshow forces YV12 output. If the renderer accepts YV12 input, then it will get YV12 input. The fact that your drivers are buggy is not ffdshow's fault. Note that I am certainly not an expert with regard to ffdshow's code. I have read and understood maybe 1% of it.
__________________
[ ffdshow SVN builds | ffdshow SVN changelog ]
clsid is offline   Reply With Quote
Old 18th August 2008, 18:44   #19  |  Link
tetsuo55
MPC-HC Project Manager
 
Join Date: Mar 2007
Posts: 1,567
i wonder, how does the xvid decoder compare?

It's not only about speed of decoding but also about image quality (does the same frame look the same on all decoders?)
And the handeling of errors and broken files.
tetsuo55 is offline   Reply With Quote
Old 19th August 2008, 01:13   #20  |  Link
IgorC
Registered User
 
Join Date: Apr 2004
Posts: 1,025
Afaik Xvid and ffdshow produce the same output without pp as it indicates exactly the same SSIM result http://forum.doom9.org/showthread.php?t=119262
Don't know about other decoders.
IgorC is offline   Reply With Quote
Reply

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

Forum Jump


All times are GMT +1. The time now is 03:35.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.