[Libav-user] [MMAL] avcodec_decode_video2 returns 0 but got_frame = 1

Menion menion at gmail.com
Thu Jan 12 00:15:46 EET 2017


The reason is that this is what I have found in the current code (not made
by me). If you believe the deprecated api could be buggy with modern codec,
I will refactor the code and check if it works better.
Thanks

Il 11 Gen 2017 18:40, "Blake Senftner" <bsenftner at earthlink.net> ha scritto:

> Is there a reason you are working with the old API?
>
> Here’s the new API you should be using:
>
>         http://ffmpeg.org/doxygen/trunk/group__lavc__encdec.html
>
> Sincerely,
> -Blake Senftner
> grumpy innovator
>
> > On Jan 11, 2017, at 8:55 AM, Menion <menion at gmail.com> wrote:
> >
> > Hi all
> > I have fixed some issue with the TV Headend interface to libav. I setup
> a mpeg2_mmal and decode input stream with avcodec_decode_video2.
> > There is no error from libav, still avcodec_decode_video2 function
> return 0 that should mean no frame decoded, but got_frame is set to 1 and
> AVFrame *picture parameter also contains valid data.
> > However the output, if sent to the encoder drives it crazy, like it
> contains garbage.
> > The AVCodecContext *avctx is kept to default, excluded the set of the
> input stream width and height.
> > Is there anything else which is required to be initialized for this
> codec?
> > If I use software mpeg2 decoder everything works as expected
> > Bye
> > _______________________________________________
> > Libav-user mailing list
> > Libav-user at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/libav-user
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20170111/15ffdb5f/attachment.html>


More information about the Libav-user mailing list