[FFmpeg-user] Question about packet duration
Jörg Beckmann
Joerg.Beckmann at scisys.de
Thu Nov 29 11:07:53 EET 2018
I have a question about packet duration and stream time bases
FFmpeg documentation says:
typedef struct AVPacket<https://www.ffmpeg.org/doxygen/trunk/structAVPacket.html> {
[...]
/**
* Duration of this packet in AVStream->time_base units, 0 if unknown.
* Equals next_pts - this_pts in presentation order.
*/
int64_t duration<https://www.ffmpeg.org/doxygen/trunk/structAVPacket.html#a622e758be29fd500aed0ffdc069550f7>;
[...]
}
For MP3 streams, I get packets with duration = 1152 and the stream's time_base = 1 / 14112000. For me, it seems that the duration relates to the sample rate and not to the time base. Am I wrong?
Cheers,
Jörg
More information about the ffmpeg-user
mailing list