I'm transcoding live video from MJPEG to H264 using ffmpeg library in my C/C++
project
Help me figure out how to calculate the pts/dts correctly, using various
av_rescale* functions did not give the correct values and I tried my simple
version, but the number of frames per second is different all the time and of
course these values are approximate
int64_t * pcnt
pPktOut->pos = (*pcnt);
pPktOut->pts = pPktOut->pos * pFmtCtxOut->streams[0]->time_base.den /
pCdcCtxOut->time_base.den;
pPktOut->dts = pPktOut->pts;
(*pcnt)++;
_______________________________________________
Libav-user mailing list
Libav-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/libav-user
To unsubscribe, visit link above, or email
libav-user-requ...@ffmpeg.org with subject "unsubscribe".