On Tue, 2010-10-26 at 21:30 +0100, John Gladman wrote: > Hi > > Is there any way I can pick up notifications of encoder progress so I can > show a progress bar (iPhone implementation). > > Thanks
You could probably simply check the DTS:es of the demuxed packets
against the input file's duration and base a progress bar off of that.
Something like:
if(pkt.dts != AV_NOPTS_VALUE)
progress = av_rescale_q(pkt.dts,
s->streams[pkt.stream_index]->time_base, AV_TIME_BASE_Q) /
(float)s->duration; //0.0f to 1.0f
/Tomas
signature.asc
Description: This is a digitally signed message part
_______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
