Mjpeg carrier... how to use? #32
-
Hi. We would like to compress the iCub image streams using the Mjpeg carrier in YARP but are struggling to use this. We will stream the camera output to a remote location and so need to reduce bandwidth usage. Is there an example on how to do this? I have turned on the mjpeg carrier in YARP cmake and have the autocompress on, is there a setting we are missing in the icubmoddev frame grabber? The Mjpeg_test executable I assume only decompresses the stream? I have started using the mjpegstream c++ class, but the include file isn't moved across with the yarp install and I assume I don't need to use this? Ps How do I add labels #Discussion #Software |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments
-
Hello @lukeboorman, the mjpeg_carrier must be compiled in order to work, please check that the The easiest way to use the mjpeg carrier is this on the same pc/network:
Another way to use it, is to connect a stream generated by yarp to an external application
To connect 2 different yarp ports running on different networks, you should be able to do something like this:
Finally the mjpeg carrier allows you to connect to any external mjpeg stream you can reach, you will have to do something like this (to be honest I never tried it and I was not able to do it right now, perhaps @apaikan can add something):
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the info, will give the test_grabber a go today. |
Beta Was this translation helpful? Give feedback.
-
@lukeboorman the instruction provided by @drdanz should work.
Let me know if you encounter any problem. P.S. You can read more on that here : http://apaikan.net/papers/Fitzpatrick14middleway.pdf |
Beta Was this translation helpful? Give feedback.
-
Thanks we have got this working between the icub laptop and another ubuntu pc uisng yarpview.... "yarp connect /icub/cam/left /yarpImgView mjpeg". Reading the paper now... However we are having some issues:
Other comments:
Thanks again for the help |
Beta Was this translation helpful? Give feedback.
-
There are some issues on windows, I managed to get it working, but I don't remember exactly what I had to change, and also it works only in some cases, I will investigate this a little bit more and try to fix it... |
Beta Was this translation helpful? Give feedback.
-
Hi @lukeboorman, |
Beta Was this translation helpful? Give feedback.
-
@lukeboorman any update? |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks all! We got MJPEG stream running and used gateways to send the data over a different network. Much increase in frame rate and we were able to increase the resolution using Mjpeg with bayer, which overcomes some of the visible effects of the compression. I still struggle to run on my windows without running from within the yarp build directory, I think I have all the environment variables set up correctly. |
Beta Was this translation helpful? Give feedback.
-
... hence it should suffice to have |
Beta Was this translation helpful? Give feedback.
Hello @lukeboorman, the mjpeg_carrier must be compiled in order to work, please check that the
ENABLE_yarpcar_mjpeg_carrier
flag is enabled when building yarp on both sides.The easiest way to use the mjpeg carrier is this on the same pc/network:
Another way to use it, is to connect a stream generated by yarp to an external application