Re: [Libav-user] Trouble Decoding with h264_qsv

2020-01-22 Thread Attila Krüpl
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

Re: [Libav-user] Trouble Decoding with h264_qsv

2020-01-22 Thread Philippe Noël
> > 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

Re: [Libav-user] Trouble Decoding with h264_qsv

2020-01-22 Thread Carl Eugen Hoyos
Am Mi., 22. Jan. 2020 um 18:16 Uhr schrieb Philippe Noël : > 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 yo

[Libav-user] Trouble Decoding with h264_qsv

2020-01-22 Thread Philippe Noël
Hello, I am trying to decode H264 video packets into AVFrames using Intel QSV. I am following these examples (1) (2), but the avcodec_decode_video2() function always outputs a value of 0 (unsuccessful decode). Below is my decode function: --

[Libav-user] Second frame of video stream in mp4 file is duplicate of first frame

2020-01-22 Thread Handida Trome
I am making video mp4 file from couple of jpg image files with different sizes present as sample< number >.jpg (sample1.jpg, sample2.jpg, etc) in a folder. I modified ffmpeg muxing.c example to make it create mp4 file from these set of jpg