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:
uvjustinandJason Hunter authored and GitHub committed 2020-08-11 17:12:41 -04:00
1 parent d0a59e28ac
commit 5355fcaba8
11 files changed
+169 -51

No files matched your search

+1 -1
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)