Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

gstreamer not working #848

Open
hardikrshah007 opened this issue Aug 6, 2019 · 5 comments
Open

gstreamer not working #848

hardikrshah007 opened this issue Aug 6, 2019 · 5 comments

Comments

@hardikrshah007
Copy link

I tried installing Gstreamer using the below commands but it still doesn't work me. I want to get video stream from Gazebo inside QGroundControl .

list=$(apt-cache --names-only search ^gstreamer1.0-* | awk '{ print $1 }' | grep -v gstreamer1.0-hybris)
-> sudo apt-get install $list

I tried this step and it doesnt work for me on Ubuntu 18.04. Below is the error
The following packages have unmet dependencies:
gstreamer1.0-python3-dbg-plugin-loader : Conflicts: gstreamer1.0-python3-plugin-loader but 1.14.5-0ubuntu118.04.1 is to be installed
gstreamer1.0-python3-plugin-loader : Conflicts: gstreamer1.0-python3-dbg-plugin-loader but 1.14.5-0ubuntu118.04.1 is to be installed
E: Unable to correct problems, you have held broken packages.

Please if someone has found a solution or tried on Ubuntu 18.04

@hamishwillee
Copy link
Collaborator

Can you confirm how you installed Gazebo (ie which instructions you followed), what version of PX4.

Did you follow these instructions to set up video?: https://dev.px4.io/master/en/simulation/gazebo.html#video-streaming

@hardikrshah007
Copy link
Author

I installed ROS-melodic on Ubuntu 18.04 ( so Gazebo 9 is installed by default).
For PX4, I am using the latest build from github. Yes, I followed the instructions in the link you mentioned and everything else works except the camera plugin.

@hamishwillee
Copy link
Collaborator

@lbegani Can you advise on this one?

@lbegani
Copy link
Contributor

lbegani commented Aug 9, 2019

@lbegani Can you advise on this one?

I have not installed gstreamer on Ubuntu18.04 (yet). Instead of trying to install all the gstreamer packages using the automated command, you can selectively install what is required for video streaming use case. For example -

$ sudo apt-get install gstreamer-1.0
$ sudo apt-get install libgstreamer-plugins-base1.0-dev
$ sudo apt-get install libgstrtspserver-1.0-dev  

There will be few more, I do not have the full list handy.

@hardikrshah007
Copy link
Author

@lbegani @hamishwillee
Selectively installing gstreamer worked for me. However, the next issue I am facing is that there is no
libgazebo_video_stream_widget plugin in gazebo 9 and hence, the video fails again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants