<div dir="ltr"><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">avcodec_decode_video2 is a deprecated function, so the success of usage depends on what version of LibAV you are using.<br>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.</blockquote><br class="gmail-Apple-interchange-newline"></div><div>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?</div><div><br></div><div>Cheers,</div><br clear="all"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Philippe<br></div></div></div></div></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 22, 2020 at 2:18 PM Attila Krüpl <<a href="mailto:krupl.attila@gmail.com">krupl.attila@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>avcodec_decode_video2 is a deprecated function, so the success of usage depends on what version of LibAV you are using.<br></div><div>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.</div><br clear="all"><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr">Best Regards,<div><br></div><div>Attila</div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 22 Jan 2020 at 19:56, Philippe Noël <<a href="mailto:philippe_noel@college.harvard.edu" target="_blank">philippe_noel@college.harvard.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I don't think this is a sufficient test as no hardware decoder has as<br>many features<br>as the libavcodec h264 decoder. Did you test with ffmpeg (the command line<br>interface)?</blockquote><div><br></div><div>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.</div><div><br></div><div>Any ideas what I could be missing in the code above?</div><div><br></div><div>Philippe</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 22, 2020 at 1:23 PM Carl Eugen Hoyos <<a href="mailto:ceffmpeg@gmail.com" target="_blank">ceffmpeg@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Am Mi., 22. Jan. 2020 um 18:16 Uhr schrieb Philippe Noël<br>
<<a href="mailto:philippe_noel@college.harvard.edu" target="_blank">philippe_noel@college.harvard.edu</a>>:<br>
<br>
> I know that my packets are encoded correctly, because the decoding works<br>
> well when I just use AV_CODEC_ID_H264.<br>
<br>
I don't think this is a sufficient test as no hardware decoder has as<br>
many features<br>
as the libavcodec h264 decoder. Did you test with ffmpeg (the command line<br>
interface)?<br>
<br>
Carl Eugen<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".</blockquote></div>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".</blockquote></div>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="https://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">https://ffmpeg.org/mailman/listinfo/libav-user</a><br>
<br>
To unsubscribe, visit link above, or email<br>
<a href="mailto:libav-user-request@ffmpeg.org" target="_blank">libav-user-request@ffmpeg.org</a> with subject "unsubscribe".</blockquote></div>