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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user