Re: [FFmpeg-devel] null metadata for the first decoded video frame

2018-05-22 Thread Alexander Ivash
2018-05-21 21:02 GMT+03:00 Aman Gupta : > On Mon, May 21, 2018 at 10:29 AM Alexander Ivash wrote: > >> I'm not injecting metadata, but reading it! Here: >> >> https://github.com/ElderOrb/qctools/blob/master/Source/Core/VideoStats.cpp#L287 >> This function is being called for every frame. The issue

Re: [FFmpeg-devel] null metadata for the first decoded video frame

2018-05-21 Thread Aman Gupta
On Mon, May 21, 2018 at 10:29 AM Alexander Ivash wrote: > I'm not injecting metadata, but reading it! Here: > > https://github.com/ElderOrb/qctools/blob/master/Source/Core/VideoStats.cpp#L287 > This function is being called for every frame. The issue is that the > first frame returns null. If y

Re: [FFmpeg-devel] null metadata for the first decoded video frame

2018-05-21 Thread Alexander Ivash
I'm not injecting metadata, but reading it! Here: https://github.com/ElderOrb/qctools/blob/master/Source/Core/VideoStats.cpp#L287 This function is being called for every frame. The issue is that the first frame returns null. 2018-05-21 19:35 GMT+03:00 Paul B Mahol : > On 5/21/18, Alexander Ivash

Re: [FFmpeg-devel] null metadata for the first decoded video frame

2018-05-21 Thread Paul B Mahol
On 5/21/18, Alexander Ivash wrote: > What could be the reason for such a behavior besides using deprecated > 'avcodec_decode_video2' ? I've also tried to experiment a bit with new > API (avcodec_send_packet/avcodec_receive_frame) but this time got no > metadata even for second frame (the code is h