<div dir="ltr">Hi,<div><br></div><div>I am encoding a video with svtav1 and mux into a matroska container. I have only a video track with constant 5 fps. I set duration to 1 and pts to the packet index (increment every time a packet is processed), and then do av_packet_rescale_ts from encoder's timebase (1/5) to video stream's timebase (1/1000). </div><div>When doing </div><div>ffprobe -v 0 -show_entries packet=pts,duration -select_streams v output.mkv > probe.txt</div><div>I get a few packets which don't have correct duration on them, for example</div><div>[PACKET]<br>pts=0<br>duration=N/A<br>[/PACKET]<br>[PACKET]<br>pts=200<br>duration=N/A<br>[/PACKET]<br></div><div><br></div><div>Using avi container works perfectly. Does matroska require anything specific to get correct duration values in the leading packets?</div><div><br></div><div>Kind regards,</div><div>Olzhas</div></div>