Originally Posted by
wirefly
i tried using Linux Mint 14 with Mate and immediately I get this trying to run the twitch.sh script
Code:
sh twitch.sh 50 50
avconv version 0.8.4-6:0.8.4-0ubuntu0.12.10.1, Copyright (c) 2000-2012 the Libav developers
built on Nov 6 2012 16:49:20 with gcc 4.7.2
[x11grab @ 0x9dd1e40] device: :0.0+50,50 -> display: :0.0 x: 50 y: 50 width: 1440 height: 900
[x11grab @ 0x9dd1e40] shared memory extension found
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 130 (MIT-SHM)
Minor opcode of failed request: 4 (X_ShmGetImage)
Serial number of failed request: 11
Current serial number in output stream: 11
Code:
#! /bin/bash
TOPXY="$1,$2"
INRES="1440x900"
OUTRES="852x480"
FPS="30"
QUAL="medium"
STREAM_KEY=$(cat ~/.twitch_key)
avconv \
-f x11grab -s $INRES -r "$FPS" -i :0.0+$TOPXY \
-f alsa -ac 2 -i pulse \
-vcodec libx264 -s $OUTRES -preset $QUAL \
-acodec libmp3lame -ar 44100 -threads 4 -qscale 3 -b 712000 -bufsize 512k \
-f flv "rtmp://live.justin.tv/app/$STREAM_KEY"
UPDATE: I changed my INRES to 1280x720 and it was working. AWESOME!
Bookmarks