• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 08:22
CEST 14:22
KST 21:22
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
[ASL20] Ro24 Preview Pt2: Take-Off7[ASL20] Ro24 Preview Pt1: Runway132v2 & SC: Evo Complete: Weekend Double Feature4Team Liquid Map Contest #21 - Presented by Monster Energy9uThermal's 2v2 Tour: $15,000 Main Event18
Community News
Weekly Cups (Aug 18-24): herO dethrones MaxPax6Maestros of The Game—$20k event w/ live finals in Paris32Weekly Cups (Aug 11-17): MaxPax triples again!13Weekly Cups (Aug 4-10): MaxPax wins a triple6SC2's Safe House 2 - October 18 & 195
StarCraft 2
General
Greatest Players of All Time: 2025 Update #1: Maru - Greatest Players of All Time A Eulogy for the Six Pool Geoff 'iNcontroL' Robinson has passed away #2: Serral - Greatest Players of All Time
Tourneys
Esports World Cup 2025 Maestros of The Game—$20k event w/ live finals in Paris Sparkling Tuna Cup - Weekly Open Tournament WardiTV Mondays RSL: Revival, a new crowdfunded tournament series
Strategy
Custom Maps
External Content
Mutation # 488 What Goes Around Mutation # 487 Think Fast Mutation # 486 Watch the Skies Mutation # 485 Death from Below
Brood War
General
No Rain in ASL20? Post ASL20 Ro24 discussion. BSL Polish World Championship 2025 20-21 September BGH Auto Balance -> http://bghmmr.eu/ ASL Season 20 Ro24 Groups
Tourneys
[ASL20] Ro24 Group F [Megathread] Daily Proleagues [ASL20] Ro24 Group E [IPSL] CSLAN Review and CSLPRO Reimagined!
Strategy
Muta micro map competition Simple Questions, Simple Answers Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
General RTS Discussion Thread Nintendo Switch Thread Stormgate/Frost Giant Megathread Dawn of War IV Path of Exile
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Russo-Ukrainian War Thread Things Aren’t Peaceful in Palestine The year 2050 European Politico-economics QA Mega-thread
Fan Clubs
INnoVation Fan Club SKT1 Classic Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s) Gtx660 graphics card replacement
TL Community
The Automated Ban List TeamLiquid Team Shirt On Sale
Blogs
How Culture and Conflict Imp…
TrAiDoS
RTS Design in Hypercoven
a11
Evil Gacha Games and the…
ffswowsucks
INDEPENDIENTE LA CTM
XenOsky
[Girl blog} My fema…
artosisisthebest
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2562 users

Experimental twitch.tv proxy

Blogs > R1CH
Post a Reply
1 2 3 4 5 12 13 14 Next All
R1CH
Profile Blog Joined May 2007
Netherlands10341 Posts
Last Edited: 2013-11-18 17:50:11
July 08 2013 19:35 GMT
#1
This experiment is over!
I don't recommend using this any more since it will cause Chrome to crash.

+ Show Spoiler +
So there's been a lot of complaints about twitch's poor performance recently. While they are to blame for some of it (lack of European data centers and other POPs), I suspect a lot of the problems stem from Flash player and poor TCP/IP tuning. I wrote a program to analyze how fast Flash player is able to receive the data and it did appear to stall from time to time, which may affect how TCP RWIN tuning over higher BDP connections (ie, Europe to US) works, potentially causing too small of a window size.

This program will intercept RTMP connections and handle the networking separately from Flash player using an event based system for maximum performance. If Flash player is unable to read the data fast enough, it will be buffered (up to 4MB). Additionally, a larger initial receive window is attempted.

Fortunately / unfortunately my own connection rarely lags, so I have limited data to see if this has any effect, but from my sample size of kollin, it appears to improve things a little so why not give it a try!

Requirements:
Visual Studio 2010 Runtimes
Google Chrome
Pepper Flash (Chrome's internal flash player, unless you change it this is the default)
Windows 7

Download:
http://www.teamliquid.net/staff/R1CH/TwitchProxy.zip

Put both files in a folder somewhere and run Chrome, then run TwitchProxy. You can tell if it works by watching the console, when a stream is open you should see it spamming away about buffers. If it breaks and you can't browse anything, just restart Chrome - all changes are applied in-memory only. If you restart Chrome completely, you will also need to restart the proxy for it to apply to the new Chrome process.

Note that this program is pretty much an experiment so treat it as such.
++


****
AdministratorTwitter: @R1CH_TL
Immaterial
Profile Blog Joined September 2010
Canada510 Posts
July 08 2013 19:38 GMT
#2
Truly a wizard. Thank you for this~!
It is the mark of an educated mind to be able to entertain a thought without accepting it.
prodiG
Profile Blog Joined January 2010
Canada2016 Posts
July 08 2013 19:40 GMT
#3
Rich, I am nominating you for CTO of eSports. This is awesome.
ESV Mapmaking Team || http://twitter.com/prodiGsc || Real talk, I don't have time to sugar-coat it for you sir
Grettin
Profile Joined April 2010
42381 Posts
July 08 2013 19:41 GMT
#4
Interesting. I will use it when experiencing problems. Thank you!
"If I had force-fields in Brood War, I'd never lose." -Bisu
R1CH
Profile Blog Joined May 2007
Netherlands10341 Posts
July 08 2013 19:41 GMT
#5
Please let me know if it actually helps you or not, I'm curious as to whether it actually does anything .
AdministratorTwitter: @R1CH_TL
NB
Profile Blog Joined February 2010
Netherlands12045 Posts
July 08 2013 19:41 GMT
#6
But the question is, does the NSA read my twitch chat?

Thanks a lot R1ch
Im daed. Follow me @TL_NB
Heyoka
Profile Blog Joined March 2008
Katowice25012 Posts
July 08 2013 19:42 GMT
#7
I downloaded this and now my computer is full of viruses you won't get away with it this time mister wizard!!!!
@RealHeyoka | ESL / DreamHack StarCraft Lead
Wintex
Profile Blog Joined July 2011
Norway16838 Posts
July 08 2013 19:43 GMT
#8
Thank you r1ch, i love you.
The Bomber boy
Jacmert
Profile Blog Joined October 2011
Canada1709 Posts
July 08 2013 19:44 GMT
#9
You're a wizard, Harry :D I don't think I experience too much Twitch lag, but even so, this sounds like quite a nice project you started/completed!
Plat Support Main #believe
kollin
Profile Blog Joined March 2011
United Kingdom8380 Posts
July 08 2013 19:44 GMT
#10
This works pretty well for me, a nice solution for EU people with problems ^^
felisconcolori
Profile Blog Joined October 2011
United States6168 Posts
July 08 2013 19:44 GMT
#11
But I use firefox!

More seriously, this doesn't impact ad serving and the like right? I wouldn't want it to run afoul of Twitch or impact their ability to serve such things.

+ Show Spoiler +
Can't we kill Flash for video already? HTML5 or sommat like that?
Yes, I email sponsors... to thank them. Don't post drunk, kids. My king, what has become of you?
Butterednuts
Profile Blog Joined September 2010
United States859 Posts
July 08 2013 19:44 GMT
#12
Heya R1CH, I'll give this a go when I get home!
Chameleons Cast No Shadows
Excalibur_Z
Profile Joined October 2002
United States12235 Posts
July 08 2013 19:45 GMT
#13
On July 09 2013 04:42 Heyoka wrote:
I downloaded this and now my computer is full of viruses you won't get away with it this time mister wizard!!!!


Those go away if you sign up for all of the mail order bride offers and new car sweepstakes.
Moderator
R1CH
Profile Blog Joined May 2007
Netherlands10341 Posts
July 08 2013 19:45 GMT
#14
On July 09 2013 04:44 felisconcolori wrote:
But I use firefox!

More seriously, this doesn't impact ad serving and the like right? I wouldn't want it to run afoul of Twitch or impact their ability to serve such things.

+ Show Spoiler +
Can't we kill Flash for video already? HTML5 or sommat like that?

Firefox unfortunately spawns an external process and connects before my program can hook it which is why it isn't supported. This affects nothing other than RTMP (the video) connection, everything else should go through your browser, and even if it didn't, it should make no difference.
AdministratorTwitter: @R1CH_TL
Gemini_19
Profile Joined June 2010
United States1241 Posts
July 08 2013 19:45 GMT
#15
All that happens is a black script box appears on my screen O_o Is that supposed to happen?
@GGemini19 GM Protoss | http://www.twitch.tv/geminisc2 | I <333 HerO & Trap | Check out my Build of the Week series on /r/allthingsprotoss, TL, or Spawning Tool
Grettin
Profile Joined April 2010
42381 Posts
Last Edited: 2013-07-08 19:46:49
July 08 2013 19:45 GMT
#16
On July 09 2013 04:41 R1CH wrote:
Please let me know if it actually helps you or not, I'm curious as to whether it actually does anything .


Will do. By the way, is there a correct way to close this or does it matter? Can i just straight up close the console or is it 'better' to close the stream(s) first and then the proxy? Asking, if that would mess up something with the proxy itself.
"If I had force-fields in Brood War, I'd never lose." -Bisu
Sinistro
Profile Joined February 2012
Brazil684 Posts
July 08 2013 19:46 GMT
#17
I logged from my work risking to get fired just to thank you for this!

since it "fix" the problem handling the RTMP stream, watching it in VLC can solve the problem too?
XilDarkz
Profile Blog Joined April 2010
United States563 Posts
July 08 2013 19:47 GMT
#18
I'm going to watch streams for a bit, when I experience lag switch to this, and hopefully give you valuable feedback.

In the mean time, thanks for the investigation!
aka Mathies! twitch.tv/Mathies if you want to watch me fail. esfiworld.com/author/mathies/
R1CH
Profile Blog Joined May 2007
Netherlands10341 Posts
July 08 2013 19:47 GMT
#19
On July 09 2013 04:45 Grettin wrote:
Show nested quote +
On July 09 2013 04:41 R1CH wrote:
Please let me know if it actually helps you or not, I'm curious as to whether it actually does anything .


Will do. By the way, is there a correct way to close this or does it matter? Can i just straight up close the console or is it 'better' to close the stream(s) first and then the proxy? Asking, if that would mess up something with the proxy itself.

Closing the program will interrupt any active streams, but the browser hook should notice the program isn't running after a refresh and fall back to a direct connection.
AdministratorTwitter: @R1CH_TL
R1CH
Profile Blog Joined May 2007
Netherlands10341 Posts
July 08 2013 19:48 GMT
#20
On July 09 2013 04:45 Gemini_19 wrote:
All that happens is a black script box appears on my screen O_o Is that supposed to happen?

No, when you watch streams the box is supposed to fill with text. If it doesn't, there was probably a problem hooking Chrome.
AdministratorTwitter: @R1CH_TL
1 2 3 4 5 12 13 14 Next All
Please log in or register to reply.
Live Events Refresh
WardiTV Summer Champion…
11:00
Playoffs Day 3
Clem vs ClassicLIVE!
MaxPax vs TBD
WardiTV824
TKL 214
IndyStarCraft 122
Rex114
IntoTheiNu 29
LiquipediaDiscussion
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
Harstem 257
TKL 214
IndyStarCraft 122
Rex 114
Lowko98
SC2_NightMare 19
StarCraft: Brood War
Britney 96259
Sea 6868
Calm 4850
Jaedong 2310
Rain 1475
Horang2 1380
Flash 983
Bisu 920
actioN 695
EffOrt 480
[ Show more ]
Mini 414
hero 361
firebathero 354
Larva 350
Stork 314
BeSt 309
Aegong 292
Zeus 222
Last 184
Snow 160
Light 133
Nal_rA 124
ggaemo 113
Hyuk 88
Mong 87
Mind 86
ZerO 81
Liquid`Ret 72
Soma 67
TY 58
Soulkey 51
NaDa 45
Rush 39
Movie 38
Sea.KH 37
Sharp 33
JulyZerg 24
Sacsri 20
Icarus 20
sas.Sziky 18
Bale 14
[sc1f]eonzerg 13
ajuk12(nOOB) 12
Noble 12
scan(afreeca) 12
IntoTheRainbow 10
Sexy 9
HiyA 7
Terrorterran 6
ivOry 3
Dota 2
Dendi1187
BananaSlamJamma465
XcaliburYe430
420jenkins233
Fuzer 191
XaKoH 147
Counter-Strike
olofmeister1471
x6flipin582
zeus260
byalli175
flusha160
oskar138
markeloff49
edward25
Other Games
singsing2008
B2W.Neo1422
crisheroes294
DeMusliM289
hiko147
Hui .106
SortOf94
rGuardiaN22
ZerO(Twitch)13
Organizations
StarCraft: Brood War
Kim Chul Min (afreeca) 741
Other Games
Algost 2
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• iHatsuTV 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 1230
• WagamamaTV549
League of Legends
• Jankos1251
Upcoming Events
Replay Cast
11h 38m
LiuLi Cup
22h 38m
MaxPax vs TriGGeR
ByuN vs herO
Cure vs Rogue
Classic vs HeRoMaRinE
Cosmonarchy
1d 3h
OyAji vs Sziky
Sziky vs WolFix
WolFix vs OyAji
Big Brain Bouts
1d 3h
Iba vs GgMaChine
TriGGeR vs Bunny
Reynor vs Classic
Serral vs Clem
BSL Team Wars
1d 6h
Team Hawk vs Team Dewalt
BSL Team Wars
1d 6h
Team Hawk vs Team Bonyth
SC Evo League
1d 23h
TaeJa vs Cure
Rogue vs threepoint
ByuN vs Creator
MaNa vs Classic
Maestros of the Game
2 days
ShoWTimE vs Cham
GuMiho vs Ryung
Zoun vs Spirit
Rogue vs MaNa
[BSL 2025] Weekly
2 days
SC Evo League
2 days
[ Show More ]
Maestros of the Game
3 days
SHIN vs Creator
Astrea vs Lambo
Bunny vs SKillous
HeRoMaRinE vs TriGGeR
BSL Team Wars
3 days
Team Bonyth vs Team Sziky
BSL Team Wars
3 days
Team Dewalt vs Team Sziky
Monday Night Weeklies
4 days
Replay Cast
4 days
Sparkling Tuna Cup
4 days
Replay Cast
6 days
The PondCast
6 days
RSL Revival
6 days
Maru vs SHIN
MaNa vs MaxPax
Liquipedia Results

Completed

CSL Season 18: Qualifier 1
uThermal 2v2 Main Event
HCC Europe

Ongoing

Copa Latinoamericana 4
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Qualifiers
ASL Season 20
Acropolis #4 - TS1
CSL Season 18: Qualifier 2
SEL Season 2 Championship
WardiTV Summer 2025
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025

Upcoming

CSL 2025 AUTUMN (S18)
LASL Season 20
BSL Season 21
BSL 21 Team A
Chzzk MurlocKing SC1 vs SC2 Cup #2
RSL Revival: Season 2
Maestros of the Game
EC S1
Sisters' Call Cup
Skyesports Masters 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
MESA Nomadic Masters Fall
Thunderpick World Champ.
CS Asia Championships 2025
Roobet Cup 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.