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 < [email protected]> 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 <[email protected]> > wrote: > >> Am Mi., 22. Jan. 2020 um 18:16 Uhr schrieb Philippe Noël >> <[email protected]>: >> >> > 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 >> [email protected] >> https://ffmpeg.org/mailman/listinfo/libav-user >> >> To unsubscribe, visit link above, or email >> [email protected] with subject "unsubscribe". > > _______________________________________________ > Libav-user mailing list > [email protected] > https://ffmpeg.org/mailman/listinfo/libav-user > > To unsubscribe, visit link above, or email > [email protected] with subject "unsubscribe".
_______________________________________________ Libav-user mailing list [email protected] https://ffmpeg.org/mailman/listinfo/libav-user To unsubscribe, visit link above, or email [email protected] with subject "unsubscribe".
