ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

audio stream for a web site

asked 2017-05-26 10:50:40 -0600

Álvaro gravatar image

updated 2017-05-27 02:33:52 -0600

gvdhoorn gravatar image

Hi, I'm looking for a nice way to stream the audio collected from the robot mics to a web interface. Is any one aware of a ROS project which already provides that kind of functionality? Something similar to the mjpegcanvasjs in the Robot Web Tool but with audio data. Image+audio would work too. Thanks.


Edit: Thanks luketheduke! you are right, more details might help to better understand the problem: we want to develop a web-based remote interface for controlling a robot. The operator will be sit in front a computer far from the robot (even in a different network) and he/she should be able command the robot, and to see and to hear what the robot sees and hears. The robot runs ROS indigo and Ubuntu 14.04.

ffmpeg looks like an option but I have some doubts: 1. Ideally we'd like to stop and start the streaming of audio and video on demand. Using ffmpeg, we'll have it running endlessly and I'm concerned about the required resources. 2. Besides, we'll use a web-based interface (html) so right now I'm not sure if the audio streaming provided by ffmpeg can be played through a web. Any comments??

The idea is to end up with a ROS package that could be deployed in any robot to stream audio.

Thanks!

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2017-05-27 02:32:22 -0600

ChriMo gravatar image

What about this ?

http://wiki.ros.org/webrtc_ros

WebRTC is used for simple Audio/Video communication between peers using a browser.

Just an idea, using standards.

edit flag offensive delete link more
0

answered 2017-05-26 15:37:39 -0600

luketheduke gravatar image

It's difficult to determine which software will fit your needs because we don't know what interfaces you have on your robot and the specifics of what you want to do. In general, on Linux/Ubuntu, FFMPEG would be my choice for audio streaming. You can check their page below for specifics on how to do it. https://trac.ffmpeg.org/wiki/Streamin... Hope this helps! L

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-05-26 10:48:50 -0600

Seen: 800 times

Last updated: May 27 '17