Skip to content

Instantly share code, notes, and snippets.

View imVinayPandya's full-sized avatar
🏠
Working from home

Vinay Pandya imVinayPandya

🏠
Working from home
View GitHub Profile
@imVinayPandya
imVinayPandya / feed.sh
Created January 11, 2017 05:03 — forked from dstoc/feed.sh
Feed rtsp to ffserver as webm via mpegts
ffmpeg -i rtsp://${SOURCE} -vcodec copy -f mpegts -\
| ffmpeg -i pipe:0 -crf 10 -b:v 2M -c:v libvpx -g 25 http://${TARGET}
@imVinayPandya
imVinayPandya / stream.sh
Created January 11, 2017 05:03 — forked from dstoc/stream.sh
Streaming h264 rtsp to youtube
ffmpeg -i rtsp://${SOURCE} -vcodec copy -f flv\
-acodec libmp3lame -ar 44100 -threads 6 -qscale 3 -b:a 712000 -bufsize 512k\
rtmp://a.rtmp.youtube.com/live2/${KEY}