LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 04-18-2015, 05:52 PM   #1
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 878

Rep: Reputation: 120Reputation: 120
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

Last edited by justwantin; 04-18-2015 at 07:02 PM. Reason: tyop
 
Old 04-20-2015, 12:10 PM   #2
sijongmu
LQ Newbie
 
Registered: Nov 2013
Posts: 3

Rep: Reputation: Disabled
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
 
Old 04-21-2015, 01:57 PM   #3
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 878

Original Poster
Rep: Reputation: 120Reputation: 120
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.

Last edited by justwantin; 04-21-2015 at 01:59 PM. Reason: tyop
 
Old 01-30-2016, 06:36 AM   #4
justwantin
Member
 
Registered: Aug 2003
Location: Melbourne, Australia
Distribution: Slackware, Slackwarearm
Posts: 878

Original Poster
Rep: Reputation: 120Reputation: 120
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/

Last edited by justwantin; 01-30-2016 at 06:38 AM. Reason: tyop
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] mjpg-streamer installation issue b-neva Linux - Software 2 09-10-2012 04:06 AM
[SOLVED] Mjpg-Streamer and newer kernels unkajim Linux - Software 1 10-28-2011 01:02 PM
Best video format for YouTube upload and can Recordmydesktop output that format? linus72 Linux - Software 6 12-21-2009 03:53 PM
Many video format (such as video/x-ms-asf and video/x-ms-wvx ) does not play? jmettova Debian 1 05-05-2009 11:22 AM
LXer: From camera to website: Building an open source video streamer LXer Syndicated Linux News 0 04-25-2008 02:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 07:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration