Robotics StackExchange | Archived questions

How to stream CompressImage data as mjpeg

Are there any packages for streaming CompressedImage data as mjpeg over http?

I've found mjpeg_server and webvideoserver, and while these support output as mjpeg, they only accept raw uncompressed image data as input.

My project is running on a Raspberry Pi, so computing resources are limited. I'm using raspicam to stream image data. It supports both raw and compressed output. However, the raw node consumes 180% CPU whereas the compressed node consumes...9%, so you can imagine why I'd like to use the compressed stream.

Asked by Cerin on 2016-03-17 23:44:27 UTC

Comments

Answers

I believe web_video_server does support compressed images. Source code for the class here: https://github.com/RobotWebTools/web_video_server/blob/develop/src/ros_compressed_streamer.cpp

Asked by rtoris288 on 2016-03-20 18:52:02 UTC

Comments

how do I use in a web page? I can sometimes get the video tag to work but only with certain cameras and I am not sure why. What is the best source of documentation for web_video_server?

Asked by jarnagtr on 2016-04-25 15:07:22 UTC

Comments