Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YUV USB webcam doesn't work on 0.6 #14

Closed
Maundy opened this issue Sep 21, 2013 · 9 comments
Closed

YUV USB webcam doesn't work on 0.6 #14

Maundy opened this issue Sep 21, 2013 · 9 comments

Comments

@Maundy
Copy link

Maundy commented Sep 21, 2013

I have finally got round to copying the error code that appears when the webcam is plugged in on bootup on 0.6:

camera: auto
usb options: -d 100
/mpeg-streamer /
Running ./mpeg-streamer -o output_http.so -w ./www -i input_uvc.so -r 640x480 -f 10
i: Frames Per Second.: 10
i: Format............: JPEG
i: TV-Norm............: DEFAULT
Unable to set format: 1196444237 res: 640x480
Init v4L2 failed !! exit fatal
i: init_VideoIn failed
/

I hope this helps

@guysoft
Copy link
Owner

guysoft commented Sep 21, 2013

Ok accorting to this fourm post this happends because the camera does not support mjpg protocol. So you need to switch it to YUV.
You have to do this by adding -y after input_uvc.so in /home/pi/scripts/webcamDaemon

Locate this line in /home/pi/scripts/webcamDaemon:
echo Running ./mjpg_streamer -o "output_http.so -w ./www" -i "$input"
And change it to:
echo Running ./mjpg_streamer -o "output_http.so -w ./www" -i "$input" -y

Tell me if that solves the problem.
I guess we should also add an option for that in the webcamDaemon script.

@Maundy
Copy link
Author

Maundy commented Sep 21, 2013

Ok, thanks, I'll give that a go and tell you if it solves the problem.

@guysoft
Copy link
Owner

guysoft commented Sep 24, 2013

Any luck?

@Maundy
Copy link
Author

Maundy commented Sep 24, 2013

Unfortunately not...
the error code is pretty similar: see the attatched picture
photo 5

@guysoft
Copy link
Owner

guysoft commented Sep 25, 2013

Hey,
It looks like its not accepting the configuration. because it should say Format............: YUV, but it says JPEG.
Try changing :
MJPGSTREAMER_INPUT_USB="input_uvc.so"
to this:
MJPGSTREAMER_INPUT_USB="input_uvc.so -y"
Also make sure your reverted your last change.

If this fail please provide the output lf lsusb, that might help me locate other issues.

@Maundy
Copy link
Author

Maundy commented Sep 25, 2013

This seems to have changed the format to YUV however there is now a new error and accessing the octopi.local remotely is now very unreliable.
image 3

@Maundy
Copy link
Author

Maundy commented Sep 25, 2013

The webcam streaming defiantly worked on the 0.5 version, has the mpegstreamer been changed in any way between 0.5 and 0.6?

@guysoft
Copy link
Owner

guysoft commented Sep 25, 2013

  1. In answer to your question - from 0.5 to 0.6 we changed to a different version of mjgpg streamer that supports the Raspberry Pi camera as well as webcams. However its very unlikely that that change alone is causing what you are seeing.
  2. Can you please give me the output of lsusb as I asked above? Knowing what camera you have might help. Also the error you are getting now is no such device. Perhaps there is a connection problem with the camera, are you SURE 100% you have a good power supply? 1A minimum, make sure its a good quality one (not a cheap one from ebay).

@Maundy
Copy link
Author

Maundy commented Sep 25, 2013

I have swapped power supply and it is now working!!! I also removed the -y from the code to see if it stopped working again and it did, so this webcam must not support mjpg but works well with the YUYV setting and the right power supply.
Many thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants