stream video

This code here will ,when typed in a terminal, will stream the raspberry pi camera’s video to youtube with whatever sound is happening on the pi.

sudo modprobe snd-aloop | raspivid -o – -t 0 -vf -hf -fps 30 -b 6000000 | ffmpeg -i pipe: -f alsa -ac 1 -ar 44100 -i plughw:2,1 -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/****you youtube code here*******

replace theĀ ****you youtube code here******* with the stream key aquired from youtube

Untitleduyu