Re: [FFmpeg-user] Integration of ffmpeg with Haswell

2015-05-18 Thread Moritz Barsnick
On Mon, May 18, 2015 at 15:07:03 +, Shiwani Agrawal wrote:

 Thanks for helping me out in this issue , just want to clarify in the
 end , does it mean that if we integrate ffmpeg with the media SDK it
 increases the speed (or Quality) of transcoding process by processor
 ? If yes , why ?

The process is called hardware acceleration. See here:
https://trac.ffmpeg.org/wiki/HWAccelIntro

It helps applications - in this case decoders, encoders, filters, and
so on - use special hardware for certain calculations, thereby reducing
the load on the CPU and/or increasing the speed. In your case, you are
referring to the Intel Quick Sync hardware, which was created
particularly for video (and audio?) coding.

Using it _should_ increase the speed of the transcoding process (note
that speed, quality and compression size are always trade-offs), but
doesn't always, it depends on the implementation. On the other hard,
the hardware algorithms have certain restrictions and aren't as
flexible as software solutions. You won't be able to adjust all
parameters of the encoding process, and sometimes more complex profiles
or more modern codecs aren't supported either. So it really depends on
your use case.

And I think you need a really good justification to pay for an extra
license for the Intel SDK. (I'm not sure a working free implementation
exists yet.) As a normal user, I wouldn't go to the trouble of
integrating the SDK. Just check how good ffmpeg's other support is for
you first.

Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Integration of ffmpeg with Haswell

2015-05-18 Thread Shiwani Agrawal
Hello , 

Thanks for helping me out in this issue , just want to clarify in the end , 
does it mean that if we integrate ffmpeg with the media SDK it increases the 
speed (or Quality) of transcoding process by processor ? If yes , why ?

Thanks and Regards
Shiwani 

 Date: Mon, 18 May 2015 12:53:12 +0200
 From: barsn...@gmx.net
 To: ffmpeg-user@ffmpeg.org
 Subject: Re: [FFmpeg-user] Integration of ffmpeg with Haswell
 
 On Mon, May 18, 2015 at 12:43:12 +0200, Moritz Barsnick wrote:
  Actually, my bad. Support is already integrated into ffmpeg. It appears
  that, at the presence of the Media SDK (libmfx, mfx/mfxvideo.h), the
  qsv encoders and decoders are built. You will need the Media SDK, and
  you have to build ffmpeg yourself.
 
 I failed to recognize: You need to configure your ffmpeg build with
 --enable-libmfx
 
 Moritz
 ___
 ffmpeg-user mailing list
 ffmpeg-user@ffmpeg.org
 http://ffmpeg.org/mailman/listinfo/ffmpeg-user
  
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Integration of ffmpeg with Haswell

2015-05-18 Thread Shiwani Agrawal
Hello ,

Thanks for explanation , I would certainly test the speed enhancement for my 
case before paying for the license .

Thanks and Regards ,
Shiwnai

 Date: Mon, 18 May 2015 17:19:22 +0200
 From: barsn...@gmx.net
 To: ffmpeg-user@ffmpeg.org
 Subject: Re: [FFmpeg-user] Integration of ffmpeg with Haswell
 
 On Mon, May 18, 2015 at 15:07:03 +, Shiwani Agrawal wrote:
 
  Thanks for helping me out in this issue , just want to clarify in the
  end , does it mean that if we integrate ffmpeg with the media SDK it
  increases the speed (or Quality) of transcoding process by processor
  ? If yes , why ?
 
 The process is called hardware acceleration. See here:
 https://trac.ffmpeg.org/wiki/HWAccelIntro
 
 It helps applications - in this case decoders, encoders, filters, and
 so on - use special hardware for certain calculations, thereby reducing
 the load on the CPU and/or increasing the speed. In your case, you are
 referring to the Intel Quick Sync hardware, which was created
 particularly for video (and audio?) coding.
 
 Using it _should_ increase the speed of the transcoding process (note
 that speed, quality and compression size are always trade-offs), but
 doesn't always, it depends on the implementation. On the other hard,
 the hardware algorithms have certain restrictions and aren't as
 flexible as software solutions. You won't be able to adjust all
 parameters of the encoding process, and sometimes more complex profiles
 or more modern codecs aren't supported either. So it really depends on
 your use case.
 
 And I think you need a really good justification to pay for an extra
 license for the Intel SDK. (I'm not sure a working free implementation
 exists yet.) As a normal user, I wouldn't go to the trouble of
 integrating the SDK. Just check how good ffmpeg's other support is for
 you first.
 
 Moritz
 ___
 ffmpeg-user mailing list
 ffmpeg-user@ffmpeg.org
 http://ffmpeg.org/mailman/listinfo/ffmpeg-user
  
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Integration of ffmpeg with Haswell

2015-05-18 Thread Moritz Barsnick
On Mon, May 18, 2015 at 12:10:47 +0200, Moritz Barsnick wrote:
 If you really have the need for testing the hardware acceleration, I
 believe you must google your way through those paths of integrating.
 Otherwise, just use plain ffmpeg.

Actually, my bad. Support is already integrated into ffmpeg. It appears
that, at the presence of the Media SDK (libmfx, mfx/mfxvideo.h), the
qsv encoders and decoders are built. You will need the Media SDK, and
you have to build ffmpeg yourself.

Good luck,
(I won't try it myself for the time being)
Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Integration of ffmpeg with Haswell

2015-05-18 Thread Moritz Barsnick
On Mon, May 18, 2015 at 12:43:12 +0200, Moritz Barsnick wrote:
 Actually, my bad. Support is already integrated into ffmpeg. It appears
 that, at the presence of the Media SDK (libmfx, mfx/mfxvideo.h), the
 qsv encoders and decoders are built. You will need the Media SDK, and
 you have to build ffmpeg yourself.

I failed to recognize: You need to configure your ffmpeg build with
--enable-libmfx

Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Integration of ffmpeg with Haswell

2015-05-18 Thread Moritz Barsnick
Hi Shiwani,

On Mon, May 18, 2015 at 01:59:04 +, Shiwani Agrawal wrote:
 what I am not getting is the need for installing intel media SDK and
 then integrating ffmpeg with it . Can we install ffmpeg directly
 without having installed intel media SDK ?.

Yes, sure you can install ffmpeg without the Intel Media SDK. ffmpeg
then doesn't make use of the Intel Quick Sync hardware acceleration
though.

There are arguments whether that acceleration is useful though -
arguments about actual speed gain, supported codec parameters, and so
on. Some of these arguments may be outdated.

If you really have the need for testing the hardware acceleration, I
believe you must google your way through those paths of integrating.
Otherwise, just use plain ffmpeg.

Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user