Skip to content
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

properly update settings in rtsp devices #159

Merged
merged 49 commits into from
Aug 27, 2024
Merged

Conversation

NiklasNeugebauer
Copy link
Contributor

@NiklasNeugebauer NiklasNeugebauer commented Jul 26, 2024

Previously, upon changing framerate and jovision profiles, the camera was configured and the gstreamer pipeline was restarted.
However, the new pipeline did not actually make use of the new parameter and used the ones set during initialization of the RtspDevice instance.

This PR should fix this.

It also abstracts the settings interface away, so there will be some conflicts with #160 which should be resolved by asserting only that device is not None

  • Make sure that jovision_profile is always set before anything else

NiklasNeugebauer and others added 30 commits May 8, 2024 11:15
this is necessary for usage without nicegui (for example in tests) since background_task depends on the nicegui core loop
(and make them async in mjpeg_camera)
@NiklasNeugebauer
Copy link
Contributor Author

This should be done but I will have to test it with a real device on Monday

@falkoschindler falkoschindler modified the milestones: 0.12.0, 0.13.0 Jul 29, 2024
@NiklasNeugebauer
Copy link
Contributor Author

This is ready to merge from my side

@falkoschindler falkoschindler marked this pull request as ready for review August 26, 2024 16:10
Copy link
Contributor

@falkoschindler falkoschindler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've added a few comments...

rosys/vision/rtsp_camera/rtsp_camera.py Show resolved Hide resolved
rosys/vision/rtsp_camera/rtsp_camera.py Outdated Show resolved Hide resolved
rosys/vision/rtsp_camera/rtsp_device.py Outdated Show resolved Hide resolved
NiklasNeugebauer and others added 4 commits August 27, 2024 14:13
Co-authored-by: Falko Schindler <falko@zauberzeug.com>
Co-authored-by: Falko Schindler <falko@zauberzeug.com>
@NiklasNeugebauer
Copy link
Contributor Author

ready to merge from my side

@falkoschindler falkoschindler added the enhancement New feature or request label Aug 27, 2024
@falkoschindler falkoschindler merged commit 2894a97 into main Aug 27, 2024
5 checks passed
@falkoschindler falkoschindler deleted the rtsp-camera-fixes branch August 27, 2024 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants