[Libav-user] Trouble Decoding with h264_qsv
Philippe Noël
philippe_noel at college.harvard.edu
Sat Jan 25 00:00:36 EET 2020
>
> avcodec_decode_video2 is a deprecated function, so the success of usage
> depends on what version of LibAV you are using.
> If decoding is not working for you it might be worth to turn on logging
> with av_log_set_level(AV_LOG_TRACE) and add an own logger callback so you
> can define the output with av_log_set_callback(). Once you receive error
> codes it's much simpler to configure the codec, because you can see what
> the mistake is.
Thanks for the tip, I logged the error. The error I get is "Decoder: output
is system memory surface" and I can't seem to find anything regarding this
online. I verified and my CPU is supported (it is an i5-7200U). Any idea
what the problem is, or where I could find more information on this
specific error?
Cheers,
Philippe
On Wed, Jan 22, 2020 at 2:18 PM Attila Krüpl <krupl.attila at gmail.com> wrote:
> avcodec_decode_video2 is a deprecated function, so the success of usage
> depends on what version of LibAV you are using.
> If decoding is not working for you it might be worth to turn on logging
> with av_log_set_level(AV_LOG_TRACE) and add an own logger callback so you
> can define the output with av_log_set_callback(). Once you receive error
> codes it's much simpler to configure the codec, because you can see what
> the mistake is.
>
> Best Regards,
>
> Attila
>
>
> On Wed, 22 Jan 2020 at 19:56, Philippe Noël <
> philippe_noel at college.harvard.edu> wrote:
>
>> I don't think this is a sufficient test as no hardware decoder has as
>>> many features
>>> as the libavcodec h264 decoder. Did you test with ffmpeg (the command
>>> line
>>> interface)?
>>
>>
>> Yes sorry, I have tested with ffmpeg cmd line and it works fine, so I'm
>> fairly sure there's something I'm missing in the C code using libav. Not
>> sure if that changes anything, but I am encoding with Nvenc and trying to
>> decode with QSV.
>>
>> Any ideas what I could be missing in the code above?
>>
>> Philippe
>>
>> On Wed, Jan 22, 2020 at 1:23 PM Carl Eugen Hoyos <ceffmpeg at gmail.com>
>> wrote:
>>
>>> Am Mi., 22. Jan. 2020 um 18:16 Uhr schrieb Philippe Noël
>>> <philippe_noel at college.harvard.edu>:
>>>
>>> > I know that my packets are encoded correctly, because the decoding
>>> works
>>> > well when I just use AV_CODEC_ID_H264.
>>>
>>> I don't think this is a sufficient test as no hardware decoder has as
>>> many features
>>> as the libavcodec h264 decoder. Did you test with ffmpeg (the command
>>> line
>>> interface)?
>>>
>>> Carl Eugen
>>> _______________________________________________
>>> Libav-user mailing list
>>> Libav-user at ffmpeg.org
>>> https://ffmpeg.org/mailman/listinfo/libav-user
>>>
>>> To unsubscribe, visit link above, or email
>>> libav-user-request at ffmpeg.org with subject "unsubscribe".
>>
>> _______________________________________________
>> Libav-user mailing list
>> Libav-user at ffmpeg.org
>> https://ffmpeg.org/mailman/listinfo/libav-user
>>
>> To unsubscribe, visit link above, or email
>> libav-user-request at ffmpeg.org with subject "unsubscribe".
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/libav-user
>
> To unsubscribe, visit link above, or email
> libav-user-request at ffmpeg.org with subject "unsubscribe".
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20200124/e254cc5c/attachment.html>
More information about the Libav-user
mailing list