Tutorial: Live Stream To Twitch TV With Ubuntu Linux

Video is ready, Click Here to View ×

Seems like the syntax for avconv has been updated causing there to be no video to the Twitch stream. I’m working on updating the script with a video upate. Subscribe to get a notification of the update. Thanks.

A tutorial on how to live stream to Twitch.TV using Ubuntu Linux. Sorry for such bad instructions. I did this on a whim and didn’t think through exactly what needed to be done. Hopefully it makes sense and helps you. If you have questions, leave them in the comments. …


  1. Thanks, man. It works great. However, I did need to lower my resolution in the .sh file so I can preview my stream without derpyness. Otherwise, Works just as good as windows. Thanks!

  2. +Anoni Mo I can't reply to your comment. Not sure why. But anyways your bitrate is dependent on your internet connection. Not your hardware. So if your having a problem on Windows then you'll probably have one on Linux.

  3. Is this a good solution for when your graphics card is not good enough to broadcast through windows and it drops frames on HD? If the usual windows system method of broadcasting on Twitch does not allow you to get good bitrate streams… would doing it from linux allow you to increase the bit rate of the stream? or will the result be the same?

  4. Help please? o:

    Unrecognized option: 'preset'
    Failed to set value 'fast' for option 'preset'

    I have ubuntu version 12.04 LTS
    If that's the reason tell me.

    (My specs just in case)
    Intel Penitum G3240 3.2 GHz 2 Cores
    Kingston 8GB Ram 1600MHz
    Kingston SSDNow V300 120GB
    MSI Radeon HD 7770 GHz Edition

    And thats it :3

  5. Hey Osirez,
    Thanks for the info and the hard work you put into finding and working on all of this. I have a problem I followed the tutorial to the T and I get this message when I run my twitch.sh file
    ./twitch.sh: line 20: avconv: command not found
    I have been searching the web for answers and have had no luck.

    Any thoughs?


  6. 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

  7. when i stream the stream is just a black screen on twitch with it saying loading video and its live and everything and then script is reading the fps and stuff know any fix?

  8. Gaming as we know it is still pretty new to Linux so yea there aren't many streaming apps… yet. Especially when you think about how simple the script is and the process is that someone would have written a quick app for it. Simplescreenrecorder is supposed to be able to stream but i havent tried it yet.

  9. I've never used the LiveStream service before but I would imagine that you have to find out the correct RTMP address. This script also works for Justin.TV if your interested.

  10. I want to livestream movies and stuff to livestream(dot)com instead of streaming to Twitch. I followed the guide in all cases that were applicable. I have simplescreenrecorder working just fine. Do you know how I stream to Livestream now?

  11. I missed your stream but it could be laggy for several reasons. One obviously is your interconnection. Do you have enough upload bandwidth? Another could be your PC specs. Is your GPU and CPU up to the task of playing a game, encoding it, and streaming it? If you watch the vid, the part with the scripts I explain what you can change to help with some of these problems. Hope this helps.

Leave a Reply

Your email address will not be published.