All the steps to go live on YouTube with a Pi Camera connected to Raspberry Pi.
This video is just "for fun" but all the steps are those to be completed in order to go live on YouTube RTMP servers and show in real time what a Pi Camera connected to a Raspberry Pi is recording.
» PREREQUISITES
1) download Raspberry Pi OS (https://www.raspberrypi.org/downloads...) and write the img on a MicroSD
2) add empty "ssh" file into "/boot" partition to enable SSH remote access
3) connect the Raspberry Pi Camera
4) insert MicroSD, Ethernet and power cables into the Pi
5) remote access via SSH (ssh [email protected])
6) change pi's default password (raspberry) with passwd
7) update the OS with sudo apt update and sudo apt upgrade && sudo apt dist-upgrade and then reboot
8) (optional) enable Wi-Fi and disconnect the Ethernet cable
9) create a YouTube channel and enable Live Streaming
» STEP 1: enable camera and install libraries
1) enable the Camera Interface via raspi-config
2) test the camera with raspistill -o image.jpg
3) install ffmpeg with sudo apt install ffmpeg
» STEP 2: activate the live stream on YouTube
1) go to https://studio.youtube.com/
2) click on Content » Live » Get Started » Stream Now » Streaming Software
3) set up the live as preferred
4) copy the API KEY
» STEP 3: go live!
1) launch the command raspivid -o - -t 0 -vf -hf -fps 30 -b 6000000 | ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i - -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/[insert-your-key-here]
2) add the API KEY at the end of the command
3) check that the live is up and running
4) enjoy!
[Soundtrack by Various Artists released under Creative Commons]
#geekonerd #raspberrypi #picamera #youtube #livestream #ffmpeg
_____
FOLLOW ME ON https://linktr.ee/geekonerd