Last active
February 25, 2019 06:44
-
-
Save tatsuyaueda/9f1e560eb5530bd20f7eecf5e26b1e21 to your computer and use it in GitHub Desktop.
AXIS M1124 to YouTube Live on RasPi3
This file contains hidden or 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
- カメラからのストリームをそのまま流せば、RasPi3で流しても、CPU負荷は10%程度 | |
- オーディオストリームがないとYouTubeはダメっぽい。 | |
KEY="keykeykey" | |
SOURCE="rtsp://192.168.xx.xx:554/axis-media/media.amp" | |
ffmpeg -f lavfi -i anullsrc -rtsp_transport tcp \ | |
-i $SOURCE -pix_fmt + \ | |
-c:v copy -acodec libmp3lame -ar 44100 -strict experimental -f flv \ | |
"rtmp://a.rtmp.youtube.com/live2/$KEY" | |
- 静止画をYoutubeに流す場合 | |
ffmpeg -f lavfi -i anullsrc -re -loop 1 -framerate 2 \ | |
-i /path/to/image.png \ | |
-pix_fmt yuv420p -framerate 30 -g 2 -c:v libx264 -acodec libmp3lame -ar 44100 -strict experimental -f flv \ | |
"rtmp://a.rtmp.youtube.com/live2/$KEY" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment