Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- YOUTUBE_URL="rtmp://a.rtmp.youtube.com/live2"
- SOURCE="rtsp://ip.ip.ip.ip"
- KEY="xxxx-xxxx-xxxx-xxxx"
- x=1;
- until [ $x -ge 10 ]; do
- ffmpeg \
- -ar 44100 -ac 2 -f s16le -i /dev/zero -acodec libfdk_aac \
- -i "$SOURCE" \
- -vcodec copy \
- -bufsize 20480k -pix_fmt yuv420p -g 50 \
- -map 0:a -map 1:v \
- -f flv "$YOUTUBE_URL/$KEY"
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement