Home » PiTank » Streaming cats via pitank

Streaming cats via pitank

Pitank could have a lot of practical usages.  But live is strange thing, so I basically use it to stream cat videos…

cat_stream

When cat is left alone at home and I am somewhere far away, I just login to my pitank and start watching what is happening.

Sometimes I stream it directly to youtube.  So here is one of the first such streaming sessions:

By the way streaming to youtube from Raspberry pi is as simple as one line command:

raspivid -o – -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 rtmp://a.rtmp.youtube.com/live2/your-streaming-key

raspivid sends video stream from picamera to sdtout, it is already encoded by h264. ffmpeg puts this video stream in flv container and sends to youtube. No video encoding/decoding  happens, so it works pretty good.  Also ffmpeg emulates sound track to make stream acceptable by youtube.

raspvid should be available in all recent distributions suitable for Raspberry Pi. And ffmpeg is not present on some distributions, so compiling from binaries might be required.

Post Tag With : , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *