Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Raspberry Pi3 Model B と RasPi公式カメラモジュール V.2を使ってYoutube のストリーミング配信をするシェル・スクリプト
#!/bin/sh
#
# Check your ServerURL and Stream key at:
# https://www.youtube.com/live_dashboard
# and overwrite <ServerURL> and <YourStreamKey> below.
raspivid -o - -w 1920 -h 1080 -t 0 -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 <ServerURL>/<YourStreamKey>
# Loop to keep the script run
while true
do
:
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.