Upvote Upvoted 4 Downvote Downvoted
TCP Relay Repost
posted in Off Topic
1
#1
3 Frags +

Original post by svfrey on NATF2. Just saving his thread.

Alright everyone, after searching around for a while to find a fix for only averaging 5000 kb/s on XSplit when my VBV max bitrate was set to 8k, and my internet connection is capable of roughly 20 times that, I came across this uh-mayzing program that some eastern european dude wrote that essentially re-routes the outgoing bandwidth from your streaming program through localhost, then directly to the twitchtv ingestion server, essentially bypassing xsplit altogether as far as uploading goes, but retaining all the features of xsplit.

Now, a lot of what I just said probably doesn't make a whole lot of sense, but it doesn't have to, and as long as you follow the instructions below, you should be able to max out your connection with the greatest of ease.

~~Disclaimer, paraphrased from the program creator's thread: This will not give you faster internet. If you have a shit connection, it will not make that better. This will only allow you to get more out of the connection that you already have, people with shit connections included.~~

**Note: Please don't turn this into a speedtest thread; we already have one, and the previous streaming thread almost turned into one. As hilarious as it is to laugh at some people who have abysmal connections, and for people like me with access to super sweet connections to scoff at the plebians below us, just don't. pls. thanks.**

Original post by svfrey on NATF2. Just saving his thread.

Alright everyone, after searching around for a while to find a fix for only averaging 5000 kb/s on XSplit when my VBV max bitrate was set to 8k, and my internet connection is capable of roughly 20 times that, I came across this uh-mayzing program that some eastern european dude wrote that essentially re-routes the outgoing bandwidth from your streaming program through localhost, then directly to the twitchtv ingestion server, essentially bypassing xsplit altogether as far as uploading goes, but retaining all the features of xsplit.

Now, a lot of what I just said probably doesn't make a whole lot of sense, but it doesn't have to, and as long as you follow the instructions below, you should be able to max out your connection with the greatest of ease.

~~Disclaimer, paraphrased from the program creator's thread: This will not give you faster internet. If you have a shit connection, it will not make that better. This will only allow you to get more out of the connection that you already have, people with shit connections included.~~

**Note: Please don't turn this into a speedtest thread; we already have one, and the previous streaming thread almost turned into one. As hilarious as it is to laugh at some people who have abysmal connections, and for people like me with access to super sweet connections to scoff at the plebians below us, just don't. pls. thanks.**
2
#2
0 Frags +

Alright, let's get this shit started.

1. Before you do anything else, make sure you have Java Runtime Environment installed in your computer (the latest version), which can be found on their website ( http://www.oracle.com/technetwork/java/javase/downloads/jre-7u3-download-1501631.html ). Simply choose the package that matches your OS, download it, and install it.

2. After you have completed step 1, you will then need to download this file: http://s3.amazonaws.com/tf2pug_eldorado/files/TCPRelay.zip . Once you have downloaded it, open and extract the contents using a program such as 7zip ( http://www.7-zip.org/ ; free, open-source, will get the job don EZ) to the folder/location of your choice. Make sure you have three files: the readme, the command script, and the JAR file.

The xsplit thread about it can be found here ( http://www.xsplit.com/forum/viewtopic.php?f=2&t=7159#p30016 ), however if you are not a member, you will not be able to download the file that is at the bottom of the OP, which is why I wasted the roughly 40kb of space to mirror it on natf2.

3. Once you have completed step 2, your first thought may be to go directly the readme and proceed without reading the rest of this post. Well, that's what I thought, but it gets a bit complicated. For the most part, the directions there will get you quite far, but before you are ready to stream, there is one last thing you must do, so I'll simply copy/paste the readme here, and then pick up where it falls short.

****Before we get to that, however, you need one piece of information: go into xsplit, go to edit your channel settings, and make a note of what is in the "Location" field (this is the ingestion server to which you broadcast). Now, go to ( http://support.twitch.tv/discussion/comment/8851#Comment_8851 ), scroll down to the list of twitchtv ingestion servers, and find the address that matches what you just saw in your location field. copy and paste the address, starting with "live" and ending with ".tv" (For example, what I copied is live-iad-backup.justin.tv"), into your preferred text editor (eg., notepad). Keep that document open, because we'll need that server address later.****

4. Open XSplit, click on the "Broadcast" tab, then click on the "edit channels" option from the drop-down menu.

5. Click on "add" and choose "custom rtmp", the first option on the pop-up list.

http://i.imgur.com/gB77M.png

6. fill in the "channel" fields as such

http://i.imgur.com/bq0xD.png

7. fill in the video/audio encoding fields as you normally would, except in the "VBV max bitrate field", enter a number that is about 90% of your maximum upload bandwidth, in kb/s. This number should be greater than the one you currently use. For kicks, max out the audio quality by picking 44.100 KHz 16-bit stereo and 320000 audio bitrate.

8. Once you have completed steps 6 and 7, click "OK" to save your channel settings.

Now here comes the tricky part.

9. Navigate to the folder to which you extracted the original three files.

10. Right-click on "tcprelay", and choose "create shortcut"

http://i.imgur.com/UdKZF.png

Alright, let's get this shit started.

1. Before you do anything else, make sure you have Java Runtime Environment installed in your computer (the latest version), which can be found on their website ( http://www.oracle.com/technetwork/java/javase/downloads/jre-7u3-download-1501631.html ). Simply choose the package that matches your OS, download it, and install it.

2. After you have completed step 1, you will then need to download this file: http://s3.amazonaws.com/tf2pug_eldorado/files/TCPRelay.zip . Once you have downloaded it, open and extract the contents using a program such as 7zip ( http://www.7-zip.org/ ; free, open-source, will get the job don EZ) to the folder/location of your choice. Make sure you have three files: the readme, the command script, and the JAR file.

The xsplit thread about it can be found here ( http://www.xsplit.com/forum/viewtopic.php?f=2&t=7159#p30016 ), however if you are not a member, you will not be able to download the file that is at the bottom of the OP, which is why I wasted the roughly 40kb of space to mirror it on natf2.

3. Once you have completed step 2, your first thought may be to go directly the readme and proceed without reading the rest of this post. Well, that's what I thought, but it gets a bit complicated. For the most part, the directions there will get you quite far, but before you are ready to stream, there is one last thing you must do, so I'll simply copy/paste the readme here, and then pick up where it falls short.

****Before we get to that, however, you need one piece of information: go into xsplit, go to edit your channel settings, and make a note of what is in the "Location" field (this is the ingestion server to which you broadcast). Now, go to ( http://support.twitch.tv/discussion/comment/8851#Comment_8851 ), scroll down to the list of twitchtv ingestion servers, and find the address that matches what you just saw in your location field. copy and paste the address, starting with "live" and ending with ".tv" (For example, what I copied is live-iad-backup.justin.tv"), into your preferred text editor (eg., notepad). Keep that document open, because we'll need that server address later.****

4. Open XSplit, click on the "Broadcast" tab, then click on the "edit channels" option from the drop-down menu.

5. Click on "add" and choose "custom rtmp", the first option on the pop-up list.

[img]http://i.imgur.com/gB77M.png[/img]

6. fill in the "channel" fields as such

[img]http://i.imgur.com/bq0xD.png[/img]

7. fill in the video/audio encoding fields as you normally would, except in the "VBV max bitrate field", enter a number that is about 90% of your maximum upload bandwidth, in kb/s. This number should be greater than the one you currently use. For kicks, max out the audio quality by picking 44.100 KHz 16-bit stereo and 320000 audio bitrate.

8. Once you have completed steps 6 and 7, click "OK" to save your channel settings.

Now here comes the tricky part.

9. Navigate to the folder to which you extracted the original three files.

10. Right-click on "tcprelay", and choose "create shortcut"

[img]http://i.imgur.com/UdKZF.png[/img]
3
#3
0 Frags +

11. Right-click the shortcut you have just created, and click "properties" at the bottom of the drop-down menu.

12. In the window that pops, up, there will be a field named "Target"

13. Click inside that field, hold the right arrow key until you get to the end, press space once, then add the following (without quotation marks): "-th:<the ingestion server address you copied earlier, starting with "live" and ending with ".tv">"

For comparison, the contents of your target field should look roughly like this:
C:\Users\<username>\Downloads\TCPRelay\tcprelay.cmd -th:live-iad.justin.tv

14. Click "apply" and then "ok" at the bottom of the properties window.

15. double click that shortcut, making sure that a command window pops up that says something about listening to port 1935

16. Open xsplit, go to edit the custom rtmp channel you created earlier, test the bandwidth, and voila! you should be able to access a much larger percentage of your upload capabilities and access a higher VBV max bitrate than you had before.

Feel free to test this out, and post here with any questions/problems that need troubleshooting. You of course can check the xsplit thread, but I believe that if you have done everything in order, no issues should arise.

Happy streaming!

Last edited: Sat, 21 Apr 2012, 07:56am by svfrey

11. Right-click the shortcut you have just created, and click "properties" at the bottom of the drop-down menu.

12. In the window that pops, up, there will be a field named "Target"

13. Click inside that field, hold the right arrow key until you get to the end, press space once, then add the following (without quotation marks): "-th:<the ingestion server address you copied earlier, starting with "live" and ending with ".tv">"

For comparison, the contents of your target field should look roughly like this:
C:\Users\<username>\Downloads\TCPRelay\tcprelay.cmd -th:live-iad.justin.tv

14. Click "apply" and then "ok" at the bottom of the properties window.

15. double click that shortcut, making sure that a command window pops up that says something about listening to port 1935

16. Open xsplit, go to edit the custom rtmp channel you created earlier, test the bandwidth, and voila! you should be able to access a much larger percentage of your upload capabilities and access a higher VBV max bitrate than you had before.

Feel free to test this out, and post here with any questions/problems that need troubleshooting. You of course can check the xsplit thread, but I believe that if you have done everything in order, no issues should arise.

Happy streaming!

Last edited: Sat, 21 Apr 2012, 07:56am by svfrey
Please sign in through STEAM to post a comment.