Perhaps, everyone knows about YouTube, the third most visited site in the world. As you know YouTube allows to perform live streaming from any source. Nimble Streamer can be used as stream source to YouTube. You can combine social power of YouTube and performance of Nimble Streamer.
You can use any encoder to create live stream (e.g. Adobe FMLE or FFMPEG). In this article we are going to describe the process of live streaming publishing from Larix Broadcaster mobile app to YouTube via Nimble Streamer. Nimble Streamer perfectly republishes RTSP and RTMP streams to YouTube.
To create live broadcast on YouTube you need to perform the following steps:
1. Set up the YouTube live event;
2. Configure the stream republishing in Nimble Streamer;
3. Install, set up and launch Larix Broadcaster mobile app;
4. Launch your live event on YouTube and check the result.
Set up the YouTube live event
In the "Basic info" tab of the Info and Settings page, enter the relevant information about the stream (title, description, date/time, location, and so on) into the fields. For Type, select "Custom (more encoding options)" and press the "Create event" button.
In the "Main Camera" tab of the event's "Ingestion Settings" page, under "Choose maximum sustained bitrate of your encoder", select the ingestion option that best represents your network and encoding capabilities (for our example we choose 300 Kbps - 700 Kbps (240p)). We use low bitrate to guarantee streaming in any mobile network.
Under "Select your encoder", select "Other encoders". Then, copy the "Stream Name" and "Primary Server URL" information to some text document. We'll need this information to configure Nimble Streamer. Press the "Save changes" button.
Now we need to perform media server configuration. Do not close YouTube tab, we will return to it later for live stream checking.
Configure the stream republishing in Nimble Streamer
Go to "Interfaces" tab and press "Add RTSP interface" button.
Specify the port number in appeared dialog, this port number will be used in Larix Broadcaster settings. Select your media server instance and press the "Save" button.
Go to "RTMP republish" and press the "Add" button.
Specify the "Source application" and "Source Stream" parameters in the appeared dialog, they will be used in mobile application settings. In the "Destination address" field provide the value of "Primary Server URL" field from YouTube live event settings. Leave default "Port" value 1935. Type live2 in the "Destination application" field. Specify the value of "Stream Name" field from YouTube setting in the "Destination application" field.
So, the Nimble Streamer configuration is completed. Proceed to configure mobile application.
Install, set up and launch Larix Broadcaster
If Larix Broadcaster not yet installed, then read the "Larix Broadcaster mobile streaming setup and usage" article.
Launch the Larix Broadcaster application on your mobile device and press "Settings..." button.
Select "Video Size" in Settings menu and select 320x240. Specify 30 fps in the FPS menu entry. We use low resolution in our example because not all mobile devices have ability to perform encoding of high resolution video, and channels of cellular companies often do not have a proper condition to transmit high resolution video with 30 fps. YouTube issue warning if frame rate less than 30 fps, because this led to buffering and viewer often stop viewing. Modern mobile devices are able to generate stream with 1280x720 resolution and 30 fps and more.
Go to "Connection #0, URI" menu entry. Specify the IP-address of your media server, Port and Path (if you have specified Push login and Push password then RTSP URL should look like rtsp://push_login:firstname.lastname@example.org:1937/live/stream). Press "Ok" button to save your settings.
Launch the YouTube live event and check the result
Your live streaming should be started on YouTube. To view your live stream click the "View on Watch Page" button.
Now you can verify that live steaming from your mobile device is launched on YouTube.
The quality of live streaming depends of your mobile device computing power and connection speed in your cellular provider network.
Larix Broadcaster is used as example in this article. Any device (DSLR or web-camera) can be used as a source for a live broadcast stream. Such applications as Adobe Flash Media Live Encoder or FFMPEG can be used as an your live video encoder. Nimble Streamer equally well streams and restreams RTMP both to YouTube and to any other CDN from any source of live video.
YouTube live stream setup, Larix Broadcaster mobile streaming setup and usage, Larix Broadcaster, Mobile Broadcasting Library and SDK, Installing Nimble Streamer, Transmux RTSP to HLS, RTMP, DASH and more via Nimble Streamer, Live Streaming features in Nimble,