[Libav-user] Issue with hardware decoding of H265 video stream via QSV

2020-05-19 Thread Vivekanand
Hello,

I am trying to decode H265 frames in hardware (QSV) via ffmpeg (3.4.7) on
Intel CPU. Following command works perfectly on terminal ( OS : CentOS):

* build/lin_x64/bin/ffmpeg  **-c:v hevc_qsv -load_plugin hevc_hw **-hwaccel
qsv -i  -f null -*

I am trying to re-produce similar behaviour (H265 hardware decoding) via
program (C++) but I am unable to do so. I am not able to find code snippet
that sets (-hwaccel qsv) option via program.

Command above sets 3 parameters :

   1. *-c:v hevc_qsv *
   codec = avcodec_find_decoder_by_name("*hevc_qsv*");

   2.
*-load_plugin hevc_hw *int ret1 = av_dict_set(, "*load_plugin*", "
   *hevc_hw*", 0);

   and later on passing this to :
   int ret2 = avcodec_open2(avctx, codec, &*opts*);

3.
*-hwaccel qsv  *

I am not able to set *-hwaccel qsv *via program, need code snippet
demonstrating same (-hwaccel qsv)

Current program gives following error :
  [hevc_qsv @ 0x15d1530] Error initializing the MFX video decoder:
invalid video parameters (-15)

Sample code and video can be downloaded for link below :  (README has some
more information about code. As a end goal, attached program is supposed to
decode H265 frames using intel QSV)

https://www.dropbox.com/s/pcdbjmzrpdnjpi0/testH265.tgz?dl=0
-- 
Thanks,
Vivekanand
___
Libav-user mailing list
Libav-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/libav-user

To unsubscribe, visit link above, or email
libav-user-requ...@ffmpeg.org with subject "unsubscribe".

[Libav-user] Regarding jpeg_qsv support in ffmpeg

2018-04-13 Thread Vivekanand
Dear Team,

Intel Media SDK provides support for hardware encoding and decoding of
JPEG/H264 data.
I want to use this functionality using ffmpeg. I checked ffmpeg and found
h264_qsv for H264 but didn't find anything for JPEG.

Is there anything like "jpeg_qsv" exists in ffmpeg ?
Is there a way in ffmpeg using which I can use hardware encoding/decoding
for JPEG with intel hardware.

-- 
Warm Regards:

*Vivekanand *
Lead Software Engineer
Vehant Technologies Pvt. Ltd.
Noida, (U.P.)
Mob.- +91*9717588687*
___
Libav-user mailing list
Libav-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/libav-user