Live Stream IP Camera (no audio) to YouTube using FFmpeg

Live Stream Bitrates

https://support.google.com/youtube/answer/2853702?hl=en

Stream Command
ffmpeg -f lavfi -i anullsrc -rtsp_transport udp -i "rtsp://username:password@ip_address:554/cam/realmonitor?channel=1&subtype=0" -force_key_frames "expr:gte(t,n_forced*2)" -vf scale=1920:1080 -reorder_queue_size 4000 -max_delay 10000000 -vcodec libx264 -b:v 4500k -pix_fmt yuv420p -f flv "<youtube_stream_url>"
Use Hardware Encoding on Mac
Change libx264 to h264_videotoolbox
Use Hardware Encoding on Windows (Intel processor, QuickSync)
Change libx264 to h264_qsv

Raspberry Pi 4 Ubuntu 20.04 LTS Dual Desktop Environment

CanaKit Raspberry Pi 4 (4GB) Starter Kit (Amazon Affiliate)
US: https://amzn.to/3azJgrW
UK: https://amzn.to/2JdMq9o
CA: https://amzn.to/3bwiRvY
ES: https://amzn.to/2T06LnM (similar)
FR: https://amzn.to/3cvIZrs (similaire)
IT: https://amzn.to/2Ar74Sj (simile)
DE: https://amzn.to/2AqfWHQ (ähnlich)
IN: https://amzn.to/3ey6fWj
AU: https://amzn.to/2VTUt1C
NL: https://amzn.to/3f5NdsD (vergelijkbaar)

Raspberry Pi Playlist: https://www.youtube.com/playlist?list=PLErU2HjQZ_ZPvIdR5BEqDgO7DsGAla_AZ

Update Package List
sudo apt update
Install Lubuntu
sudo apt install lubuntu-desktop

Upgrading Ubuntu 20.04 LTS Server to Desktop on a Raspberry Pi 4

CanaKit Raspberry Pi 4 (4GB) Starter Kit (Amazon Affiliate)
US: https://amzn.to/3azJgrW
UK: https://amzn.to/2JdMq9o
CA: https://amzn.to/3bwiRvY
ES: https://amzn.to/2T06LnM (similar)
FR: https://amzn.to/3cvIZrs (similaire)
IT: https://amzn.to/2Ar74Sj (simile)
DE: https://amzn.to/2AqfWHQ (ähnlich)
IN: https://amzn.to/3ey6fWj
AU: https://amzn.to/2VTUt1C
NL: https://amzn.to/3f5NdsD (vergelijkbaar)

Raspberry Pi Playlist: https://www.youtube.com/playlist?list=PLErU2HjQZ_ZPvIdR5BEqDgO7DsGAla_AZ

Install Ubuntu Desktop (choose one)
sudo apt install ubuntu-desktop
sudo apt install xubuntu-desktop
sudo apt install kubuntu-desktop
sudo apt install lubuntu-desktop
Disable Overscan and Apply Device Tree Overlay
sudo nano /boot/firmware/usercfg.txt
disable_overscan=1
dtoverlay=vc4-fkms-v3d
Switch to Console
sudo systemctl isolate multi-user.target
Switch to Graphical Interface
sudo systemctl isolate graphical.target
Set System to Default to Console
sudo systemctl set-default multi-user.target
Set System to Default to Graphical Interface
sudo systemctl set-default graphical.target