2012/11/23 Hannes Wuerfel <span dir="ltr"><<a href="mailto:hannes.wuerfel@student.hpi.uni-potsdam.de" target="_blank">hannes.wuerfel@student.hpi.uni-potsdam.de</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div>Good job man. This works for perfectly for me.</div></div></blockquote><div><br></div><div>Thanks :-)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div> But I discovered the
same when transcoding from some codec to another.<br></div>
Now there is only one thing different in my code.<br>
As in the demuxing.c example I'm using something like this after the
trancoding loop to flush the remaining cached frames:<br>
/* flush cached frames */<br>
pkt.data = NULL;<br>
pkt.size = 0;<br>
do {<br>
decode_packet(&got_frame, 1);<br>
} while (got_frame);<br>
<br>
Perhaps this could help for your synchronization problem of cached
frames?<br>
</div>
</blockquote><div><br></div><div>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.<br></div>