LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   mjpg-streamer video format on a raspberry pi (https://www.linuxquestions.org/questions/slackware-arm-108/mjpg-streamer-video-format-on-a-raspberry-pi-4175540101/)

justwantin 04-18-2015 05:52 PM

mjpg-streamer video format on a raspberry pi
 
I could use a heads up.

I have recently installed current on a R'Pi B Rev-1, updated with rpi-update and built mjpg-streamer from slackbuilds. When using a Logitech C300 I am only able to stream in YUYV format. I then installed 14.1 and the same thing

I have the same setup on a B Rev-2 Pi in my garden shed with another C300 webcam put together/built/updated last Nov that does stream MJPEG video. If I take the card out of the shed Pi and put it in the Pi on on my workbench it streams MPEG. Swap over cameras in the shed and I stream MJPEG. Built mjpg-streamer on Slack current and Salix 14.1 and streamed MJPEG with both webcams on both systems.

I am thinking that this failure to stream MJPEG video is due to the kernel/modules installed with rpi-update. Does that make sense?

Garden shed:
Code:

Linux shed-1 3.12.32+ #721 PREEMPT Fri Nov 7 16:50:31 GMT 2014 armv6l BCM2708 GNU/Linux
Work bench:
Code:

Linux shed-5 3.18.11+ #777 PREEMPT Sat Apr 11 17:24:23 BST 2015 armv6l BCM2708 GNU/Linux

sijongmu 04-20-2015 12:10 PM

hi justwantin!

as like you, i installed mjpg-streamer and logitec webcam c920 in the raspberry pi 2 but i could not see
the raspberry stream video through the web(http://port id:8080).

my command script was same with others and pls refer it asf:

~/mjpg-streamer$./mjpg_streamer -i "./input_uvc.so -d /dev/video0 -r 640x480 -f 15 -n" -o "./output_http.so -p 8080 -w ./www"

when i push enter button after writing above command in the raspberry pi, there is no video in the web. i tested many times
but it showed same result continously.

but if i insert -y in the command script,

~/mjpg-streamer$./mjpg_streamer -i "./input_uvc.so -d /dev/video0 -r 640x480 -f 15 -y -n" -o "./output_http.so -p 8080 -w ./www"

i can see the picture and video streaming in the web but format was marked as YUV not mjpg
and it happened 1 second latency by using YUV format.

so would you tell me how you can succeed to play mjpg streamer and what is the command script in detail?

also i can't understand easily about your comment as followings.

"If I take the card out of the shed Pi and put it in the Pi on on my workbench it streams MPEG. Swap over cameras in the shed
and I stream MJPEG. Built mjpg-streamer on Slack current and Salix 14.1 and streamed MJPEG with both webcams on both systems"

i will appreciate your advice heartily.
(my email adress is sijongmu@gmail.com)

b.rgds/sijongmu

justwantin 04-21-2015 01:57 PM

This seems to be a problem with the recent rpi-update kernel and/or modules. I copied the kernel and modules in from my garden shed pi (kernel 3.12.13) and can stream mjpg on the p in my shop now. I have to go to work now so can't write too much. However if you look in your most recent /boot you will see that there is a directory called overlays. This is something new. Check out the README in there and you will see things are changing with how they are handling hardware, also there are the beginnings of system d creeping in. This may have something to do with it, dunno, I was told once on the raspberry pi list when when I had trouble getting a pi cam working that they were developing for raspbian and not interested whether or not things worked on other distros. Wankers? Might be time to start rolling my own kernel to get just what I want but no time now.

justwantin 01-30-2016 06:36 AM

yeah.... I know the thread is almost 10 months old but I have sorted out my problem with mjpg-streamer only providing streams in YUV format.

Apparently there was a bug fix in kernel 3.16 that broke mjpg-streamer: https://github.com/OpenROV/openrov-software/issues/461

There are some patches floating around that fix the problem, however, I have found a maintained source for a fork of mjpeg-streamer on github that compiled on a bananapro running current without a problem and streams in MJPG format/resolutions. Edit the Makefile to change DESTDIR or everything goes in /usr/local.

https://github.com/oliv3r/mjpg-streamer/


All times are GMT -5. The time now is 04:37 AM.