Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #! /bin/bash
- INRES="1600x900"
- OUTRES="1024x576"
- INAUD="hw:0,0"
- FPS="30"
- QUAL="fast"
- STREAM_KEY=XXXXX
- WEBCAM="/dev/video0" # WebCam device
- WEBCAM_WH="320:240" # WebCam Width end Height
- STREAM_URL="rtmp://live.twitch.tv/app/$STREAM_KEY"
- "rtmp://live.justin.tv/app/$STREAM_KEY"
- ffmpeg -itsoffset 3 \
- -f x11grab -s $INRES -r "$FPS" -i :0.0+0,0 \
- -f alsa -ac 2 -i plughw:0,0 \
- -vcodec libx264 -s $OUTRES -preset $QUAL -pix_fmt yuv420p \
- -acodec libmp3lame -ar 44100 -threads 0 -b 712000 -bufsize 2048K \
- -f flv \
- -vf "movie=/dev/video0:f=video4linux2, scale=240:-1, fps, setpts=PTS-STARTPTS [movie]; [in][movie] overlay=10:main_h-overlay_h-10 [out]" \
- $STREAM_URL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement