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

Aman Gupta ffmpeg at tmm1.net
Mon May 21 21:02:25 EEST 2018


On Mon, May 21, 2018 at 10:29 AM Alexander Ivash <elderorb at gmail.com> 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 you're talking about cropdetect metadata then it's because of this:
https://github.com/FFmpeg/FFmpeg/blob/master/libavfilter/vf_cropdetect.c#L170


>
> 2018-05-21 19:35 GMT+03:00 Paul B Mahol <onemda at gmail.com>:
> > On 5/21/18, Alexander Ivash <elderorb at gmail.com> 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 here:
> >>
> https://github.com/ElderOrb/qctools/commit/aa521aac9d147f380f5d7e2716fb3410e7c5613c
> ).
> >> What I'm doing wrong?
> >
> > You are injecting metadata where exactly?
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


More information about the ffmpeg-devel mailing list