• Log InLog In
  • Register
Liquid`
TeamLiquid Liquipedia LiquidDota LiquidLegends
EST 18:55
CET 00:55
KST 08:55
  • 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
[ASTL2] Finals - eSport.fund vs LOGINmedia1[TQ] Best of the Best Tour W3 Recap6IEM Katowice RO24 - Group D Preview7IEM Katowice - A Totally Unbiased Trap Preview53IEM Katowice - RO24 Group B Preview9
Community News
BSL Season 11 - RO16 Group Stage1ASL11 set to start 28/0324New Worlds Map Contest: 1st Edition7IEM Katowice 2021- Final four head to sunday showdown24IEM Katowice 2021 - 4 players advance to the RO830
StarCraft 2
General
New ladder maps for first season of 2021? 2021 GSL Season 1 (Qualifiers) Unofficial World Champion GTC to start in March - TL, Afreeca, NV, Shopify possibly joining Zest, the Meta Changer
Tourneys
[IEM 2021] Katowice World Championship - Championship Sunday Probots 2021 - Season 1 $1,000 WardiTV We Sold Out #2 ITaX Trovo Weekly#23 - Stats, ByuN, DRG & INno ITaX Ultimate Battles#6 - INnoVation vs Zest
Strategy
Simple Questions Simple Answers [G] PvZ Cheese: PartinG's "Adios Amigo" Build HuShang Tutorials
Custom Maps
Nexus Wars 2021 GUIDE Re-created map Ghost Tower Re-created map Wasteland
External Content
The StarCraft Observer Podcast Episode #4 Drogos Recap of 2020 Mutation #254 Flipping Out Mutation # 253 World on Fire
Brood War
General
ASL11 set to start 28/03 BW General Discussion 2021 ACS Season 1 Announced Truth Behind "Miracle" Sparkyz Run to 2008 Finals [R] Highest legit APM rep
Tourneys
BSL Season 11 - RO16 Group Stage [BWCL] Season 53 - Preview and Registration [BWCL] Season 52 - Main Page Rogue City Rumble - Round of 8 - Day 1
Strategy
Sorry's TvP lategame Ghost strategies? How many drones to a base? Simple Questions, Simple Answers Defusion by terrain – interesting Mine behaviour
Other Games
Heroes of the Storm
HotS: WP and Funny Moments Welcome to the Heroes of the Storm forum! [HotS] 2020: A Year in the Nexus
General Games
Gold Medal Challenge Genshin Impact - Coop RPG Baldurs Gate 3 announced Diablo 2 thread Final Fantasy XIV
TL Mafia
TL Mafia Community Thread [M][N] Mafia Mafia: Mafia Edition {FlaSh}[Mini] Raceday [M][N] I'm a cop you idiot! - Round 4
Hearthstone
Is Hearthstone Gambling?
LoL General
LoL Tournaments
LoL Strategy
Community
General
The Games Industry And ATVI Coronavirus and You NASA and the Private Sector US Politics Mega-thread YouTube Thread
Fan Clubs
The Scarlett Fan Club The TY Fan Club INnoVation Fan Club
Media & Entertainment
[Manga] One Piece Korean Music Discussion Anime Discussion Thread Comic Books [Manga] Shingeki no Kyojin
Sports
2020 - 2021 Football Thread NHL 21: Tony DeActivito Did Nazi That Coming 2020 NFL and College Football Corona Season UFC/MMA Discussion Thread Formula1 2019
Tech Support
Best Gaming Headset? Computer Build, Upgrade & Buying Resource Thread How do you decide if mobo/cpu dead?
TL Community
Ask TL Staff Anything Recent Gifted Posts The Automated Ban List
Blogs
The StarCraft O…
TheStarCraftObserver
Some notes on Reynor vs Zest…
Teoita
Semonkong's Maletsunyane Falls…
Tak3r
Have it your way: a …
waywardstrategy
Balance Discussion
NonY
Singing "publically" for the…
JieXian
A Look Back At GSL Sea…
TheRealNanMan
Customize Sidebar...

Website Feedback

Closed Threads



Active: 800 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
Netherlands10032 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
TL+ Member
Immaterial
Profile Blog Joined September 2010
Canada485 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
Canada2015 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
32030 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
Netherlands10032 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
TL+ Member
NB
Profile Blog Joined February 2010
Netherlands8110 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
Temple of EE-Sama22510 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 | DreamHack StarCrafty Man
Wintex
Profile Blog Joined July 2011
Norway14515 Posts
July 08 2013 19:43 GMT
#8
Thank you r1ch, i love you.
The Bomber boy | EG, PPD | Remember "KTViolet" Woo Jung Ho and "INTERNETHULK" Dennis Hawelka.
Jacmert
Profile Blog Joined October 2011
Canada1606 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 Kingdom7179 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 States6166 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 States851 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 States11882 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
Netherlands10032 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
TL+ Member
Gemini_19
Profile Joined June 2010
United States1179 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
32030 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
Brazil678 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 States302 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
Netherlands10032 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
TL+ Member
R1CH
Profile Blog Joined May 2007
Netherlands10032 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
TL+ Member
1 2 3 4 5 12 13 14 Next All
Please log in or register to reply.
Live Events Refresh
Next event in 2h 5m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
mouzHeroMarine 1271
PiGStarcraft656
-ZergGirl 124
JuggernautJason112
Forgg! 104
Ketroc 99
SpeCial 91
ProTech71
ROOTCatZ 56
PiLiPiLi 44
NonY 13
StarCraft: Brood War
Terrorterran 101
.gypsy 94
Beast 48
Heroes of the Storm
Grubby2467
Counter-Strike: Global Offensive
Fnx 1773
byalli1074
fl0m678
Super Smash Bros
hungrybox2214
C9.Mang0192
Other Games
summit1g52711
Destiny4137
Day[9].tv2210
nookyyy 468
Mew2King362
RotterdaM260
ArmadaUGS259
Hui .158
Beastyqt149
Maynarde100
ZombieGrub71
Nathanias62
Organizations
Counter-Strike: Global Offensive
ESL CS:GO1486
Other Games
gamesdonequick349
BasetradeTV266
StarCraft 2
OGamingTV SC2 236
SC2 Vod Archives66
Blizzard YouTube
[ Show 20 non-featured ]
StarCraft 2
• musti20045 29
• RushiSC 15
• Archon96 3
• Passer2
• BadBorz1 2
• Genesis Gaming
• aXEnki
• Tree_Stump
• intothetv
• AlphaB_SC2
• Kozan
• IndyKCrew
• Alpha X_
• LaughNgamez Trovo
• Laughngamez YouTube
• Matiz_pl
SC2: Legacy of the Void
• KarlJayG
StarCraft: Brood War
• sscaitournament5
• radley 3
• AfreecaTV YouTube
Upcoming Events
OSC
2h 5m
SpeCial vs Nice
Nina vs Cham
Alpha X Series
5h 5m
Zest vs Cure
Alpha Pro Series
8h 5m
Patience vs ByuN
OSC
9h 5m
KCM Race Survival
10h 5m
AfreecaTV BJ Destructio…
10h 5m
WardiTV Invitational
12h 5m
ITaX Trovo Weekly
13h 5m
INnoVation vs DongRaeGu
Stats vs ByuN
Underdogs
18h 5m
Clem vs DnS
Denver vs MarineLorD
BWCL
19h 35m
dM- vs aSh.
[ Show More ]
Underdogs
20h 5m
PtitDrogo vs Stephano
Arrogfire vs Uzikoti
The NA Apprentice
1d
PSISTORM Gaming Misc
1d
eXoN event
1d 2h
AfreecaTV BJ Destructio…
1d 10h
OSC
1d 18h
Alpha Scrims
2 days
Dream vs Zoun
Patience vs RagnaroK
Dream vs Patience
Zoun vs RagnaroK
Patience vs Zoun
RagnaroK vs Dream
KCM Ladies Race Survival
2 days
AfreecaTV BJ Destructio…
2 days
Online Event
2 days
ITaX Ultimate Battle
2 days
INnoVation vs Zest
Team GP event
2 days
Best of the Best Tour
2 days
OyAji vs kogeT
Cross vs vOddy
DragOn vs Bonyth
PSISTORM Gaming Misc
3 days
The NA Apprentice
3 days
Alpha X vs PSISTORM Gaming
TBD vs Team eXon
Team eXon vs Risen from the Gosu
Grand Platypus Open
3 days
BW Jeez Weekly
3 days
BSL
3 days
BeAsT Cup
3 days
Alpha X Junior Champion…
3 days
Best of the Best Tour
3 days
Cross vs TerrOr
Dewalt vs kogeT
Bonyth vs Dandy
The NA Apprentice
4 days
AfreecaTV BJ Destructio…
4 days
Afreeca Challengers Sta…
4 days
BSL
4 days
Alpha Pro Series
4 days
Starkiller vs Garitos
AfreecaTV BJ Destructio…
5 days
Shinhan Tank Proleague
5 days
AfreecaTV BJ Destructio…
6 days
Liquipedia Results

Completed

ASTL Season 2
IEM Katowice 2021
30k/CM Off-S. Tour
IEM Katowice 2021

Ongoing

Best of the Best Tour
KCM Race Survival 2021 Season 1
Deathfate Pro League
Bombastic StarLeague 11
Rogue City Rumble
Shinhan Tank Proleague S4
BWCL Season 52
BWCL Season 52: Div-A
Masters Clash Champ. 2021
NGS Storm Division S2
ESEA S36 - NA Premier
ESEA S36 - EU Premier
ESEA S36 - AU Premier
Snow Sweet Snow #2

Upcoming

ASL Season 11
BW Jeez Weekly 104
BW Jeez Weekly 103
King of Kings 52
BW Jeez Weekly 102
2021 ACS Season 1
BW Jeez Weekly 101
DH Masters Summer: Finals
StayAtHome Story Cup #3
DHM Summer: China
DHM Summer: NA
DHM Summer: Oceania
DHM Summer: Asia
DHM Summer: LatAm
DHM Summer: Europe
2021 GSL Season 1
BLAST Premier Spring Finals
IEM Summer 2021
DH Masters Spring 2021
BLAST Premier Spring Showd.
DreamHack Open Mar 2021
ESL Pro League Season 13
Pinnacle Cup
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 © 2021 TLnet. All Rights Reserved.