mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 12:15:08 +02:00
Set output timescale to input timescale (#39946)
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user