1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Add H.265 support to stream component (#38125)

* Add H.265 support to stream component

* Change find_box to generator

* Move fmp4 utilities to fmp4utils.py

* Add minimum segments and segment durations

* Remove MIN_SEGMENTS

* Fix when container_options is None

* Fix missing num_segments and update tests

* Remove unnecessary mock attribute

* Fix Segment construction in test_recorder_save

* fix recorder with lookback

Co-authored-by: Jason Hunter <hunterjm@gmail.com>
This commit is contained in:
uvjustin
2020-08-12 05:12:41 +08:00
committed by GitHub
parent d0a59e28ac
commit 5355fcaba8
11 changed files with 169 additions and 51 deletions

View File

@@ -20,7 +20,7 @@ def generate_h264_video():
total_frames = duration * fps
output = io.BytesIO()
output.name = "test.ts"
output.name = "test.mp4"
container = av.open(output, mode="w")
stream = container.add_stream("libx264", rate=fps)