Skip to content

Commit

Permalink
Use av.VideoStream
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p committed Nov 2, 2024
1 parent 19ae44e commit dd7a41a
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions homeassistant/components/stream/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import av.audio
import av.container
import av.stream
import av.video

from homeassistant.core import HomeAssistant
from homeassistant.util import dt as dt_util
Expand Down Expand Up @@ -130,7 +129,7 @@ class StreamMuxer:
_segment_start_dts: int
_memory_file: BytesIO
_av_output: av.container.OutputContainer
_output_video_stream: av.video.VideoStream
_output_video_stream: av.VideoStream
_output_audio_stream: av.audio.AudioStream | None
_segment: Segment | None
# the following 2 member variables are used for Part formation
Expand All @@ -140,7 +139,7 @@ class StreamMuxer:
def __init__(
self,
hass: HomeAssistant,
video_stream: av.video.VideoStream,
video_stream: av.VideoStream,
audio_stream: av.audio.AudioStream | None,
audio_bsf: str | None,
stream_state: StreamState,
Expand All @@ -161,11 +160,11 @@ def make_new_av(
self,
memory_file: BytesIO,
sequence: int,
input_vstream: av.video.VideoStream,
input_vstream: av.VideoStream,
input_astream: av.audio.AudioStream | None,
) -> tuple[
av.container.OutputContainer,
av.video.VideoStream,
av.VideoStream,
av.audio.AudioStream | None,
]:
"""Make a new av OutputContainer and add output streams."""
Expand Down

0 comments on commit dd7a41a

Please sign in to comment.