DJSoft.Net Community Forums

DJSoft.Net => How To Guides => Topic started by: djsoft on November 24, 2018, 10:23:46 AM

Title: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: djsoft on November 24, 2018, 10:23:46 AM
The guide shows how to create a Facebook Live stream using RadioBOSS. The stream will consist of a static image (e.g. radio station logo) and audio from what is playing in RadioBOSS.

Install FFMpeg
1. Download FFMpeg from https://www.ffmpeg.org (you will need Windows build) or use the file hosted on our server: https://dl.djsoft.net/ffmpeg.zip
2. Unpack FFMpeg archive. In the example we'll use C:\ffmpeg location.

Get Facebook Live streaming credentials
1. Visit https://www.facebook.com/live/create and click the Create live stream option.
2. It is recommended to enable the "Use a persistent stream key" option to prevent stream key from changing on each broadcast.
c. The Server URL and Persistent Stream Key will be needed for the next step

Create custom encoder in RadioBOSS
1. Open Settings and navigate to Broadcasting. Click the Advanced button and then click theCustom encoders button.
2. In the custom encoders window click the + button, name the encoder ("FB Live" in the example) and enter the following command:
Quote
C:\ffmpeg.exe -r 30 -loop 1 -i "path_to_image" -f s16le -ac {Channels} -ar {SampleRate} -i - -c:a aac -b:a 128k -c:v h264 -b:v 768k -g 60 -f flv "stream"

Change the path_to_image part to actual image location, e.g. C:\radio\background.jpg

Change the stream part to Server URL and Persistent Stream Key, following each other. For instance,
Server URL is rtmp://live-api-s.facebook.com:80/rtmp/
Persistent Stream Key is 10204966136309946?ds=1&s_sw=0&s_vt=api-s&a=AbwYXNiE0zQsjgJY
The stream would be
Code: [Select]
rtmp://live-api-s.facebook.com:80/rtmp/10204966136309946?ds=1&s_sw=0&s_vt=api-s&a=AbwYXNiE0zQsjgJY
The example of how the final command would look like:
Quote
C:\ffmpeg.exe -r 30 -loop 1 -i "C:\radio\background.jpg" -f s16le -ac {Channels} -ar {SampleRate} -i - -c:a aac -b:a 128k -c:v h264 -b:v 768k -g 60 -f flv "rtmp://live-api-s.facebook.com:80/rtmp/10204966136309946?ds=1&s_sw=0&s_vt=api-s&a=AbwYXNiE0zQsjgJY"

Start streaming
1. Add new encoder in RadioBOSS. Enter [IA]:8000:50 to the Server field.
2. At the bottom, select the "FB Live" encoder. Make sure the rest of the settings are at their defaults: sample rate is 44100, channels - stereo, bitrate - 128 kbps. Click OK.
3. Start music playback in RadioBOSS.

On successful connection, the report in the bottom-left corner will show the following message: Connected to server! (output N). and the stream will be available on the Facebook live page.

The Facebook page should now show the image and play audio (it can be muted by default on the facebook page).
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: Lou Labetti on December 09, 2018, 12:47:31 AM
Is there a Listener count available  using this?
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: djsoft on December 10, 2018, 01:41:06 AM
Is there a Listener count available  using this?
I'm afraid not.
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: Alberto Carmona on March 05, 2019, 06:02:43 PM
Encoder closed (output 2) - possibly unsupported format. Restarting...
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: djsoft on March 07, 2019, 08:45:00 AM
Encoder closed (output 2) - possibly unsupported format. Restarting...
Please make sure all parameters for ffmpeg are correct and the credentials for streaming are actually working.
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: ΓΙΩΡΓΟΣ ΠΕΡΕΣΟΓΛΟΥ on March 09, 2019, 07:00:09 AM
Dimitris good morning. I would like to ask you to provide more information about installing and adjusting to what we download.
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: djsoft on March 09, 2019, 10:18:55 AM
Dimitris good morning. I would like to ask you to provide more information about installing and adjusting to what we download.
You only need to download ffmpeg, there are links in the first post.
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: ΓΙΩΡΓΟΣ ΠΕΡΕΣΟΓΛΟΥ on March 09, 2019, 01:40:44 PM
Dimitris thank you for your answer! I want to tell you the steps I'm taking to see what's wrong. step 1. download the file from the first download link. the problem I'm facing there is that I do not have an installation file how to install it. next step. I open the radioboss and then go to the relay. there I choose for advanced and in the name I write Facebook live. in the command I put the text that you have given us. my question now to them is. First, How do I install the file and secondly I will put facebook rtmp and password. thank you in advance for your answer!
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: djsoft on March 09, 2019, 02:26:59 PM
download the file from the first download link. the problem I'm facing there is that I do not have an installation file how to install it
It's not needed to be installed, you only need to extract the archive.

Anyway, the procedure currently is somewhat complex, so you may wish to wait until RadioBOSS has native support for RTMP streaming.
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: WiReXF on March 31, 2019, 05:13:00 AM
youtu.be/pp572lQUvk4 why dont work?
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: djsoft on March 31, 2019, 05:59:29 AM
youtu.be/pp572lQUvk4 why dont work?
Can you please provide more information on the problem?
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: WiReXF on March 31, 2019, 06:07:17 AM
youtu.be/pp572lQUvk4 why dont work?
Can you please provide more information on the problem?
I did exactly as written in the instructions.
I connect to the server (Connected to server! (Output 1)), start the music and give the error "Encoder closed (output 1) - possibly unsupported format. Restarting ..."
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: djsoft on April 02, 2019, 08:32:17 AM
You need to have something playing in RadioBOSS before a connection is made.
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: WiReXF on April 02, 2019, 03:01:10 PM
You need to have something playing in RadioBOSS before a connection is made.
thank.
The problem was due to gif images
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: criss_x on May 21, 2019, 01:29:00 PM
I followed every step and checked every detail of the instructions but it does not work!!!!

1) I created in the proper encoder in the custom encoders list adding the edited with the given parameters by the Facebook. But I get an error message (Error code 2)!!!
2) During the creation of the live stream in the Facebook 1) The "Go live" button remains inactive!!!

Also I noticed that something has changed in the Facebook:
The API supports only RTMPS!!! So I used the exact server URL as given!!!


Any ideas about the way to resolve it????...
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: djsoft on May 23, 2019, 07:32:12 AM
Currently I can't provide you with any solution for this. We work on improving RTMP/RTMPS support, and in one of the future RadioBOSS updates it will be much easier, you just input the stream URL and that's it.
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: Mike Spencer on September 03, 2019, 03:23:39 PM
Hi community. I have followed all the steps and it works excellent. A query, where should I modify to lower the quality? In Facebook reports I see that the climb is cut at times.
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: djsoft on September 05, 2019, 05:38:09 AM
Hi community. I have followed all the steps and it works excellent. A query, where should I modify to lower the quality? In Facebook reports I see that the climb is cut at times.
You can modify the command line to change encoding parameters. But there's not much you can do as Facebook has requirements on formats, sizes etc.
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: benhrungtoc on December 18, 2019, 03:34:16 AM
Thanks so much! :'(
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: Omar O'Hara on March 17, 2020, 12:57:40 AM
Thanks for this.

What if I just want to stream video to my website instead of Facebook?
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: djsoft on March 18, 2020, 04:03:32 AM
What if I just want to stream video to my website instead of Facebook?
This is not supported with RadioBOSS.
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: Christian Rguez on March 31, 2020, 01:20:51 PM
hola para los tamaños en facebook ... va depende del tamaño del logo. si tenes un logo de  tamaño 1280x720 esa sera la calidad del tamaño otro ejemplo en mi caso.... uso un tamaño de imagen de  640x480 y esa es el tamaño y calidad de subida en el facebook
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: Christian Rguez on March 31, 2020, 01:22:20 PM
hello for sizes on facebook ... it depends on the size of the logo. if you have a logo of 1280x720 size that will be the quality of the size another example in my case .... I use an image size of 640x480 and that is the size and quality of upload on facebook
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: Mano on May 30, 2020, 03:23:21 PM
Hi, I have followed all the steps correctly for facebook live stream of my Radio Boss Broadcast with my player on, but still I am having this error "Cannot start encoder for broadcasting (output 2). Error code: 2". please help? Thank you.
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: djsoft on May 31, 2020, 08:37:19 AM
It seems that it's unable to find the ffmpeg.exe file - the path can be incorrect.
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: Mano on June 03, 2020, 10:16:21 AM
 ;) Thank you, in fact, I have put the ffmpeg.exe file in a directory name ffmpeg and omitted the directory path. But one more thing I want to know, is it possible to have a moving image in terms of GIF or AVI for facebook live image to display on the page when going live. I have tried both but it did not work, any alternative for any video image. Thank you for your valuable information. ;) ;) ;) ;D
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: djsoft on June 05, 2020, 04:10:00 AM
I suppose you need to read ffmpeg docs to see what you can do. It can encode a series of images into video or use a video file instead of still image.
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: radio maran on June 26, 2020, 05:33:53 AM
Is it possible to broadcast live on YouTube like Facebook?
Title: Re: [Facebook Live] Facebook Live streaming with RadioBOSS
Post by: djsoft on June 27, 2020, 02:35:40 AM
Is it possible to broadcast live on YouTube like Facebook?
Technically, yes, the configuration will be the same as in this example for Facebook.