Set output timescale to input timescale (#39946)
This commit is contained in:
parent
062ac5f27d
commit
9b29d09d45
1 changed files with 4 additions and 1 deletions
|
@ -25,7 +25,10 @@ def create_stream_buffer(stream_output, video_stream, audio_stream, sequence):
|
||||||
segment,
|
segment,
|
||||||
mode="w",
|
mode="w",
|
||||||
format=stream_output.format,
|
format=stream_output.format,
|
||||||
container_options=container_options,
|
container_options={
|
||||||
|
"video_track_timescale": str(int(1 / video_stream.time_base)),
|
||||||
|
**container_options,
|
||||||
|
},
|
||||||
)
|
)
|
||||||
vstream = output.add_stream(template=video_stream)
|
vstream = output.add_stream(template=video_stream)
|
||||||
# Check if audio is requested
|
# Check if audio is requested
|
||||||
|
|
Loading…
Add table
Reference in a new issue