April 24, 2014, 01:20:20 pm

Author Topic: [Guide] Better twitch.tv stream. [Updated on 12.11.2013]  (Read 9425 times)

Offline Vectorized

  • Newbie
  • *
  • Topic Author
  • Posts: 11
    • View Profile
[Guide] Better twitch.tv stream. [Updated on 12.11.2013]
« on: October 07, 2013, 09:33:19 pm »
Greetings gentlemen.

This will be a short guide how to watch twitch.tv streams on the VLC media player.
This might fix lag for some people and you can use all the goodies of VLC to enhance your watching experience.
Also, it will be a very basic guide, if you want to experiment you might want to check out the sites of the software used in this guide.

Lets go:

First, you'll need 2 programs (get the newest versions):
Install VLC then Livestreamer.
After installing Livestreamer, you'll get a notepad window where you can configure Livestreamer to your needs.
If you did not get the window or closed it and want to open it again, the config file name is livestreamerrc , you can find it in %appdata%\livestreamer or X:\Users\name\AppData\Roaming\livestreamer. You can use Notepad to edit it.

This is how it should look:

Code: [Select]
# Lines starting with a # is considered comments and are ignored.

# By default livestreamer will attempt to locate VLC on your system
# and use that, but you can also specify the location of a player
# yourself.

# Important: You must use a quoted path if there are spaces in the path. This
# is because the player command is parsed like a shell command to allow
# parameters to be passed to the player.

# Here is a few examples of players:

# VLC
#player="C:\Program Files (x86)\VideoLAN\VLC\vlc.exe"
#player="C:\Program Files\VideoLAN\VLC\vlc.exe"
# Using --file-caching is recommended, but is only supported in VLC 2.0+
#player="C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --file-caching=5000
#player="C:\Program Files\VideoLAN\VLC\vlc.exe" --file-caching=5000

# MPC-HC, must be at least version 1.7 to be used
#player="C:\Program Files (x86)\MPC-HC\mpc-hc.exe"

# MPlayer2
#player=C:\mplayer2\mplayer2.exe -cache 4096


# Show console output from video player
#verbose-player

# RTMP streams are downloaded using rtmpdump, full path to the rtmpdump exe
# should be specified here.
rtmpdump=f:\Program Files (x86)\Livestreamer\rtmpdump\rtmpdump.exe

# Log level, default is info
#loglevel=debug

# Cookies from your web browser to allow access to Twitch/JustinTV streams
# that require authentication
#jtv-cookie=

# Cookies from your web browser to allow access to GOMTV.net streams
#gomtv-cookie=

# A username and password to allow access to GOMTV.net streams
#gomtv-username=
#gomtv-password=

The only thing you want is to check those 2 lines:

Code: [Select]
#player="C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --file-caching=5000
#player="C:\Program Files\VideoLAN\VLC\vlc.exe" --file-caching=5000

If you have Windows with 32bit delete the "#" in this line:

Code: [Select]
#player="C:\Program Files\VideoLAN\VLC\vlc.exe" --file-caching=5000
If you have Windows with 64bit delete the "#" in this line:

Code: [Select]
#player="C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --file-caching=5000
Also edit it so it points to your vlc.exe file.

Simply put, all the lines with a "#" are considered comments and are ignored, only the lines without are being processed by the program.

Now one thing to note is, Livestreamer has no GUI so it has to be executed in the command prompt.
You can check out all the possible commands here: http://livestreamer.tanuki.se/en/latest/cli.html

But lets keep it as simple as possible.

Go to the folder where you installed Livestreamer (default is: "C:\Program Files (x86)\Livestreamer" for 64bit Windows and "C:\Program Files\Livestreamer" for 32bit)

  • Create a shortcut for "livestreamer.exe" (right click -> create shortcut).
  • Right click the shortcut and choose properties.
  • Check the "target" line, it should look something like: "C:\Program Files (x86)\Livestreamer\livestreamer.exe"
Now copy and paste this line after your target line:
Code: [Select]
http://www.twitch.tv/quickybaby best
For me it will look like this:
Code: [Select]
"C:\Program Files (x86)\Livestreamer\livestreamer.exe" http://www.twitch.tv/quickybaby best
You can replace the best option with high / medium or low, 1080p , 720p and 480p should work also.

That's it, now you only need to click the shortcut and it will launch livestreamer with VLC and start playing QBs stream on the best possible quality. And of course you can move the shortcut wherever you want.

The result:
(click to show/hide)

One last tip: it can happen on Nvidia systems that VLC will show the color black more as gray. If that happens go to the preferences of VLC (CTRL+P) and disable the "Use hardware YUV->RGP conversions" in the video settings, restart VLC and you're good to go.


If you've trouble with this guide, ask away!


Edit 12.11.2013

Livestreamer 1.7 officially supports http/s proxies now. This is interesting for EU watchers who have to suffer under the poor twitch.tv EU infrastructure.

Now, how to access this function ?

First make sure you have Livestreamer 1.7 or higher installed. To do so open command prompt (start menu-> search for "cmd"-> start cmd), then type in "livestreamer -V" without "" and with capital -V.
If you don't have Livestreamer 1.7 get it here: https://github.com/chrippa/livestreamer/releases .

Now you have to find a good proxy to redirect the stream through. There are a lot of sites where you can look proxies up. I'm going to use http://hidemyass.com/proxy-list/ in this guide.

Filter the proxy list:

  • Proxy country, you want an US proxy.
  • Port does not really matter
  • Protocol uncheck socks proxy, you only want HTTP and HTTPS proxies.
  • Anonymity level does not matter, we will be only watching a video stream using the proxy.
  • Speed, you want it to be as fast as possible, uncheck all but the Fast option.
  • Connection time does not really matter that much, but uncheck the Slow option anyway
  • Update Results to filter the results.

Now, not every proxy will work for various reasons, the only way to check which will is by trying. I personally use command prompt, but you can use the shortcut method I described in the main guide.

Open command prompt, and type in:
Code: [Select]
livestreamer http://www.twitch.tv/quickybaby best --http-proxy ip:portIf the proxy you are trying to test is a HTTPS proxy, use --https-proxy instead of --http-proxy.

An example, lets say I found a HTTPS proxy with the ip 66.156.184.5 and port 8080.
Now I open command prompt and type in:
Code: [Select]
livestreamer http://www.twitch.tv/quickybaby best --https-proxy 66.156.184.5:8080
I do not guarantee that it will work for you, I live in Germany with 64Mbit internet and had very poor twitch.tv performance for about half a year, but using Livestreamer with an US proxy did fix a lot of problems for me.
« Last Edit: November 12, 2013, 08:31:45 pm by Vectorized »

Offline Coldius

  • QSF-NA Admins
  • Hero Member
  • *****
  • Posts: 1260
    • View Profile
Re: [Guide] Better twitch.tv stream.
« Reply #1 on: October 07, 2013, 09:42:08 pm »
f*ck yes. Thanks man. This is so much easier and stable than Twitch itself.
« Last Edit: October 07, 2013, 09:52:01 pm by Coldius »



Offline Vectorized

  • Newbie
  • *
  • Topic Author
  • Posts: 11
    • View Profile
Re: [Guide] Better twitch.tv stream.
« Reply #2 on: October 07, 2013, 10:23:38 pm »
Thanks for sticky.

And yes pretty much any player is better than flash nowadays.

Offline Cypherspeed

  • XCEL
  • Sr. Member
  • *
  • Posts: 117
    • View Profile
Re: [Guide] Better twitch.tv stream.
« Reply #3 on: October 07, 2013, 10:43:58 pm »
Can I watch past broadcasts using this?

Ok, figured out that I can, but I can't fast forward video ;(
« Last Edit: October 07, 2013, 10:50:50 pm by Cypherspeed »

Offline v1rtu4l

  • XCEL
  • Hero Member
  • *
  • Posts: 414
    • View Profile
Re: [Guide] Better twitch.tv stream.
« Reply #4 on: October 07, 2013, 10:55:49 pm »
Can I watch past broadcasts using this?

Ok, figured out that I can, but I can't fast forward video ;(

you can use the JDownloader to download past broadcasts and watch them as flv via the vlc player.

Offline Cypherspeed

  • XCEL
  • Sr. Member
  • *
  • Posts: 117
    • View Profile
Re: [Guide] Better twitch.tv stream.
« Reply #5 on: October 07, 2013, 11:05:09 pm »
Can I watch past broadcasts using this?

Ok, figured out that I can, but I can't fast forward video ;(

you can use the JDownloader to download past broadcasts and watch them as flv via the vlc player.

Well, since I love collecting downloaded stuff on my HDD id probably run outta space in 2 weeks :D

Offline KingYoshiLuca

  • QSF-C
  • Hero Member
  • *
  • Posts: 423
  • "Is this the Krusty Krab?" "No this is Patrick!"
    • View Profile
    • My Youtube Channel
Re: [Guide] Better twitch.tv stream.
« Reply #6 on: October 07, 2013, 11:23:59 pm »
thanks for the Guide, its working. :)

btw, i can create as many shortcuts as i want and do the "properties" things with other streams? :)

Offline Vectorized

  • Newbie
  • *
  • Topic Author
  • Posts: 11
    • View Profile
Re: [Guide] Better twitch.tv stream.
« Reply #7 on: October 07, 2013, 11:36:22 pm »
thanks for the Guide, its working. :)

btw, i can create as many shortcuts as i want and do the "properties" things with other streams? :)

Yes of course, its a bit clunky but right now the shortcut method works the best I think. Maybe in the future we will get a better solution.

Offline ThisIsNotWoT

  • QSF-X
  • Newbie
  • *
  • Posts: 21
  • uhm?..
    • View Profile
Re: [Guide] Better twitch.tv stream.
« Reply #8 on: October 08, 2013, 05:44:04 pm »
i got a problem..

http://shrani.si/?3b/tm/1WEeoWAD/1.jpg
[Guide] Better twitch.tv stream. [Updated on 12.11.2013]


it doesnt wanna load after it opens vlc.. my connection is 10/1 so thats not the problem

heres the config:
http://troll.ws/paste/0bd485fb


and the shortcut target is:
"C:\Program Files (x86)\Livestreamer\livestreamer.exe" http://www.twitch.tv/quickybaby best


Offline Vectorized

  • Newbie
  • *
  • Topic Author
  • Posts: 11
    • View Profile
Re: [Guide] Better twitch.tv stream.
« Reply #9 on: October 08, 2013, 05:49:48 pm »
i got a problem..

http://shrani.si/?3b/tm/1WEeoWAD/1.jpg
[Guide] Better twitch.tv stream. [Updated on 12.11.2013]


it doesnt wanna load after it opens vlc.. my connection is 10/1 so thats not the problem

heres the config:
http://troll.ws/paste/0bd485fb


and the shortcut target is:
"C:\Program Files (x86)\Livestreamer\livestreamer.exe" http://www.twitch.tv/quickybaby best



There is a problem in your config. Find those lines:

Code: [Select]
# VLC
player="C:\Program Files (x86)\VideoLAN\VLC\vlc.exe"
#player="C:\Program Files\VideoLAN\VLC\vlc.exe"
# Using --file-caching is recommended, but is only supported in VLC 2.0+
player="C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --file-caching=3000
#player="C:\Program Files\VideoLAN\VLC\vlc.exe" --file-caching=5000

Only one line should be missing the "#", or you'll experience an error like you do. Here is a fixed version:

Code: [Select]
# VLC
#player="C:\Program Files (x86)\VideoLAN\VLC\vlc.exe"
#player="C:\Program Files\VideoLAN\VLC\vlc.exe"
# Using --file-caching is recommended, but is only supported in VLC 2.0+
player="C:\Program Files (x86)\VideoLAN\VLC\vlc.exe" --file-caching=3000
#player="C:\Program Files\VideoLAN\VLC\vlc.exe" --file-caching=5000
« Last Edit: October 08, 2013, 05:52:40 pm by Vectorized »

Offline ThisIsNotWoT

  • QSF-X
  • Newbie
  • *
  • Posts: 21
  • uhm?..
    • View Profile
Re: [Guide] Better twitch.tv stream.
« Reply #10 on: October 08, 2013, 05:56:02 pm »
ah yeah works now ty =)


Offline Lowlife555

  • Administrator
  • Hero Member
  • *****
  • Posts: 1003
    • View Profile
Re: [Guide] Better twitch.tv stream.
« Reply #11 on: October 08, 2013, 07:13:12 pm »
still lags like... :(

Offline Kenshee

  • QSF-C
  • Hero Member
  • *
  • Posts: 346
  • I wish I wish I didn't kill that fish!
    • View Profile
Re: [Guide] Better twitch.tv stream.
« Reply #12 on: October 08, 2013, 07:45:06 pm »
sounds works non stop video still is lagging from time to time...

I blame twitch :)

*update*

changed "player="C:\Program Files\VideoLAN\VLC\vlc.exe" --file-caching=5000" the caching to 15000 running smooth now :D
« Last Edit: October 08, 2013, 08:54:59 pm by Kenshee »

Offline GoGun

  • Sr. Member
  • ****
  • Posts: 156
    • View Profile
Re: [Guide] Better twitch.tv stream.
« Reply #13 on: October 09, 2013, 04:08:00 pm »
i will try this, thank you
every "source" or "high" stream lag like hell, even with my good internet connection.
IGN: SmilingJack

Offline Kasius67

  • QSF
  • Sr. Member
  • *
  • Posts: 142
    • View Profile
Re: [Guide] Better twitch.tv stream.
« Reply #14 on: October 11, 2013, 08:51:55 am »
wow ! Thanks for the tips its awesome !
My friends call me Kasius, My enemy call backup !