Stream camera supraveghere pe YouTube cu Raspberry Pi
instalam ffmpeg
sudo apt-get install ffmpeg
![](http://www.brysystem.ro/wp-content/uploads/2020/01/instalare-ffmpeg.png)
Verificam fluxul video de la camera de supraveghere. In acest caz am folosit o camera Hikvision
ffplay "rtsp://user:parola@IP:554/Streaming/Channels/101"
![](http://www.brysystem.ro/wp-content/uploads/2020/01/test-ffmpeg-1024x389.png)
Setam live pe YouTube
Ne logam pe YouTube , Studio si configuram parametrii live
Important este cheia de stream
![](http://www.brysystem.ro/wp-content/uploads/2020/01/yt1-1024x70.png)
![](http://www.brysystem.ro/wp-content/uploads/2020/01/yt2.png)
![](http://www.brysystem.ro/wp-content/uploads/2020/01/yt3.png)
Pornim stream pe Raspberry Pi
ca si parametrii avem
- user camera de supraveghere
- parola camera de supraveghere
- IP camera de supraveghere
- Stream key de la live YouTube
ffmpeg -f lavfi -i anullsrc -rtsp_transport tcp -i “rtsp://user:parola@IP:554/Streaming/Channels/101″ -tune zerolatency -vcodec libx264 -t 12:00:00 -pix_fmt + -c:v copy -c:a aac -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/STEAM KEY
![](http://www.brysystem.ro/wp-content/uploads/2020/01/ffmpeg1-1024x694.png)
![](http://www.brysystem.ro/wp-content/uploads/2020/01/yt4-1024x615.png)
![](http://www.brysystem.ro/wp-content/uploads/2020/01/yt5-1024x605.png)
Putem incorpora live într-un site sau într-o aplicație
![](http://www.brysystem.ro/wp-content/uploads/2020/01/incorporare-1024x402.png)
![](http://www.brysystem.ro/wp-content/uploads/2020/01/site-yt.png)
![](http://www.brysystem.ro/wp-content/uploads/2020/01/site.png)