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

Support configuration of Image Capture and Video Capture from GCS #161

Open
lbegani opened this issue Apr 18, 2018 · 3 comments

Comments

Projects
None yet
2 participants
@lbegani
Copy link
Member

commented Apr 18, 2018

Support export of Image Capture and Video Capture settings to GCS through camera definition file. At present, CSD only handles parameters to configure camera device. The parameters for image capture or video capture need to be supported by adding handlers in respective classes.

@eeroniemi

This comment has been minimized.

Copy link

commented Jul 13, 2018

This would be really useful feature. I'm not totally sure if plan is that these values could be modified also on [vidcap] section on configuration file - that would be nice.

I'm working on a project where we need to stream video from Intel RealSense r200 over 4G/LTE connection - with default settings the video bandwidth usage is about 100 Mbit/s - way too much to stream over mobile network. When I modified gstreamer width and height parameters directly on the source code (these two lines: https://github.com/Dronecode/camera-manager/blob/master/src/gstreamer_pipeline_builder.cpp#L61-L62) with different values I was able to get good results.

Options I tried:

  • Default values, no change to code. Bandwidth usage: 100 Mbit/s, video resolution 1920 x 1080.
  • width = 960, height = 540. Bandwidth usage: 5 Mbit/s. <- totally usable over LTE
  • width = 1920, height = 1080. Bandwidth usage: 33 Mbit/s. <- this is something I don't really understand. Just by explicitly setting these values to original video resolution the bandwidth usage dropped this dramatically?
@lbegani

This comment has been minimized.

Copy link
Member Author

commented Jul 13, 2018

@eeroniemi For RTSP streaming, you can specify the width and height in the URL, change in source code is not required. For example - rtsp://192.168.8.1:8554/video13?width=960&height=540
Not sure about the drop in BW usage issue, but bitrate of the output video stream is also dependent on the scene and movements in it.

@eeroniemi

This comment has been minimized.

Copy link

commented Jul 13, 2018

@lbegani Thank you for the tip - setting the stream width and height on the URL seems to work without any code changes.

For the bandwidth usage, I had the camera at the same location on each of the tests with nothing dramatically different happening on the video. Not a big issue now when I know about it, but just interesting insight.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.