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
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to