trying to accomplish this and I get the following error.
my script looks like this trying to implement your idea about the -pix_fmt as well as set the threads to 2 since I have a core 2 duo CPU.
ffmpeg -f x11grab -s "$INRES" -r "$FPS" -i :0.0+1440 \
-f alsa -i pulse -vcodec libx264 -pix_fmt yuv420p -s "$OUTRES" \
-acodec libmp3lame -ab 64k -ar 22050 -threads 2 \
-f flv "rtmp://live.twitch.tv/app/$API_KEY"
ANy help would be appreciated
ffmpeg 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
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
[x11grab @ 0x9f4bce0] device: :0.0+1440 -> display: :0.0 x: 1440 y: 0 width: 1440 height: 900
[x11grab @ 0x9f4bce0] 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
UPDATE: i posted how I got it all fixed over here: http://ubuntuforums.org/showthread.p...ghlight=twitch In short, the script is a tiny bit different and the inres and outres changed and there was no need for -pix_fmt