131 / h264-live-player

A live h264 player for the browser (ideal for raspberrypi / raspicam )
MIT License
1.08k stars 251 forks source link

Error when I run server-rpi.js on Start Video #68

Closed LandonFerg closed 5 years ago

LandonFerg commented 5 years ago

When running the example for the live player using "node server-rpi.js" I get this output when I click "Start Video" and no video shows up...

New guy
Incomming action 'REQUESTSTREAM'
raspivid -t 0 -o - -w 960 -h 540 -fps 12
Failure 70

Any help would be much appreciated, thank you.

PeterRonny commented 5 years ago

Same problem here :-(

LandonFerg commented 5 years ago

SOLVED!

It turns out I had my camera installed in the wrong port like an absolute goof! (The one in-between the Ethernet and HDMI port is the correct port!)

I checked if my camera was being detected by using vcgencmd get_camera
(Returned supported=1 detected=0)

I then made sure in raspi-config that my camera was enabled

But in the end it was just the wrong port, and a simple reboot fixed it! I hopes this helps people in the future :)

vcgencmd get_camera now shows supported=1 detected=1