diff --git a/homeassistant/components/generic/manifest.json b/homeassistant/components/generic/manifest.json index ec69e74bc215..e59a2e4217cd 100644 --- a/homeassistant/components/generic/manifest.json +++ b/homeassistant/components/generic/manifest.json @@ -7,5 +7,5 @@ "documentation": "https://www.home-assistant.io/integrations/generic", "integration_type": "device", "iot_class": "local_push", - "requirements": ["av==17.0.1", "Pillow==12.3.0"] + "requirements": ["av==19.0.0", "Pillow==12.3.0"] } diff --git a/homeassistant/components/stream/manifest.json b/homeassistant/components/stream/manifest.json index b9cc560699d4..c634850be8c0 100644 --- a/homeassistant/components/stream/manifest.json +++ b/homeassistant/components/stream/manifest.json @@ -7,5 +7,5 @@ "integration_type": "system", "iot_class": "local_push", "quality_scale": "internal", - "requirements": ["PyTurboJPEG==1.8.3", "av==17.0.1", "numpy==2.3.2"] + "requirements": ["PyTurboJPEG==1.8.3", "av==19.0.0", "numpy==2.3.2"] } diff --git a/homeassistant/components/stream/recorder.py b/homeassistant/components/stream/recorder.py index b88f0cab5932..e47c031d9839 100644 --- a/homeassistant/components/stream/recorder.py +++ b/homeassistant/components/stream/recorder.py @@ -110,7 +110,7 @@ class RecorderOutput(StreamOutput): # Create output on first segment if not output: container_options: dict[str, str] = { - "video_track_timescale": str(int(1 / source_v.time_base)), # type: ignore[operator] + "video_track_timescale": str(int(1 / source_v.time_base)), "movflags": "frag_keyframe+empty_moov", "min_frag_duration": str(self.stream_settings.min_segment_duration), } @@ -133,12 +133,12 @@ class RecorderOutput(StreamOutput): last_stream_id = segment.stream_id pts_adjuster["video"] = int( (running_duration - source.start_time) - / (av.time_base * source_v.time_base) # type: ignore[operator] + / (av.time_base * source_v.time_base) ) if source_a: pts_adjuster["audio"] = int( (running_duration - source.start_time) - / (av.time_base * source_a.time_base) # type: ignore[operator] + / (av.time_base * source_a.time_base) ) # Remux video diff --git a/homeassistant/components/stream/worker.py b/homeassistant/components/stream/worker.py index 2236756d6f86..6b555fa2a958 100644 --- a/homeassistant/components/stream/worker.py +++ b/homeassistant/components/stream/worker.py @@ -197,7 +197,7 @@ class StreamMuxer: # in test_durations "avoid_negative_ts": "make_non_negative", "fragment_index": str(sequence + 1), - "video_track_timescale": str(int(1 / input_vstream.time_base)), # type: ignore[operator] + "video_track_timescale": str(int(1 / input_vstream.time_base)), # Only do extra fragmenting if we are using ll_hls # Let ffmpeg do the work using frag_duration # Fragment durations may exceed the 15% allowed variance but it seems ok @@ -669,8 +669,8 @@ def stream_worker( stream_state.diagnostics.set_value("audio_codec", audio_stream.name) dts_validator = TimestampValidator( - int(1 / video_stream.time_base), # type: ignore[operator] - int(1 / audio_stream.time_base) if audio_stream else 1, # type: ignore[operator] + int(1 / video_stream.time_base), + int(1 / audio_stream.time_base) if audio_stream else 1, ) unvalidated_packets = PeekIterator(container.demux((video_stream, audio_stream))) container_packets = PeekIterator( diff --git a/homeassistant/package_constraints.txt b/homeassistant/package_constraints.txt index 22c3d7a57154..c00474ccda97 100644 --- a/homeassistant/package_constraints.txt +++ b/homeassistant/package_constraints.txt @@ -17,7 +17,7 @@ async-upnp-client==0.48.2 atomicwrites-homeassistant==1.4.1 attrs==26.1.0 audioop-lts==0.2.2 -av==17.0.1 +av==19.0.0 awesomeversion==25.8.0 bcrypt==5.0.0 bleak-retry-connector==4.7.1 diff --git a/requirements_all.txt b/requirements_all.txt index 673c34b575a1..c5a3de0d6492 100644 --- a/requirements_all.txt +++ b/requirements_all.txt @@ -625,7 +625,7 @@ autoskope_client==1.4.1 # homeassistant.components.generic # homeassistant.components.stream -av==17.0.1 +av==19.0.0 # homeassistant.components.avea avea==1.8.0