Issue with hardware decoding of H265 video stream via QSV

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue with hardware decoding of H265 video stream via QSV

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 <h265-video-name> -f null -*

I am trying to re-produce similar behaviour via program (C++) to decode
video frames having h265 data but I am unable 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(&opts, "*load_plugin*", "
   *hevc_hw*", 0);

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

3.

*-hwaccel qsv  <Need snippet demonstrating this setting> *

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

--
Thanks,
Vivekanand
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Issue with hardware decoding of H265 video stream via QSV

Carl Eugen Hoyos-2
Am Fr., 1. Mai 2020 um 22:37 Uhr schrieb Vivekanand
<[hidden email]>:

> 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 <h265-video-name> -f null -*
>
> I am trying to re-produce similar behaviour via program (C++) to decode
> video frames having h265 data but I am unable 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(&opts, "*load_plugin*", "
>    *hevc_hw*", 0);
>
>    and later on passing this to :
>    int ret2 = avcodec_open2(avctx, codec, &*opts*);
>
> 3.
>
> *-hwaccel qsv  <Need snippet demonstrating this setting> *
>
> I am not able to set *-hwaccel qsv *via program, need code snippet
> demonstrating similar settings (-hwaccel qsv).

Please see https://ffmpeg.org/contact.html#MailingLists - I believe
you want to post your question on the libav-user mailing list,
don't forget to post code that can be compiled and allows to
reproduce your issue.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Issue with hardware decoding of H265 video stream via QSV

Vivekanand
In reply to this post by Vivekanand
Thanks Carl.
I have posted the query on libav-user mailing list (with code).

On Sat, May 2, 2020 at 2:00 AM Vivekanand <[hidden email]>
wrote:

> 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 <h265-video-name> -f null -*
>
> I am trying to re-produce similar behaviour via program (C++) to decode
> video frames having h265 data but I am unable 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(&opts, "*load_plugin*",
>    "*hevc_hw*", 0);
>
>    and later on passing this to :
>    int ret2 = avcodec_open2(avctx, codec, &*opts*);
>
> 3.
>
> *-hwaccel qsv  <Need snippet demonstrating this setting> *
>
> I am not able to set *-hwaccel qsv *via program, need code snippet
> demonstrating similar settings (-hwaccel qsv).
>
> --
> Thanks,
> Vivekanand
>


--
Thanks,
Vivekanand
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".