Jump to content

Hello,

I want to create a server possibly on a Raspberry Pi and it will take in an OBS stream and spit that stream out as:

  • an mp4 or a file format that I can upload to a server
  • http streaming
  • push the stream to youtube

Is this possible and if it is can you direct me to a solution?

What this is used for:

Taking a Mediashout projection, adding an input from a mixer.

Then having people view the stream on the website and when it is over, a saved copy will be uploaded to YT or another site.

 

Link to comment
https://linustechtips.com/topic/865012-rtmp-streaming-server/
Share on other sites

Link to post
Share on other sites

29 minutes ago, Ryois said:

Hello,

I want to create a server possibly on a Raspberry Pi and it will take in an OBS stream and spit that stream out as:

  • an mp4 or a file format that I can upload to a server
  • http streaming
  • push the stream to youtube

Is this possible and if it is can you direct me to a solution?

What this is used for:

Taking a Mediashout projection, adding an input from a mixer.

Then having people view the stream on the website and when it is over, a saved copy will be uploaded to YT or another site.

 

I'm fairly sure a raspberry pi is going to be way too slow to do that kind of on-the-fly transcoding. You can configure OBS to record to disk (at higher quality) and stream at the same time, though. Might be easier to do this with a second pc if you have one, either using a video capture card/device, or using the NDI plugin for OBS to send the stream relatively uncompressed over your home network and let the second pc do all the heavy lifting.

Link to comment
https://linustechtips.com/topic/865012-rtmp-streaming-server/#findComment-10745496
Share on other sites

Link to post
Share on other sites

3 minutes ago, Tabs said:

I'm fairly sure a raspberry pi is going to be way too slow to do that kind of on-the-fly transcoding. You can configure OBS to record to disk (at higher quality) and stream at the same time, though. Might be easier to do this with a second pc if you have one, either using a video capture card/device, or using the NDI plugin for OBS to send the stream relatively uncompressed over your home network and let the second pc do all the heavy lifting.

I have done RTMP streaming with the Pi and it can do 720p okay haven't tested 1080p. Yes I know I can tell OBS to record and stream at the same time, I want this to be like, tell OBS to record to the Pi and the Pi does everything else. The PC I am running Mediashout is a https://ark.intel.com/products/80806/Intel-Core-i7-4790-Processor-8M-Cache-up-to-4_00-GHz with Intel HD Graphics. 

Link to comment
https://linustechtips.com/topic/865012-rtmp-streaming-server/#findComment-10745523
Share on other sites

Link to post
Share on other sites

2 minutes ago, Ryois said:

I have done RTMP streaming with the Pi and it can do 720p okay haven't tested 1080p. Yes I know I can tell OBS to record and stream at the same time, I want this to be like, tell OBS to record to the Pi and the Pi does everything else. The PC I am running Mediashout is a https://ark.intel.com/products/80806/Intel-Core-i7-4790-Processor-8M-Cache-up-to-4_00-GHz with Intel HD Graphics. 

Just performing passthrough is relatively light work, but I'm not sure if I'm understanding your usage/question correctly.

 

Are you only wanting to save an exact copy of the stream to a file at the same time as passing it through to an rmtp sink? If so, you may find there to be a substantial loss in quality once you actually upload those to YouTube, since it'll get processed by YouTube once uploaded. I had assumed you wanted to save a high-bitrate version of the stream to disk, and a lower quality encode to stream. That situation would be too taxing for a pi, so I'm sorry if I assumed incorrectly.

Link to comment
https://linustechtips.com/topic/865012-rtmp-streaming-server/#findComment-10745537
Share on other sites

Link to post
Share on other sites

1 minute ago, Tabs said:

Just performing passthrough is relatively light work, but I'm not sure if I'm understanding your usage/question correctly.

 

Are you only wanting to save an exact copy of the stream to a file at the same time as passing it through to an rmtp sink? If so, you may find there to be a substantial loss in quality once you actually upload those to YouTube, since it'll get processed by YouTube once uploaded. I had assumed you wanted to save a high-bitrate version of the stream to disk, and a lower quality encode to stream. That situation would be too taxing for a pi, so I'm sorry if I assumed incorrectly.

5a19cbfc62ae3_UntitledDiagram.png.a3a34bfe3e83646cd5d867291acf309d.png

Link to comment
https://linustechtips.com/topic/865012-rtmp-streaming-server/#findComment-10745565
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×