Repository navigation
Replies: 1 comment
|
This is version-dependent: the current For a release where it remains unset, assigning it before writing, as you did, is a reasonable explicit initialization. However, the muxer can choose a different stream time base when the output header is written. Inspect the value after For remuxing, keep each input packet's existing timestamp scale, assign its output stream, and let out_stream = out_container.add_stream_from_template(video_stream)
out_stream.time_base = video_stream.time_base
for packet in in_container.demux(video_stream):
if packet.dts is None:
continue
packet.stream = out_stream
out_container.mux(packet)Don't simply label existing numeric PTS/DTS with a new time base: that would change their meaning. Current |
Uh oh!
There was an error while loading. Please reload this page.
Reusing the input stream as a template for the output stream does not seem to copy the time base of the input stream to the output stream as a base
Output log
All reactions