Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SCRIPT
- ---------
- #!/bin/shh
- # Streams Desktop to Twitch/Justin.tv
- INRES="1600x900"
- OUTRES="1280x720"
- FPS="30"
- QUAL="medium"
- BITRATE="256k"
- STREAM_KEY="live_40412197_hV3SclTOv5M23rZ7GuOKuNnDCSkXsL"
- ffmpeg \
- -f x11grab \
- -s "$INRES" \
- -r "$FPS" \
- -i :0.0+0,299 \
- -itsoffset -00:00:01 \
- -f alsa \
- -i hw:3,0 \
- -af aresample \
- -vcodec libx264 \
- -preset "$QUAL" \
- -s "$OUTRES" \
- -acodec libmp3lame \
- -ar 44100 \
- -threads 4 \
- -b:a "$BITRATE" \
- -pix_fmt yuv420p \
- -f flv "rtmp://live.justin.tv/app/$STREAM_KEY"
- ---------End Script
- Output
- ---------
- ffmpeg version 0.8.6-6:0.8.6-1ubuntu2, Copyright (c) 2000-2013 the Libav developers
- built on Mar 30 2013 22:20:06 with gcc 4.7.2
- *** THIS PROGRAM IS DEPRECATED ***
- This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
- [x11grab @ 0x2589b80] device: :0.0+0,299 -> display: :0.0 x: 0 y: 299 width: 1600 height: 900
- [x11grab @ 0x2589b80] shared memory extension found
- [x11grab @ 0x2589b80] Estimating duration from bitrate, this may be inaccurate
- Input #0, x11grab, from ':0.0+0,299':
- Duration: N/A, start: 1368300010.795797, bitrate: 1382400 kb/s
- Stream #0.0: Video: rawvideo, bgra, 1600x900, 1382400 kb/s, 30 tbr, 1000k tbn, 30 tbc
- [alsa @ 0x2596da0] Estimating duration from bitrate, this may be inaccurate
- Input #1, alsa, from 'hw:3,0':
- Duration: N/A, start: 3449.763855, bitrate: N/A
- Stream #1.0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
- Unrecognized option 'af'
- Failed to set value 'aresample' for option 'af'
- ---------end output
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement