Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- streaming() {
- INRES="1920x1080" # input resolution
- OUTRES="640x360"
- FPS="15" # target FPS
- QUAL="fast" # one of the many FFMPEG preset
- STREAM_KEY="<Enter your justin.tv stream key here>"
- URL="rtmp://live.justin.tv/app/$STREAM_KEY" #flashver=FMLE/3.0\20(compatible;\20FMSc/1.0)"
- #ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0 -ab 22050\
- # -f alsa -ac 2 -i pulse -vcodec libx264 -s "$OUTRES" -level 30 -f mpegts \
- # -acodec libmp3lame -ac 1 \
- # -f flv "$URL"
- ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0 -ab 96k \
- -f alsa -ac 2 -i pulse -vcodec libx264 -crf 30 -preset "$QUAL" -s "1280x720" \
- -acodec libmp3lame -ar 44100 -threads 0 \
- -f flv "$URL"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement