Installing SSR & Dependancies
Total Page:16
File Type:pdf, Size:1020Kb
Streaming to Tigerdile on Ubuntu using Simple Screen Recorder By AxelRoo Hello fellow Linux enthusiast. No doubt you’re curious if Tigerdile actually works with Ubuntu or with Linux in general for that matter. The answer has gone back and forth as the progressions in distributions brought only changes that feel as if they were intended to cause more confusion and boy did it ever. Let’s get straight to it: when to comes to Linux and streaming via RTMP, its var easier to view an RTMP stream than it is to “publish” an RTMP stream. For the longest time since its initial availability, anyone wanting to publish an RTMP stream to any service out there had to do it through the command line. If you look at the submitted Linux instructions thus far for Tigerdile, you’re gonna see a lot of involvement with the command line. Honestly, thats all there was up until now. While there is still some involvement with the command linux, Simple Screen Recorder is now available to help with some of the many options there are towards streaming and desktop recording in Linux and whaddayaknow- it works with Tigerdile too. Before we begin however, please beware that this program is intended for recording and streaming the Desktop only. There is no functionality for streaming from a webcam or other video recording device. Thats said, let’s right in. Simple Screen Recorder is available for download and installation on many flavors of Linux besides Ubuntu. This document only covers installation or Ubuntu and its variants so far all other flavors, have a look at the link below for all other instructions. http://www.maartenbaert.be/simplescreenrecorder/ First, we need to get some of the core components Ubuntu needs to publish RTMP Streams. This is done through ffmpeg which works in hand with avconv (also known as libav). Both of these use a library to stream to RTMP called x264. These are available in Ubuntu’s default repositories however as of versions beyond 12.04, the version of ffmpeg/avconv has changed over to a fork which has become unreliable for RTMP streaming so we need to add a better repository and use their version of ffmpeg, avconv, and libx264 which happens to work with Tigerdile. Installing SSR & Dependancies 1. If you have installed previous versions of ffmpeg and avconv, you may with to remove them in order to get a clean start. If so, use the commands below. sudo apt-get purge libx264-123 libavcodec-extra-53 libav-tools ffmpeg 2. Now we need to install the repository which has the proper version of ffmpeg, avconv, and libx264 sudo add-apt-repository ppa:jon-severinsson/ffmpeg sudo apt-get update 3. Now we install the software sudo apt-get install ffmpeg libav-tools x264 4. Now that we have the core components for RTMP streaming, we can add the repository for SimpleScreenRecorder and install it sudo add-apt-repository ppa:maarten-baert/simplescreenrecorder sudo apt-get update sudo apt-get install simplescreenrecorder Alright, we’re done with installing Simple Screen Recorder and its dependancies. We can now drop the command line stuff and get into configuring this GUI for streaming with TigerDile. Configuring SSR for Tigerdile In most flavors of Ubuntu, you’ll find the launcher for SSR in the Multimedia section of your Start or Application menu. If not, you can type “simplescreenrecorder” in a terminal or run prompt: Alright! A nice cheery welcome screen however, there isn’t much to see here except for an informative link to SSR website which may come in handy if you run into trouble. tight-wrap:0; bot-style:none; wrap-mode:wrapped-both; frame-type:image; frame-page-xpos:1.000000in; frame-width:2.1639in; frame-height:3.0778in; frame-pref-page:1; position-to:page-above-text; left-style:none; right-style:none; top-style:none; frame-page-ypos:5.279861in For now, press “Continue” to the next screen. 1. Configure Display and Audio In this section you choose which screen to stream. Please bare in mind that OpenGL at this time does _not_ work for RTMP Streaming. Most of the Video options should be self explanatory. A frame rate of 24 or 30 is standard. If the displays are high resolution, scaling may be a viable option. You’ll need to enable “Record Microphone” even if you intend to stream your desktop’s audio. Sources labeled as “Monitor Of” are likely your machines internal sound. Otherwise select the source or device that hosts your microphone. Alas you can only use one or the other. Click [Continue] when done. 2. Configure Stream Settings The “Save as” is actually where you put in your RTMP URL which is in the “Your Stream” tab on TigerDile. Copy and Paste it into the “Save As” section, then add a “/” and then your username. Together, it should look something like rtmp://stream.tigerdile.com/live?token=MyStreamKey/username Container = Other Container Name = flv Video: Codec = H.264 Preset: Defaults to superfast but you may want to play around with it later Audio Codec = Other Codec name = aac All other options are discretionary, [Continue] on. 3. Hot Keys + Preview Alright, we’re at the final lap. If you’d like to test things out before you go live, use [Start Preview]. You can also select your Start and Pause Recording HotKeys. When ready, Click Start. If the Program “Segmentation Faults” when starting the stream. Then either one of the core components such as ffmpeg or avconv is missing or a stale version of libx264-123 is installed. In that case, repeat steps 1 and 2 in the previous chapter and try again. Questions? sootyroo [at] gmail [dot] com.