Home > Archive (Community help, from old helpdesk) > How to enable Intel Quick Sync in Video Edit SDK x64 .NET

How to enable Intel Quick Sync in Video Edit SDK x64 .NET

Avatar image
Aug 22, 2015
Archive Agent wrote
Hello Roman,
I just downloaded the new 8.6.1.0 full release and want to activate the new Intel Quick Sync feature. I'm using a Intel Core i5 2.8 GHz CPU with 8 GB RAM on a Windows Server 2008 R2 OS, enabled the iGPU option in the BIOS and installed the newest graphics drivers. Unfortunately I cannot see any option in your framework how to enable the Intel Quick Sync feature when encoding a video file in H.264. Also the encoding time when using your Winforms-Demo is the same as when using the 8.5 Version of your SDK. Can you please give a short instruction how to use the new feature? The log files of your demo application are attached.

Regards from Germany,
Manuel

logs.zip 14 KB - 9 downloads
ManuelManuel on October 13, 2014 1:05 PM
Completed
0
Vote
Reply
29 Answers
Aug 22, 2015
Archive Agent agent wrote
Manuel

In the meantime I read some articles on using quick sync with windows server 2008 R2. By default, the Intel Media SDK which is required for using quick sync will not be installed on a server OS. After modifying the setup script I managed to install and enable intel quick sync (tested with Handbrake beta version). Unfortunately I did not manage to enable it in Media Edit SDK. I also noticed that you are talking about a H.264 decoder on your web site, does this mean that the quick sync ENCODING feature is not included? By the way, if someone else is interested in enabling quick sync feature on a windows server system, please let me know.

on October 14, 2014 12:55 PM
Aug 22, 2015
Archive Agent agent wrote
Alain

Same problem, how to enable Quick Sync? I'm looking for a SDK which supports QuickSync for encoding videos. Please advise. Merci

on October 15, 2014 1:40 PM
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

Please download 8.6.2.0 build, not Intel QuickSync is enabled (automatically) for H264 encoding.

on October 15, 2014 4:24 PM
Aug 22, 2015
Archive Agent agent wrote
Manuel

Thanx for the quick reply, but how to enable QuickSync in source code if it is NOT enabled by default for H.264 encoding?

on October 16, 2014 10:01 AM
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

It's not required, if QuickSync available it will be used automatically.

on October 16, 2014 10:04 AM
Aug 22, 2015
Archive Agent agent wrote
Manuel

unfortunately it is not automatically enabled. when using a third party tool like Handbrake beta, a 10min. 1080p24 video will be encoded in about 3 minutes (about 15% CPU usuage). Converting the same video with your demo application takes about 30 minutes (about 90% CPU usuage), so I guess that QuickSync is not enabled.

on October 16, 2014 5:14 PM
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

Can you wrote privately to support@visioforge.com and allow access to your PC to test?

on October 16, 2014 5:18 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

@Manuel. If you problem solved, please give us how fixed. that's very helpful to the new guy when he searching on the website. thanks.

on October 21, 2014 10:04 AM
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

Problem was with nVidia card installed on PC. Intel QuickSync normally don't want to work if any 3rd-party GPU available. Workaround can be virtual display connected to Intel GPU but I'm not sure that it's worked always.

on October 21, 2014 11:31 AM
Aug 22, 2015
Archive Agent agent wrote
Manuel

Hello everybody,
after running some test and removing the additional NVIDIA graphics-card Quick Sync is perfectly running. Here are some tests results:

PC- Hardware: Intel Core i5 @2.80GHz (Sandy Bridge), 8 GB RAM, 256MB SSD
OS: Windows Server 2008 R2 Enterprise Edition x64
VideoEdit SDK version: 8.6.7.0 (build from 19.10.2014) x64
Inputvideo: 10min. 1080p24 MP4-file
Encoding time when using pure software-encoding: about 30 minutes (100% CPU usuage)
Encoding time when using CUDA-encoding: about 5 minutes (70% CPU usuage, 28% GPU usuage)
Encoding time when using Quick Sync (without NVIDIA installed): about 5 minutes (80% CPU usuage)

The quick sync feature is automatically detected when using MP4 encoding (doesn't matter if modern or legacy codec is used in source code), so simply update to the current version and you are ready to go ;-)

From my side this case is closed.

Happy coding,
Manuel

on October 21, 2014 12:00 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

that's sounds like very powerful. thank you for sharing that.
I very Optimistic the QuickSync decode on Media Player SDK, but not test yet. I think it also powerful. :)

on October 21, 2014 1:03 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

If can manually open or close will more better I think, because a lot people need a additional Graphics card for some animation for effect for the final application UI.

on October 21, 2014 1:05 PM
Aug 22, 2015
Archive Agent agent wrote
Manuel

It's a specification of Intel that no other graphics card are allowed to be installed. As long as Intel doesn't change that spec, there is no chance I think (Roman, correct me if I'm wrong). But I'm also looking for a workaround for this...

on October 21, 2014 1:17 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

such a bad design....Intel CPU graphics power very suck......Maybe it want 10 year later when the CPU has a good graphics power, don't need use any additional graphics.....but now ........

on October 21, 2014 1:22 PM
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

Manuel told correctly about Intel limitations. Some workarounds are available but for me nothing worked.

on October 21, 2014 4:58 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

I test on my laptop. Media Player SDK. play a h264 720p encrypted video. CPU still need like 7% around. just like old version.
My laptop use i7 + gtx nvdia graphics card.

Is that normal?

on October 22, 2014 8:47 AM
Aug 22, 2015
Archive Agent agent wrote
Manuel

As long as your notebook is using a nvidia card instead of a intel HD graphics, Intel Quick Sync is automatically disabled. Why don't you use CUDA? On our side the performance is almost the same (for encoding jobs, we don't use the media player sdk).

on October 22, 2014 10:16 AM
Aug 22, 2015
Archive Agent agent wrote
qakmak

Is Media Player SDK support CUAD on NVdia GT630 graphics card (WINDOWS XP)?

on October 23, 2014 5:26 PM
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

We're planned to add CUDA H264 decoder.

H264 encoder much more serious task for CPU, decoder can be software, not so big problem.

on October 23, 2014 6:31 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

I just think if can use cheap graphics card decode (like GT630), maybe can save the CPU usage. let the application more smooth running. :)

on October 23, 2014 6:58 PM
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

As I see LAV filters can use CUDA for H264 decoding.

on October 23, 2014 7:05 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

Current SDK? in XP? last time I test a encrypted h264 file on XP. but not find any big different.

on October 23, 2014 7:08 PM
Aug 22, 2015
Archive Agent agent wrote
Roman Minyaylov

Check LAV filters docs. Not sure about XP. Current SDK.

on October 23, 2014 7:13 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

I'll take some time to check it.

on October 23, 2014 8:10 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

I use I7 3770 CPU test it. 720P MP4 file convert to h264 encrypted video. the video is 20minute around, set LegacyCodecs = true, OutputForma = Custom; Encrypted Format =MP4_H264_SW_AAC. But It take about 20 minute. I'm using FFDSHOW codec + Haali Splitter. @Manuel , What codec you are using?

on March 6, 2015 6:15 PM
Aug 22, 2015
Archive Agent agent wrote
Manuel

I'm using LAV Splitter & Filters and using the following code:

VisioForge_VideoConvert.MP4_LegacyCodecs = True
VisioForge_VideoConvert.MP4_Video_Profile = VFH264Profile.ProfileMain
VisioForge_VideoConvert.MP4_Video_Level = VFH264Level.Level1
VisioForge_VideoConvert.MP4_Video_Target_Usage = VFH264TargetUsage.BestQuality
VisioForge_VideoConvert.MP4_Video_PictureType = VFH264PictureType.Frame
VisioForge_VideoConvert.MP4_Video_Bitrate = 8192
VisioForge_VideoConvert.MP4_Video_BitrateAuto = False
VisioForge_VideoConvert.MP4_Video_Deblocking = True
VisioForge_VideoConvert.MP4_Video_GOP = True
VisioForge_VideoConvert.MP4_Video_IDR_Period = 14
VisioForge_VideoConvert.MP4_Video_MBEncoding = VFH264MBEncoding.CAVLC
VisioForge_VideoConvert.MP4_Video_RateControl = VFH264RateControl.CBR
VisioForge_VideoConvert.MP4_Video_Sequential_Timing = VFH264TimeType.Encoded
VisioForge_VideoConvert.Video_FrameRate = 0

Reencoding a 1 hour Full-HD video file takes about 30-35 minutes, depending on the source's bitrate. By the way, it makes no difference in performance using CUDA or QuickSync.

on March 9, 2015 2:32 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

Ok. thanks. I'll try it.
Don't you found AAC audio quality problem?

on March 9, 2015 2:43 PM
Aug 22, 2015
Archive Agent agent wrote
Manuel

No, since we are encoding video only ;-)

on March 9, 2015 5:25 PM
Aug 22, 2015
Archive Agent agent wrote
qakmak

OK. I think maybe because I'm use
// Deinterlace
videoEdit.Video_Effects_Deinterlace_CAVT(1, 0, 0, true, Convert.ToByte("20"));

I'll take some time test it. Thank you.

on March 9, 2015 6:57 PM