Question about packet duration

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Question about packet duration

Jörg Beckmann
I have a question about packet duration and stream time bases

FFmpeg documentation says:

typedef struct AVPacket<> {
   * Duration of this packet in AVStream->time_base units, 0 if unknown.
   * Equals next_pts - this_pts in presentation order.
  int64_t duration<>;

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?

ffmpeg-user mailing list
[hidden email]

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".