1

I have purchased an Imported 1.3 5MP Webcam Video Camera Module Board 1080p 720p Fast for Raspberry Pi 2. On testing this particular camera on Iceweasel/Firefox, the camera quality was absolutely fine; doing the same on chromium the video gets disrupted and pixelated.Even on using a normal USB camera with chromium, everything worked fine. Can someone suggest solutions for improving video feed on chromium using the raspberry pi camera or any compatible hardware? [No USB Camera]

Board: Raspberry Pi 2 B+ OS: Raspbian Jessie

  • This is a known issue in chromium - there's a hack mentioned at the end of that ticket but it's worth reading the thread to understand what's going on (short version: chromium doesn't like cameras that don't list a simple discrete set of resolutions) – Dave Jones Apr 26 '17 at 13:16
  • @DaveJones by hack did you mean this? sudo modprobe bcm2835-v4l2 gst_v4l2src_is_broken=1 If yes? Please elaborate how to implement this hack. – Sanchit Gupta Apr 26 '17 at 15:03
  • Any other compatible camera (with chromium) that you can suggest? – Sanchit Gupta Apr 26 '17 at 15:09
  • Yeah, that's the hack I meant - the associated thread goes into some more detail on the chromium issue itself. As for other cameras, I would assume most USB cameras work: they mostly list a trivial set of discrete resolutions, unlike the Pi's camera which (having a full ISP at its disposal) effectively says "I support any resolution you want" – Dave Jones Apr 26 '17 at 15:15
  • @DaveJones I ran this command "sudo modprobe bcm2835-v4l2 gst_v4l2src_is_broken=1" but nothing happens! – Sanchit Gupta Apr 29 '17 at 9:53
1

Simply run the following commands to enable and configure the module:

echo "bcm2835-v4l2" | sudo tee /etc/modules-load.d/bcm2835-v4l2.conf > /dev/null
echo "options bcm2835-v4l2 gst_v4l2src_is_broken=1" | sudo tee /etc/modprobe.d/bcm2835-v4l2.conf > /dev/null

Then reboot your pi:

sudo reboot

And everything should work like a charm ;)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.