mirror of
https://github.com/home-assistant/core.git
synced 2026-09-26 17:31:15 -04:00
Set output timescale to input timescale (#39946)
This commit is contained in:
committed by
Paulus Schoutsen
parent
30f9e1b479
commit
5697f4b4e7
@@ -25,7 +25,10 @@ def create_stream_buffer(stream_output, video_stream, audio_stream, sequence):
|
||||
segment,
|
||||
mode="w",
|
||||
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)
|
||||
# Check if audio is requested
|
||||
|
||||
Reference in New Issue
Block a user