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<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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

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