Linux Test: Game Streaming on Linux @RabidKanid
Linux Test: Game Streaming on Linux  @RabidKanid
Uploaded April 2012 | Updated September 2026, 2 weeks ago
I finally managed to get game streaming to work on Linux!!
Watch the intro to Wave Race: Blue Storm. -- Recorded live on Justin.tv on my channel Gameasaurus! - j-tv.me/J1zSvg

This is the code I came up with after around over a week of searching and trial and error:

Also keep in mind that you have to use apt get on what I think is ffmpeg or video4linux2 and compile the latest version using apt get. The video encoder I downloaded through apt get is referenced in the main youtube video file I used as reference, I'll try to find it and put it up as a video response. His video explains what all the attributes in the function do or are for.

(Put in .bashrc file. It's hidden, press CTRL + H to show hidden files in the home folder. Preferably, put in the bottom of the .bashrc file. What putting the below function does is make it possible to start streaming simply by typing the name of the function in the linux terminal.)

streaming(){
INRES="640x480"
OUTRES="640x480"
FPS="30"
QUAL="ipod320"

STREAM_KEY="enter your stream key here between the quotes"

ffmpeg -f video4linux2 -s "$INRES" -aspect:v 4:3 -standard ntsc -i /dev/video1 -f alsa -ac 2 -i pulse -vcodec libx264 -s "$OUTRES" -vpre "$QUAL" -vprofile baseline -pix_fmt yuv420p -acodec libmp3lame -ar:a 44100 -threads 2 -q:v 5 -b:v 600k -b:a 96k -f flv "rtmp://live.justin.tv/app/$STREAM_KEY"
}
Linux Test: Game Streaming on LinuxGBA: DragonBall Z: Supersonic Warriors - Namek Saga Part 1Sega Genesis: TMNT - The Hyper Stone Heist - Part 1Skyscraper Scamper Day - Time Trial Lv. 3N64: The Legend of Zelda: Ocarina of Time - Forest Temple Part 5PC: Sonic Adventure DX - Sonics Story 6NES: Teenage Mutant Ninja TurtlesBongo Bongo - 3 HeartsYour Going Straight To Hell!NES: Teenage Mutant Ninja Turtles Part 3PC: Giants: Citizen Kabuto Part 12Metroid Prime on Hard Mode (last two bosses) - 4 / 4
Hugo Sigil |

Linux Test: Game Streaming on Linux

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER