[Libav-user] Troubles with transcoding

hatred adrozdoff at gmail.com
Fri Nov 23 01:38:27 CET 2012


2012/11/23 Hannes Wuerfel <hannes.wuerfel at student.hpi.uni-potsdam.de>

>  Good job man. This works for perfectly for me.
>

Thanks :-)


> But I discovered the same when transcoding from some codec to another.
> Now there is only one thing different in my code.
> As in the demuxing.c example I'm using something like this after the
> trancoding loop to flush the remaining cached frames:
> /* flush cached frames */
>     pkt.data = NULL;
>     pkt.size = 0;
>     do {
>         decode_packet(&got_frame, 1);
>     } while (got_frame);
>
> Perhaps this could help for your synchronization problem of cached frames?
>

It is not actual for me: I write live transcoding server for our IP cams
and I don't know when EOF will be occured so I newer do packet flush and
trailer write.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20121123/b744efa5/attachment.html>


More information about the Libav-user mailing list