Howto Enable Intel Quick Sync H.264 GPU Encoding ?

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
Ultrapower
Blank Cone
Blank Cone
Posts: 72
Joined: 11 Feb 2013 00:28

Howto Enable Intel Quick Sync H.264 GPU Encoding ?

Postby Ultrapower » 11 Sep 2013 17:18

Hi,

in the Release Notes for VLC Media Player 2.1.0 RC2 it says:

Encoders:
* high10, high422 and high444 encoding support in h264
* QuickSyncVideo Encoding (Intel Media SDK) support using Intel GPU on Windows
* New AAC encoder using the fdk-aac library (non-free)


Could someone tell me howto enable this feature in the latest RC of 2.1.0 Ricewind :?:

Greetings

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Howto Enable Intel Quick Sync H.264 GPU Encoding ?

Postby Jean-Baptiste Kempf » 12 Sep 2013 14:20

venc=qsv
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Ultrapower
Blank Cone
Blank Cone
Posts: 72
Joined: 11 Feb 2013 00:28

Re: Howto Enable Intel Quick Sync H.264 GPU Encoding ?

Postby Ultrapower » 14 Sep 2013 03:57

venc=qsv
I added without any effect ... :(

is configuration of Intel Software (Media SDK) needed ?? If yes can you tell me how ?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Howto Enable Intel Quick Sync H.264 GPU Encoding ?

Postby Jean-Baptiste Kempf » 16 Sep 2013 15:26

Read the log. and yes, you need the MediaSDK to be installed.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Ultrapower
Blank Cone
Blank Cone
Posts: 72
Joined: 11 Feb 2013 00:28

Re: Howto Enable Intel Quick Sync H.264 GPU Encoding ?

Postby Ultrapower » 17 Sep 2013 01:40

Read the log. and yes, you need the MediaSDK to be installed.
I have it installed but the CPU Load is not reduced ...

The command line in VLC begins like this: transcode{venc=qsv,vcodec=h264 ... and so on

What must i configure in the Media SDK ?? :?

Ultrapower
Blank Cone
Blank Cone
Posts: 72
Joined: 11 Feb 2013 00:28

Re: Howto Enable Intel Quick Sync H.264 GPU Encoding ?

Postby Ultrapower » 26 Sep 2013 12:02

First of all the 64-Bit version of 2.1.0 Final does NOT include a QSV-Menu, so i have made my tests on 32bit VLC (has QSV Options in the Menu) ...


The Activation of QSV has no effect still the same CPU load while Transcoding :(

Is there any special setting made into command line ??

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Howto Enable Intel Quick Sync H.264 GPU Encoding ?

Postby Jean-Baptiste Kempf » 08 Oct 2013 00:33

use 32bits builds.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Ultrapower
Blank Cone
Blank Cone
Posts: 72
Joined: 11 Feb 2013 00:28

Re: Howto Enable Intel Quick Sync H.264 GPU Encoding ?

Postby Ultrapower » 13 Oct 2013 13:40

use 32bits builds.
I installed this Intel Media SDK:

http://software.intel.com/en-us/vcsourc ... /media-sdk

32Bit VLC 2.1.0 and it has still NO EFFECT on transcoding !!!

Is there something to be set or does it work automatically ? I only installed the Media SDK and latest Intel Drivers thats all :?

spycrab101
Blank Cone
Blank Cone
Posts: 10
Joined: 05 Oct 2013 21:43

Re: Howto Enable Intel Quick Sync H.264 GPU Encoding ?

Postby spycrab101 » 13 Oct 2013 21:19

Hardware encoding seems broken on VLC atm, Ticking the software box in qsv menu seems to work.
Image

aizecu
New Cone
New Cone
Posts: 1
Joined: 27 Oct 2013 06:39

Re: Howto Enable Intel Quick Sync H.264 GPU Encoding ?

Postby aizecu » 27 Oct 2013 06:45

I have tried on 2.1.0 transcoding from DirectShow and files.

It doesn't have any effect on GPU load.

Image

vcodec="h264",venc="qsv"{profile="main",level="4.1"}

spycrab101, could you please show me the example of command line ?

Does anyone have any idea?

Thank you

Ultrapower
Blank Cone
Blank Cone
Posts: 72
Joined: 11 Feb 2013 00:28

Re: Howto Enable Intel Quick Sync H.264 GPU Encoding ?

Postby Ultrapower » 13 Nov 2013 19:42

I have tried on 2.1.0 transcoding from DirectShow and files.

It doesn't have any effect on GPU load.

Image

vcodec="h264",venc="qsv"{profile="main",level="4.1"}

spycrab101, could you please show me the example of command line ?

Does anyone have any idea?

Thank you
I tried everything but no effect on CPU ...

stefki
New Cone
New Cone
Posts: 9
Joined: 07 Jul 2012 23:25

Re: Howto Enable Intel Quick Sync H.264 GPU Encoding ?

Postby stefki » 20 Nov 2013 16:56

is it intel quick sync supported in Linux ? I mean can we transcode with VLC under linux ?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Howto Enable Intel Quick Sync H.264 GPU Encoding ?

Postby Jean-Baptiste Kempf » 12 Dec 2013 15:21

not yet.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

PattyCode
New Cone
New Cone
Posts: 3
Joined: 09 Jan 2014 18:48

Re: Howto Enable Intel Quick Sync H.264 GPU Encoding ?

Postby PattyCode » 09 Jan 2014 20:19

Hello everyone,

I'd like to push this thread a little, as I'm still having issues using Intel Quick Sync capabilities and the thread doesn't seem to be resolved.

I'm trying to stream a video from several cameras in a nature reserve around the Steinhuder Meer for a local NGO, preserving the unique wildlife. The cameras film ospreys, black and red milan and a kestrel pair in their nests, while breeding. The project has received a lot of public interest lately as it is actually showing the wildlife as it cannot be seen by visitors. So far my motivation and FYI the streams will be posted here http://www.oessm.org/blog/?page_id=3105 when the summer seasons begins again, although the site is in german.

I set up a computer to serve the restreaming purpose. It is a Intel i7-3770K at 4700GHz on an Asrock Z77 Extreme4-M with 8GB DDR3 RAM (1600MHz). I'm running a Windows 7 Professional 64-bit, as Quick Sync was supposed to be supported for Windows in VLC. Otherwise it would habe been a nice Linux. Anyways, I have installed the 32-bit VLC 2.1.2 Rincewind and the Intel Media SDK 2013 RC2. And installed means for the later I just let the installer put the .dll somewhere and did not configure vlc, where to search for them. I also did not set any env-path variables, as I didn't find any documentation.

The error I'm receiving, when using venc=qsv in a transcoding like

Code: Select all

:sout=#transcode{vcodec=h264,venc=qsv,scale=0.75,acodec=mpga,ab=128,channels=2,samplerate=44100}:rtp{dst=239.255.255.255,port=5004,mux=ts,sap,name=StreamTest} :sout-keep
is

Code: Select all

[0976019c] qsv encoder error: No hardware implementation found and software mode disabled [026d6e9c] stream_out_transcode stream out error: cannot find video encoder (module:qsv fourcc:h264). Take a look few lines earlier to see possible reason. [026d6e9c] stream_out_transcode stream out error: cannot create video chain [04bc357c] main decoder error: cannot create packetizer output (h264)
I obviously did not enable the software mode, as I interpret the flag as precisely stating not to use the hardware. I tried with software mode enabled, but the performance is poor as occuping 3 times more of the CPU.

I would be really grateful, if anybody could help me setup the hardware encoding.

pat

spycrab101
Blank Cone
Blank Cone
Posts: 10
Joined: 05 Oct 2013 21:43

Re: Howto Enable Intel Quick Sync H.264 GPU Encoding ?

Postby spycrab101 » 05 Feb 2014 17:20

I'm still having issues with this. I get the feeling that VLC requires HW 1.6 and above for encoding.(intel hd 4000) I assume you are using an intel HD 3000? or below?

PattyCode
New Cone
New Cone
Posts: 3
Joined: 09 Jan 2014 18:48

Re: Howto Enable Intel Quick Sync H.264 GPU Encoding ?

Postby PattyCode » 05 Feb 2014 20:38

Hello spycrab01,

the CPU in usage is actually an Intel i7-3770K, which has the Intel HD 4000 GPU build in.

pat

spycrab101
Blank Cone
Blank Cone
Posts: 10
Joined: 05 Oct 2013 21:43

Re: Howto Enable Intel Quick Sync H.264 GPU Encoding ?

Postby spycrab101 » 06 Feb 2014 03:29

C:\Program Files (x86)\Intel\Media SDK 2013 R2\tools\mediasdk_sys_analyzer\win32

Try running that and let me know what comes up. It should tell you if HW encoding is working or not.

PattyCode
New Cone
New Cone
Posts: 3
Joined: 09 Jan 2014 18:48

Re: Howto Enable Intel Quick Sync H.264 GPU Encoding ?

Postby PattyCode » 05 Mar 2014 00:21

Hello,

sorry for the late reply. The server was inaccessible due to moving. Here's the output from the command:

Code: Select all

Intel Media SDK System Analyzer (32 bit) The following versions of Media SDK API are supported by platform/driver: Version Target Supported Dec Enc 1.0 HW Yes X X 1.0 SW Yes X X 1.1 HW Yes X X 1.1 SW Yes X X 1.3 HW Yes X X 1.3 SW Yes X X 1.4 HW Yes X X 1.4 SW Yes X X 1.5 HW No 1.5 SW Yes X X 1.6 HW No 1.6 SW Yes X X 1.7 HW No 1.7 SW Yes X X Graphics Devices: Name Version State Intel(R) HD Graphics 4000 9.17.10.2932 Active System info: CPU: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz OS: Microsoft Windows 7 Professional Arch: 64-Bit
From the output it seems Versions 1.5 to 1.7 are unfortunately not supported on my platform and driver combination, at least not on a hw target. I checked the driver version with the mainboard ditributor Asrock, but according to their ressources the driver was up to date. I found a recent driver on the intel website though an installed it. The output now looks much more promising.

Code: Select all

Intel Media SDK System Analyzer (32 bit) The following versions of Media SDK API are supported by platform/driver: Version Target Supported Dec Enc 1.0 HW Yes X X 1.0 SW Yes X X 1.1 HW Yes X X 1.1 SW Yes X X 1.3 HW Yes X X 1.3 SW Yes X X 1.4 HW Yes X X 1.4 SW Yes X X 1.5 HW Yes X X 1.5 SW Yes X X 1.6 HW Yes X X 1.6 SW Yes X X 1.7 HW Yes X X 1.7 SW Yes X X Graphics Devices: Name Version State Intel(R) HD Graphics 4000 10.18.10.3412 Active System info: CPU: Intel(R) Core(TM) i7-3770K CPU @ 3.50GHz OS: Microsoft Windows 7 Professional Arch: 64-Bit
I can now use VLC with the qsv encoder. I am not yet seeing any major CPU load drop but I will play with the settings, when I find the time and post the results here.
Thanks for the hint spycrab101.

pat

mimilo
New Cone
New Cone
Posts: 3
Joined: 27 Mar 2014 03:24

Re: Howto Enable Intel Quick Sync H.264 GPU Encoding ?

Postby mimilo » 27 Mar 2014 04:04

> Ticking the software box in qsv menu seems to work.
Intel QuickSync Encoder Software Mode should be disabled if you have Sandy Bridge, Ivy Bridge, Haswell Motherboard and CPU.
Otherwise, it will use the cpu to emulate the Quicksync API call. Of course, there is no hardware encoding acceleration.

If you have nVidia/ATI display card in your system, you need to switch the primary to motherboard display and enable iGAP in bios in order to enable the Quicksync feature. If you set the primary display to iGAP and install the Lucid Virtu MVP, it need to be disabled.

mimilo
New Cone
New Cone
Posts: 3
Joined: 27 Mar 2014 03:24

Re: Howto Enable Intel Quick Sync H.264 GPU Encoding ?

Postby mimilo » 27 Mar 2014 04:13

I have tried on 2.1.0 transcoding from DirectShow and files.
It doesn't have any effect on GPU load.
Image

vcodec="h264",venc="qsv"{profile="main",level="4.1"}

spycrab101, could you please show me the example of command line ?

Does anyone have any idea?

Thank you
This problem comes from the resolution width is not dividable by 16. For example, 854x480, 854 is not dividable by 16, 854/16=53.375. Then you will get the result same as what aizecu has. If you set it to 768x432 or 960x540 (qHD), then
it will be encoded as expected.

mimilo
New Cone
New Cone
Posts: 3
Joined: 27 Mar 2014 03:24

Re: Howto Enable Intel Quick Sync H.264 GPU Encoding ?

Postby mimilo » 27 Mar 2014 05:01


The error I'm receiving, when using venc=qsv in a transcoding like

Code: Select all

:sout=#transcode{vcodec=h264,venc=qsv,scale=0.75,acodec=mpga,ab=128,channels=2,samplerate=44100}:rtp{dst=239.255.255.255,port=5004,mux=ts,sap,name=StreamTest} :sout-keep
is

Code: Select all

[0976019c] qsv encoder error: No hardware implementation found and software mode disabled [026d6e9c] stream_out_transcode stream out error: cannot find video encoder (module:qsv fourcc:h264). Take a look few lines earlier to see possible reason. [026d6e9c] stream_out_transcode stream out error: cannot create video chain [04bc357c] main decoder error: cannot create packetizer output (h264)
I obviously did not enable the software mode, as I interpret the flag as precisely stating not to use the hardware. I tried with software mode enabled, but the performance is poor as occuping 3 times more of the CPU.

I would be really grateful, if anybody could help me setup the hardware encoding.

pat
>the flag as precisely stating not to use the hardware.
Yes.
>qsv encoder error: No hardware implementation found and software mode disabled
Previous two replies can fixed the "no hardware implementation problem"

>scale=0.75
use defined resolution width and height, and set scale=auto, don't use scale=0.75, which can cause the width not dividable by 16.

Although You use windows environment and x-32 version of vlc, you need to latest Intel Drivers. Media SDK is not necessary. you use the mpeg ts container, H.264 video codec, mpg audio codec and use rtp multicast . It is recommand using http streaming as you broadcast the content in website.

spycrab101
Blank Cone
Blank Cone
Posts: 10
Joined: 05 Oct 2013 21:43

Re: Howto Enable Intel Quick Sync H.264 GPU Encoding ?

Postby spycrab101 » 11 Jun 2014 18:29

The latest Intel drivers aren't available for intel 2000 or 3000 so I assume vlc won't support these? I noticed the latest version is 10 while the latest version for sandy Bridge is 9

svgram
New Cone
New Cone
Posts: 2
Joined: 03 Feb 2014 16:57

Re: Howto Enable Intel Quick Sync H.264 GPU Encoding ?

Postby svgram » 07 Jul 2014 20:07

Hello!
The error I'm receiving, when using venc=qsv in a transcoding like
:sout=#transcode{vcodec=h264,venc=qsv,scale=0.75,acodec=mpga,ab=128,channels=2,samplerate=44100}:rtp{dst=239.255.255.255,port=5004,mux=ts,sap,name=StreamTest} :sout-keep

qsv debug: Encoder feeding phase, more data is needed.
qsv error: SyncOperation failed, outputting garbage data. Updating your drivers and/or changing the encoding settings might resolve this
qsv debug: Device is busy, let's wait and retry

Installed new drivers did not help. What causes these errors? Please share a working configuration.

edf
New Cone
New Cone
Posts: 2
Joined: 21 May 2015 16:50

Re: Howto Enable Intel Quick Sync H.264 GPU Encoding ?

Postby edf » 21 May 2015 19:32

I'm running VLC 2.2.1 (32-bit) on a Windows 7 platform with 3rd Gen Intel Core-i7 and HD Graphics 4000. I've tried GUI and command line to launch VLC and stream out a Unicast or Multicast of a live camera connected via a frame grabber. The results are poor so far... 2-3 second latency and bad video quality on the client. As far as I can tell, the encoder is not qsv despite using the venc=qsv command. Is there something I have to do to get VLC to recognize the hardware and this capability? Can someone supply a working command line for a similar setup?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37519
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Howto Enable Intel Quick Sync H.264 GPU Encoding ?

Postby Jean-Baptiste Kempf » 22 May 2015 12:01

Look at the logs
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 16 guests