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

Menion menion at gmail.com
Mon Jan 23 13:01:03 EET 2017


Hi
I have tried to use the new API
I can get decoded frame, but there is a problem wit the dts, this is a log
that print the pts, pkt_pts and pkt_dts of the decoded frame:

2017-01-23 11:55:25.718 [  TRACE]:transcode: 0001: Decoder: available
output frame 0(ts 6, length 0), pts 18000, pkt_pts 180
00, pkt_dts 9223372036854775808

the pts 18000 is correct, but the dts is completely wrong and it is the
same (wrong) for all the following decoded frame. Still the returned lenght
from the avcodec_receive_frame is 0. I suspect that some field may be
missing in the AVContex, I set width, height and framerate

2017-01-11 23:45 GMT+01:00 Blake Senftner <bsenftner at earthlink.net>:

> In general, developer attention is on new APIs, because people like you
> are updating to them. Any bugs you encounter may be fixed in the more
> recent code, and any undiscovered bugs you find would only be fixed in the
> new APIs anyway. It is not time consuming to update; I updated a player
> library in about 3 hours. Just follow the depreciated warnings when
> compiling, and in the header declarations of depreciated functions it
> explains the new API replacing the one you are using.
>
> Sincerely,
> -Blake Senftner
>
> > On Jan 11, 2017, at 2:15 PM, Menion <menion at gmail.com> wrote:
> >
> > 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.
>
> _______________________________________________
> 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/20170123/6b6ddb3a/attachment.html>


More information about the Libav-user mailing list