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 > New and alternative video codecs

Reply
 
Thread Tools Search this Thread Display Modes
Old 5th May 2012, 07:34   #1161  |  Link
CruNcher
Registered User
 
CruNcher's Avatar
 
Join Date: Apr 2002
Location: Germany
Posts: 4,926
No release notes for R2 nothing i guess it's just the IVY update to 1.3 API, like it was floating around in the beta driver
__________________
all my compares are riddles so please try to decipher them yourselves :)

It is about Time

Join the Revolution NOW before it is to Late !

http://forum.doom9.org/showthread.php?t=168004
CruNcher is offline   Reply With Quote
Old 5th May 2012, 08:08   #1162  |  Link
egur
QuickSync Decoder author
 
Join Date: Apr 2011
Location: Atlit, Israel
Posts: 916
Quote:
Originally Posted by CruNcher View Post
No release notes for R2 nothing i guess it's just the IVY update to 1.3 API, like it was floating around in the beta driver
There's a release notes document with the MSDK download.
Changes from the 2012 gold version are:
* Three new H.264 profiles and 6 (all defined in standard) constrained flags were defined. This change should simplify Media SDK usage by providing direct access to constrained flag configuration.
MFX_PROFILE_AVC_CONSTRAINT_SET0/1/2/3/4/5
MFX_PROFILE_AVC_CONSTRAINED_BASELINE
MFX_PROFILE_AVC_CONSTRAINED_HIGH
MFX_PROFILE_AVC_PROGRESSIVE_HIGH
* View output mode was added for MVC encoder mfxExtCodingOption::ViewOutput. This flag instructs encoder to output each view in separate bitstream buffer and format them according to Blu-ray* and AVCHD* Format requirements.
* MVC encode now supports interlace coding mode.
__________________
Eric Gur,
Processor Application Engineer for Overclocking and CPU technologies
Intel QuickSync Decoder author
Intel Corp.
egur is offline   Reply With Quote
Old 5th May 2012, 19:53   #1163  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
Hey Eric,

i found a sample with quite an odd behaviour today.

http://files.1f0.de/samples/h264-qs-timestamp-issue.mkv

When i play this file with LAV in QS mode, it plays too fast (should be 24p, plays at 30p), running out of sync.
I checked the timestamps of the file, and they are fine. Plays fine with software or other hardware codecs too.

For some reason, the QS decoder insists on changing the timestamps, even though i turn off the timestamp mangling flag that you expose.

I'm running driver 2696, happens both on my Ivy and Sandy systems.
I just tried 2656, and the problem does not occur anymore.

The driver dependency makes me believe its the MediaSDK itself causing this, and not your code directly.
Can you maybe check if its something you can turn off, or maybe if the problem is just gone in a newer driver which i don't have yet?

Edit:
2712 is also showing the problem.
Either its a bug in the newer MediaSDK libraries which you should forward, or its a feature thats on by accident?
__________________
LAV Filters - open source ffmpeg based media splitter and decoders

Last edited by nevcairiel; 5th May 2012 at 20:13.
nevcairiel is offline   Reply With Quote
Old 5th May 2012, 21:31   #1164  |  Link
egur
QuickSync Decoder author
 
Join Date: Apr 2011
Location: Atlit, Israel
Posts: 916
Quote:
Originally Posted by nevcairiel View Post
Hey Eric,

i found a sample with quite an odd behaviour today.

http://files.1f0.de/samples/h264-qs-timestamp-issue.mkv

When i play this file with LAV in QS mode, it plays too fast (should be 24p, plays at 30p), running out of sync.
I checked the timestamps of the file, and they are fine. Plays fine with software or other hardware codecs too.

For some reason, the QS decoder insists on changing the timestamps, even though I turn off the timestamp mangling flag that you expose.

I'm running driver 2696, happens both on my Ivy and Sandy systems.
I just tried 2656, and the problem does not occur anymore.

The driver dependency makes me believe its the MediaSDK itself causing this, and not your code directly.
Can you maybe check if its something you can turn off, or maybe if the problem is just gone in a newer driver which i don't have yet?

Edit:
2712 is also showing the problem.
Either its a bug in the newer MediaSDK libraries which you should forward, or its a feature thats on by accident?
Odd behavior - managed to reproduce. Still no root cause. I'll update when I have a fix.

I've root caused the problem:
* H264 SPS header doesn't contain a frame rate (num_units_in_tick = time_scale = 0).
* If I manually set the frame rate for the MSDK to 23.976 it will behave correctly.
* This happens even when VPP is off and no time stamp calculation/manipulation.

Nev, make sure the version of the MSDK HW DLL is 368 (from 2696) not 369 (from 2712).

I've committed a patch that also fixes some DI issues along with a workaround for the above issue (r51).

Here's my commit log:
Code:
Experimental build - not stable enough for production SW.
* Update to MSDK 2012 R2.
* Workaround for MSDK bug - zero frame rate in H264 SPS header would cause a wrong frame rate.
* Deinterlacing now works on frames stored as progressive but marked as interlaced content (many PAL TV broadcasts).
* Telecined content not supported by DI (yet).
__________________
Eric Gur,
Processor Application Engineer for Overclocking and CPU technologies
Intel QuickSync Decoder author
Intel Corp.

Last edited by egur; 5th May 2012 at 22:27.
egur is offline   Reply With Quote
Old 6th May 2012, 07:26   #1165  |  Link
NikosD
Registered User
 
Join Date: Aug 2010
Location: Athens, Greece
Posts: 2,901
Quote:
Originally Posted by egur View Post
I'll try the other clips on Sunday.
Eric,

if you try the 4K clips posted by Wanezhiling and me, you can use PotPlayer's internal built-in codecs, because it has an option to "force" HW decoding above 1080p.

The tab key shows CPU utilization of PotPlayer process alone and overall CPU utilization at the same time, separated by a "/".

This is in case you want to check playback performance, not benchmarks of course.

PotPlayer has an extra advantage:
It has direct/ native internal DXVA playback and your QS decoder as an option, too.

So you can check both (direct DXVA and QS decoder) in an easy way, until Nevcariel fixes LAV filters playing 4K in direct mode.
__________________
Win 10 x64 (19042.572) - Core i5-2400 - Radeon RX 470 (20.10.1)
HEVC decoding benchmarks
H.264 DXVA Benchmarks for all

Last edited by NikosD; 6th May 2012 at 07:32.
NikosD is offline   Reply With Quote
Old 6th May 2012, 09:36   #1166  |  Link
egur
QuickSync Decoder author
 
Join Date: Apr 2011
Location: Atlit, Israel
Posts: 916
Tested 5 4K clips using LAV and ffdshow.
LAV and ffdshow showed very similar results so I just wrote LAV-QS score.
The CPU% is how much the player's process took, not the entire system. All clips maxed out turbo at 3.4GHz. Performance wasn't constant during playback as the clips varied in bitrate - OldTownCross ran at 280mbps, peaking at 500 (!) mbps which is outside H264 spec.

CrowdedRun 29% (up to 34%)-3.4GHz
DucksTakeOff 36% (up to 42%) -3.4GHz
InToTree 32% (up to 36%) -3.4GHz
OldTownCross 36% (up to 42%) -3.4GHz
ParkJoy 29% (up to 31%) -3.4GHz

LAV DXVA-CB – half the CPU% of QS but drops a lot of frames (visually, EVR reports everything is OK). Clips are not playable.
LAV DXVA-native – not working – uses libavcodec, maxes out CPU.
__________________
Eric Gur,
Processor Application Engineer for Overclocking and CPU technologies
Intel QuickSync Decoder author
Intel Corp.
egur is offline   Reply With Quote
Old 6th May 2012, 09:51   #1167  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
Quote:
Originally Posted by egur View Post
LAV DXVA-native – not working – uses libavcodec, maxes out CPU.
Native DXVA is limited to 1080p right now, because there are quite some issues with DXVA of 4K on AMD and NVIDIA.
Need to re-visit this in a while when everything has new drivers. Its not like 4K content is important right now.

I probably should improve the logic to allow Intel, but will do that in one go when i check it again.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 6th May 2012, 09:56   #1168  |  Link
egur
QuickSync Decoder author
 
Join Date: Apr 2011
Location: Atlit, Israel
Posts: 916
Quote:
Originally Posted by nevcairiel View Post
Native DXVA is limited to 1080p right now, because there are quite some issues with DXVA of 4K on AMD and NVIDIA.
Need to re-visit this in a while when everything has new drivers. Its not like 4K content is important right now.

I probably should improve the logic to allow Intel, but will do that in one go when i check it again.
I'm considering 4K video a preview to a new technology - give us and the HW makers time to clean up the act before it becomes mainstream.
__________________
Eric Gur,
Processor Application Engineer for Overclocking and CPU technologies
Intel QuickSync Decoder author
Intel Corp.
egur is offline   Reply With Quote
Old 6th May 2012, 11:09   #1169  |  Link
hajj_3
Registered User
 
Join Date: Mar 2004
Posts: 1,125
4k video will probably be using HEVC codec though, i'm not sure if we'll see much 4k video in h.264. I'm hoping that Intel adds dedicated hardware in Haswell for HEVC hardware decoding.
hajj_3 is offline   Reply With Quote
Old 6th May 2012, 11:14   #1170  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
Quote:
Originally Posted by hajj_3 View Post
4k video will probably be using HEVC codec though, i'm not sure if we'll see much 4k video in h.264. I'm hoping that Intel adds dedicated hardware in Haswell for HEVC hardware decoding.
Doubtful that it'll be in Haswell already.
The HEVC standard isn't even finalized yet, and content providers will take years to adopt it anyway.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 6th May 2012, 12:03   #1171  |  Link
hajj_3
Registered User
 
Join Date: Mar 2004
Posts: 1,125
there is already an ARM chip that has HEVC support and that chip was released a while back. The final draft spec is out in july and ratified in january. Chip makers already have chips that can do HEVC hardware decoding such as qualcomm snapdragon and ziilabs: http://www.youtube.com/watch?v=vZfsULKG2Zo http://www.eetimes.com/electronics-n...ll-Android-SoC

So i'm pretty sure that intel could have support in haswell if they wanted to.

Yes it will take a while for software support for HEVC but if they have hardware that can support it then your pc will be future proofed (video-wise) with a haswell cpu.

Last edited by hajj_3; 6th May 2012 at 12:10.
hajj_3 is offline   Reply With Quote
Old 6th May 2012, 12:37   #1172  |  Link
egur
QuickSync Decoder author
 
Join Date: Apr 2011
Location: Atlit, Israel
Posts: 916
Quote:
Originally Posted by nevcairiel View Post
Doubtful that it'll be in Haswell already.
The HEVC standard isn't even finalized yet, and content providers will take years to adopt it anyway.
Let me correct that, not doubtful - impossible. Spec closes in 2013 about the same time Haswell hits the market...
Intel would need a time machine to pull this off

Quote:
Originally Posted by hajj_3 View Post
there is already an ARM chip that has HEVC support and that chip was released a while back. The final draft spec is out in july and ratified in january. Chip makers already have chips that can do HEVC hardware decoding such as qualcomm snapdragon and ziilabs: http://www.youtube.com/watch?v=vZfsULKG2Zo http://www.eetimes.com/electronics-n...ll-Android-SoC

So i'm pretty sure that intel could have support in haswell if they wanted to.

Yes it will take a while for software support for HEVC but if they have hardware that can support it then your pc will be future proofed (video-wise) with a haswell cpu.
This ARM SoC has a DSP processor to do the decoding. DSPs are programmable so it's not an ASIC solution. This is not far from CUVID in concept. They can always rewrite the DSP code. It will suck a battery dry in no time...
__________________
Eric Gur,
Processor Application Engineer for Overclocking and CPU technologies
Intel QuickSync Decoder author
Intel Corp.
egur is offline   Reply With Quote
Old 6th May 2012, 14:38   #1173  |  Link
NikosD
Registered User
 
Join Date: Aug 2010
Location: Athens, Greece
Posts: 2,901
New intel beta drivers for Windows 8, for both Sandy and Ivy.
They work also for Win 7 (I tried 32bit version with Core i5 and Win 7 SP1 x86)

They include OpenGL 4 drivers for Ivy.

You can download the HD Graphics driver v2927 (15.28.0.64.2729 (9.17.10.2729)) from this page

64bit:
http://downloadcenter.intel.com/Deta...21180&lang=eng

32bit:
http://downloadcenter.intel.com/Deta...21235&lang=eng
__________________
Win 10 x64 (19042.572) - Core i5-2400 - Radeon RX 470 (20.10.1)
HEVC decoding benchmarks
H.264 DXVA Benchmarks for all
NikosD is offline   Reply With Quote
Old 6th May 2012, 15:24   #1174  |  Link
CharlieCL
Registered User
 
Join Date: Jan 2012
Posts: 67
Some GPUs of Ivy Bridge Core i5 are HD3000, can it play 4K?
CharlieCL is offline   Reply With Quote
Old 6th May 2012, 15:25   #1175  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,346
Quote:
Originally Posted by CharlieCL View Post
Some GPUs of Ivy Bridge Core i5 are HD3000, can it play 4K?
Ivy Bridge is either 2500 or 4000, none are 3000.
Both 2500 or 4000 should be able to play 4K.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 6th May 2012, 16:14   #1176  |  Link
CruNcher
Registered User
 
CruNcher's Avatar
 
Join Date: Apr 2002
Location: Germany
Posts: 4,926
does it also fit performance wise 2000(GT1),2500(GT1),3000(GT2),4000(GT2?) ?

i doesn't looked @ a compare of 2500 (Ivy,GT1) vs 3000 (SB,GT2) yet

though actually Ivy bridge has been renamed back to GT1 in that line so i guess it doesn't fit to continue the GT naming indeed as we talking about 6 (2500) vs 12 EUs (3000) and getting the same performance with half the EUs i doubt that (on the 3D part).

And the speculation about Haswell also sound a little crazy 40 Eus with the Performance of what 80 or even 160 of the current EUs


Quote:
Originally Posted by NikosD View Post
New intel beta drivers for Windows 8, for both Sandy and Ivy.
They work also for Win 7 (I tried 32bit version with Core i5 and Win 7 SP1 x86)

They include OpenGL 4 drivers for Ivy.

You can download the HD Graphics driver v2927 (15.28.0.64.2729 (9.17.10.2729)) from this page

64bit:
http://downloadcenter.intel.com/Deta...21180&lang=eng

32bit:
http://downloadcenter.intel.com/Deta...21235&lang=eng

Outch
Normally i don't give much about Benchmarks but Microsofts Performance Index Shows a Performance Decrease of 1.1 Points on my HD 2000 for the Game Graphics Value before it was 5.8 (Aero Performance result stayed the same @ 5.2) that's a heavy drop before this drop it was constantly going up per driver release climaxing @ 5.8 with 2719 with 2729 now it dropped down to 4.7 (and becomes the final system result now compared to 5.2 before).

This might indicates some big change here (maybe IQ wise ?)

Have todo some real Engine tests to see if there is something realizable outside of Benchmarks

I could swear Aero feels even snappier (this also constantly improved over driver releases) though (lower latency) even showing no real Benchmark improvement in the Performance Index.

Yep definitely a good latency test is the Aero to Windows Basic change it's much much faster then it was in every previous driver (the mode change is almost fluid now, though Win 8 will be totally fluid WDDM 1.2 )

@egur

Both Lav Video Quicksync as well as FFdshow Quicksync stopped working (DXVA works)
__________________
all my compares are riddles so please try to decipher them yourselves :)

It is about Time

Join the Revolution NOW before it is to Late !

http://forum.doom9.org/showthread.php?t=168004

Last edited by CruNcher; 6th May 2012 at 22:08.
CruNcher is offline   Reply With Quote
Old 7th May 2012, 08:31   #1177  |  Link
egur
QuickSync Decoder author
 
Join Date: Apr 2011
Location: Atlit, Israel
Posts: 916
Windows 8 drivers have either broken MSDK DLLs or they are missing altogether. The Win8 drivers are beta and not fully functional.
__________________
Eric Gur,
Processor Application Engineer for Overclocking and CPU technologies
Intel QuickSync Decoder author
Intel Corp.
egur is offline   Reply With Quote
Old 7th May 2012, 08:54   #1178  |  Link
diizzy
Registered User
 
Join Date: Feb 2007
Posts: 49
Hi,

I might be completely off in this matter but I can't enable QS on my i7-3770 (non K) and I can't find out why, LAV Filters lists it as "Not available" and it doesn't show up in ffdshow at all.

Motherboard: MSI Z77A-GD65
OS: Windows 7 Pro 64-bit SP1
Driver: 8.15.10.2712 (link: http://downloadcenter.intel.com/Deta...adType=Drivers )
ffdshow: ffdshow_rev4441_20120430_xhmikosr_icl12.exe (I can give your build a go if you want to)
LAV Filters: 0.50.2

Does it require lucid or something?

//Danne
diizzy is offline   Reply With Quote
Old 7th May 2012, 10:58   #1179  |  Link
wanezhiling
Registered User
 
Join Date: Apr 2011
Posts: 1,184
Quote:
Originally Posted by NikosD View Post
Using PotPlayer latest version and ATi hardware in DXVA mode I couldn't play both of them at the signature system.

Playback of the MPEG-2 clip is awful - I can't see even one frame correct.

Playback of the H.264 file is better - the only problem is a green horizontal stripe at the top of the film.

BTW, WMP12 plays both clips perfect in DXVA mode.
PotPlayer 1.5.33425 should have fixed both.
wanezhiling is offline   Reply With Quote
Old 7th May 2012, 19:08   #1180  |  Link
egur
QuickSync Decoder author
 
Join Date: Apr 2011
Location: Atlit, Israel
Posts: 916
Quote:
Originally Posted by diizzy View Post
Hi,

I might be completely off in this matter but I can't enable QS on my i7-3770 (non K) and I can't find out why, LAV Filters lists it as "Not available" and it doesn't show up in ffdshow at all.

Motherboard: MSI Z77A-GD65
OS: Windows 7 Pro 64-bit SP1
Driver: 8.15.10.2712 (link: http://downloadcenter.intel.com/Deta...adType=Drivers )
ffdshow: ffdshow_rev4441_20120430_xhmikosr_icl12.exe (I can give your build a go if you want to)
LAV Filters: 0.50.2

Does it require lucid or something?

//Danne
You need Lucid if you don't have a display connected to Intel GPU. Direct3D/DXVA requires a display for GPUs to be enumerated. You can also try faking a connected display. See a previous post
__________________
Eric Gur,
Processor Application Engineer for Overclocking and CPU technologies
Intel QuickSync Decoder author
Intel Corp.
egur is offline   Reply With Quote
Reply

Tags
ffdshow, h264, intel, mpeg2, quicksync, vc1, zoom player

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 22:48.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.