Question / Help transcoding

joe7dust

Member
I want to take a 1080p stream from twitch.tv and transcode it to 1 or 2 lower quality streams. I am paying for a linux shared server with 1and 1 and they said I have to get all the software and instructions before asking them to implement it. Please point me in the right direction. My CPU really cannot take broadcasting both 1080p and something else, I've tried. MY 2nd computer can't view the stream smoothly due to crappy GPU. Technicalllly there should be a way for it to transcode but I have no idea how I would do that on a regular computer without viewing the stream first.
 

dodgepong

Administrator
Community Helper
nginx with the RTMP module can do it with several exec directives in the nginx.conf, I believe, but if you want to do this on Twitch.tv, I think it would kind of be a kludge. You would have to register multiple channels and then stream to each one of them. I guess if you're not a partner, it's better than nothing, if you want to try it. You'll probably have to put in some elbow grease in figuring out how to get it to work...it won't be trivial.

Red5 might be able to do it, too, but again, the end-user experience will be weird since you have different channels for each quality level.
 

hilalpro

Member
this is alot easier to do on own3d than twitch.. but you could still do it on twitch, the only way to have 2 different quality's on 1 channel page is to be a twitch partner.. so you will need at least 2 channels.

you would need an app called jtv-downloader that uses rtmpdump to dump your stream to a real time file and you can then transcode and restream to channel n2 using ffmpeg.. this should create a very noticeable delay though.. it could help alot if obs had the ability to dump files in real time so you wouldn't have to go trough a twitch server to get the data.
 

dodgepong

Administrator
Community Helper
hilalpro said:
you would need an app called jtv-downloader that uses rtmpdump to dump your stream to a real time file and you can then transcode and restream to channel n2 using ffmpeg.. this should create a very noticeable delay though.. it could help alot if obs had the ability to dump files in real time so you wouldn't have to go trough a twitch server to get the data.
It sounds like he believes his computer cannot handle encoding 2 video files at once, which is why he wants to use his VPS to do the transcoding, so I don't think running ffmpeg on his own computer will work.
 

hilalpro

Member
dodgepong said:
hilalpro said:
you would need an app called jtv-downloader that uses rtmpdump to dump your stream to a real time file and you can then transcode and restream to channel n2 using ffmpeg.. this should create a very noticeable delay though.. it could help alot if obs had the ability to dump files in real time so you wouldn't have to go trough a twitch server to get the data.
It sounds like he believes his computer cannot handle encoding 2 video files at once, which is why he wants to use his VPS to do the transcoding, so I don't think running ffmpeg on his own computer will work.
no ffmpeg should run on the linux server.. or even a lan machine
 

dodgepong

Administrator
Community Helper
hilalpro said:
dodgepong said:
hilalpro said:
you would need an app called jtv-downloader that uses rtmpdump to dump your stream to a real time file and you can then transcode and restream to channel n2 using ffmpeg.. this should create a very noticeable delay though.. it could help alot if obs had the ability to dump files in real time so you wouldn't have to go trough a twitch server to get the data.
It sounds like he believes his computer cannot handle encoding 2 video files at once, which is why he wants to use his VPS to do the transcoding, so I don't think running ffmpeg on his own computer will work.
no ffmpeg should run on the linux server.. or even a lan machine
Oh, I see, for some reason I thought you were suggesting he run it on his local computer.

Hosting an actual RTMP server on the VPS might result in less delay, but it's definitely more complicated to set up, and in the end, it will be running ffmpeg to stream to Twitch as well (but it will be getting the data from OBS, not Twitch). I think both options could work.
 

joe7dust

Member
All this talk is too complicated. I got it working with a simpler setup. A guy in OBS IRC gave me a 2nd OSB.exe that runs separately. I just run 2 OBS one for each server, each with their own quality settings.
 
Top