Out-of-the-box SD card image for live streaming with Raspberry Pi. It's easy as pie.
sudo raspi-config
.pi
and password raspberry
, then run ip a
command. To disable SSH server, run raspi-config
and go to "Interfacing Options" > "SSH" menu.alsamixer
command. Press F6 to select your sound card, then press F4 to select "Capture" volume control. Use arrow keys to turn up or down the volume.The expected latency of video is about a second. Also, please change your login password with passwd
command.
Audio/video capture configuration is defined in /home/pi/picam-streamer/lib/server.js as follows.
picam = child_process.spawn('nice', ['-n', '-20', 'ionice', '-c1', '-n0', 'sudo', '-u', "#" + PICAM_UID, PICAM_PATH, '--rtspout', '--alsadev', 'hw:1,0'], {
The arguments are the same as for picam. You can add arguments to the end like this:
picam = child_process.spawn('nice', ['-n', '-20', 'ionice', '-c1', '-n0', 'sudo', '-u', "#" + PICAM_UID, PICAM_PATH, '--rtspout', '--alsadev', 'hw:1,0', '--rotation', '180'], {
After changing the parameters, run sudo service picam-streamer restart
and the new configuration will be used.
Add disable_camera_led=1
to /boot/config.txt and reboot the Pi.
The SD card image contains the following components.