OBS - Open Broadcast Studio

From BATC Wiki
Revision as of 21:01, 5 October 2023 by G3gja (talk | contribs)
Jump to navigation Jump to search

Open Broadcast Studio is a free and open source software for video recording and live streaming. Used with a separate software video encoder, such as F1EJP's FreeStreamCoder, it can give a semi-professional look to the content sent to a Portsdown DATV transmitter.


It enables high performance real time video/audio capturing and mixing. Create scenes made up of multiple sources including window captures, images, text, browser windows, webcams, capture cards and more.

Screenshot 2019-05-22 07.33.05.png

Hardware

You will need a capable PC. It should have an Intel i5-10500 processor or better, 16GB RAM, an SSD and ideally an nVidia graphics card that supports NVENC video encoding. GTX1070, GTX1660, RTX A2000 or better are suitable models. It's also possible to use the QuickSync video encoder built into the Intel processor mentioned above or later versions with acceptable results.

Your Portsdown and PC must be connected to the same Ethernet network. Usually, you would add a cable from your Portsdown to a spare LAN port on the Internet router. Alternatively, use a small ethernet switch in the shack with a feed back to the router. Don't be tempted to use WiFi for either the Portsdown or the PC; the results will be dissapointing.

Download

Download OBS v27.2.4. It's not the latest version but can be found (amongst others) from this archive: https:// www.filehorse.com/download-obs- ... /download/ and install it. Later versions will not work with the Virtual Camera below, so ignore any requests to upgrade to a newer version.

Download the Virtual Camera v2.05 plugin from here: https://obsproject.com/forum/resources/ ... .949/[url][/url] The installer should find the OBS installation and place the files in the right place.

Download FreeStreamEncoder from here: http://www.vivadatv.org/viewtopic.php?f=78&t=1007 Create a folder in the root of your C: drive named F1EJP (C:\F1EJP) Copy the downloaded file to the new folder.


Using OBS with Portsdown

OBS can be used as a fully flexible video source for the Portsdown DATV system. The program interfaces into the Portsdown over a wired network via the FreeStreamCoder.

Preparing the system

Software

Install OBS v27.2.4 accepting the default

It is also useful to have VLC on the PC for testing, make sure you download the correct one for your system ie 64bit/32bit this will be important for later use with OBS - https://www.videolan.org/vlc/index.en-GB.html

Hardware

You will need to setup the Portsdown to talk to your PC via a network cable, WiFi wont work reliably. I set the Portsdown up with a fixed IP of 10.0.0.1 by adding the text ip=10.0.0.1 to the cmdline.txt file found in the root of your SD card.

Once you have set the Portsdown up and can confirm the network is working, you need to set up OBS.

OBS configuration

With OBS running click on the profile tab and then rename the default profile to 250Ks@3/4FEC.

Now click on the file tab and go to show the profile folder. Within that window you will see a file basic.ini, replace it with the file contained in the zip file below. File:Basic.zip

You can now duplicate this profile and rename them to suit your own choice of SR/FEC combination, I have 250Ks@3/4FEC, 333Ks@3/4FEC,500Ks@1/2FEC,500Ks@3/4FEC and 1Ms@1/2. For each profile you will need to change the muxrate, bitrate and FFVBitrate (video bitrate) values for your given choice of SR/FEC, this can be done from the settings, output (advance), recording or the ini file. Use this site http://www.satbroadcasts.com/DVB-S_Bitrate_and_Bandwidth_Calculator.html to work out your own choice of SR/FEC combinations. You will need to use the "netto ts bitrate" as this is in Mbps we need to multiply this by 1000000 to get bps for both the muxrate and bitrate, for the FFVBitrate (video bitrate) we need to multiply by 0.0006 and just round up to a whole number. So if the "netto ts bitrate" is 0.3721 x 1000000 = bitrate/muxrate = 372100 and FFVbitrate 372100 x 0.0006 = 223.26 = 223. You may need to play around a little bit with the FFVBitrate to suit your individual setup.

You can set the preview screens up to what ever takes your fancy but the FFRescaleRes should be appropriate for the SR in use so 768x576 or 352x288 are better suited to SR333/250 where as 1280x720 is better left to SR's of 500Ks and above.

Once OBS is set up you can test it's all working with VLC set to receive a network connection on udp://230.0.0.11:20000 and hitting the start recording button on OBS.

ffmpeg batch file

You now need to download the batch file below and you will need to edit it to accommodate your choice of SR/FEC's, Callsign, Ip address.

File:OBS2IPTSin.zip


In Conclusion

Please note the above guide is just that a guide as every set up will be different to the next so experimentation may be necessary to get it working 100%


PLEASE NOTE - THIS IS QUITE AN OLD ARTICLE (mid 2019) AND MUCH PROGRESS HAS BEEN MADE SINCE. WHILE THE INFORMATION IS GOOD, PROGRESS HAS BEEN MADE, ESPECIALLY AT VERY LOW SYMBOL RATES.