Hi,

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).
When doing
ffprobe -v 0 -show_entries packet=pts,duration -select_streams v output.mkv
> probe.txt
I get a few packets which don't have correct duration on them, for example
[PACKET]
pts=0
duration=N/A
[/PACKET]
[PACKET]
pts=200
duration=N/A
[/PACKET]

Using avi container works perfectly. Does matroska require anything
specific to get correct duration values in the leading packets?

Kind regards,
Olzhas
_______________________________________________
Libav-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/libav-user

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

Reply via email to