Hi,
I encoded a file .avi to .flv and work OK, pkt.pts is 33, 67, 100, 133.....
But when I try to re-encode a .flv to .flv , pkt.pts is 1,2,3,4,5 and the
disply is very fast.
The portion os code is :
res = avcodec_encode_video(c, pkt.data, pkt.size, frame);
if (c->coded_frame->pts != AV_NOPTS_VALUE) {
pkt.pts = av_rescale_q(c->coded_frame->pts, c->time_base,
ctx->streams[0]->time_base);
}
Can some helpme to set correct pts on .flv?
Thanks.
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user