Last active
April 5, 2022 16:11
-
-
Save eigenein/5418f5f572c97c67295baf505578634c to your computer and use it in GitHub Desktop.
Re-streaming Nest cam to YouTube
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description = Wilck | |
BindsTo = network-online.target | |
After = network.target network-online.target | |
[Service] | |
WorkingDirectory = /home/pi | |
StandardOutput = journal | |
StandardError = journal | |
Restart = always | |
RestartSec = 3 | |
TimeoutStopSec = 3 | |
StartLimitInterval = 0 | |
User = pi | |
ExecStart = ffmpeg \ | |
-nostdin \ | |
-loglevel warning \ | |
-stats \ | |
-xerror \ | |
-thread_queue_size 256 \ | |
-m3u8_hold_counters 3 \ | |
-max_reload 3 \ | |
-fflags nobuffer \ | |
-i "https://stream-eu1-bravo.dropcam.com/nexus_aac/$CAMERA_ID/playlist.m3u8?public=$TOKEN" \ | |
-c copy \ | |
-copyts \ | |
-flags +cgop \ | |
-hls_list_size 10 \ | |
-method PUT \ | |
-http_persistent 1 \ | |
'https://a.upload.youtube.com/http_upload_hls?cid=$CID©=0&file=live.m3u8' | |
[Install] | |
WantedBy = multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment