-
-
Notifications
You must be signed in to change notification settings - Fork 35k
Add support for stream orientation in go2rtc #148832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Hey there @home-assistant/core, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
Hey there @home-assistant/core, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds support for stream orientation transformations in the go2rtc integration by implementing FFmpeg video filters based on user-configured camera orientation settings. Since WebRTC and other go2rtc functionalities don't support metadata-based orientation, the solution applies orientation transforms at the stream level using FFmpeg filters.
Key changes:
- Added helper function for retrieving dynamic camera stream settings across integrations
- Implemented orientation-specific FFmpeg filter application in go2rtc WebRTC provider
- Added comprehensive test coverage for all orientation transformations
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
File | Description |
---|---|
homeassistant/components/camera/helper.py |
Added get_dynamic_camera_stream_settings helper function for cross-integration access |
homeassistant/components/camera/__init__.py |
Refactored to use the new helper function instead of direct data access |
homeassistant/components/go2rtc/__init__.py |
Implemented orientation transformation logic using FFmpeg filters in the WebRTC provider |
tests/components/camera/test_helper.py |
Added comprehensive tests for the new helper function |
tests/components/go2rtc/test_init.py |
Added extensive test coverage for orientation handling in both WebRTC and image retrieval scenarios |
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
Test failure unrelated |
Breaking change
Proposed change
Add support for stream orientation in go2rtc. Cannot use metadata like the stream integration does, as WebRTC and other go2rtc functionality do not support this.
Therefore added a warning in the description text (frontend) so the user is informed
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
.To help with the load of incoming pull requests: