Ezstream unable to connect to Broadcastify

Status
Not open for further replies.

Lammashta

Member
Joined
Feb 18, 2016
Messages
19
Location
Springville, AL
I recently decided to use a Raspberry Pi 3 for my scanner feed so I don't have to leave my PC running 24/7. I followed the directions at Raspberry Pi RTL-SDR Broadcastify - The RadioReference Wiki but looking at bcfy2.log shows "ezstream: Connection to http://audio9.broadcastify.com:80/scrw28qfbvpj failed: Couldn't connect"

I provided the exact same mount, password, and stream name in ScannerCast on Windows, and it works perfectly fine there, so I am completely stumped. My Pi 3 is connected to the internet just fine

This is what my ezstream_bcfy.xml looks like.

Code:
<ezstream>
    <url>http://audio9.broadcastify.com:80/scrw28qfbvpj</url>
    <sourcepassword>PASSWORD</sourcepassword>
    <format>MP3</format>
    <filename>stdin</filename>
    <svrinfoname>St Clair County Public Safety</svrinfoname>
    <svrinfourl>http://www.broadcastify.com</svrinfourl>
    <svrinfogenre>Scanner</svrinfogenre>
    <svrinfodescription></svrinfodescription>
    <svrinfobitrate>16</svrinfobitrate>
    <svrinfochannels>1</svrinfochannels>
    <svrinfosamplerate>22050</svrinfosamplerate>
    <svrinfopublic>0</svrinfopublic>
</ezstream>
 

DC31

Member
Premium Subscriber
Joined
Feb 19, 2011
Messages
1,129
Location
Massachusetts
I recently decided to use a Raspberry Pi 3 for my scanner feed so I don't have to leave my PC running 24/7. I followed the directions at Raspberry Pi RTL-SDR Broadcastify - The RadioReference Wiki but looking at bcfy2.log shows "ezstream: Connection to http://audio9.broadcastify.com:80/scrw28qfbvpj failed: Couldn't connect"

I provided the exact same mount, password, and stream name in ScannerCast on Windows, and it works perfectly fine there, so I am completely stumped. My Pi 3 is connected to the internet just fine

This is what my ezstream_bcfy.xml looks like.

Code:
<ezstream>
    <url>http://audio9.broadcastify.com:80/scrw28qfbvpj</url>
    <sourcepassword>PASSWORD</sourcepassword>
    <format>MP3</format>
    <filename>stdin</filename>
    <svrinfoname>St Clair County Public Safety</svrinfoname>
    <svrinfourl>http://www.broadcastify.com</svrinfourl>
    <svrinfogenre>Scanner</svrinfogenre>
    <svrinfodescription></svrinfodescription>
    <svrinfobitrate>16</svrinfobitrate>
    <svrinfochannels>1</svrinfochannels>
    <svrinfosamplerate>22050</svrinfosamplerate>
    <svrinfopublic>0</svrinfopublic>
</ezstream>
Did you disconnect your Windows feed before trying to connect with ezstream?
 

DC31

Member
Premium Subscriber
Joined
Feb 19, 2011
Messages
1,129
Location
Massachusetts
Contrary to the name of the streamer, I have never found ezstream user friendly at all. I did a little experimenting this afternoon and the darkice streamer on a Pi3 is quite simple if you follow the directions at the Live Audio/Ubuntu Darkice section of the wiki:

Live Audio/Ubuntu Darkice - The RadioReference Wiki

Flash your SD card for the Pi3 with Jessie Lite:

https://www.raspberrypi.org/downloads/raspbian/

Plug your pi into an HDMI tv with mouse and keyboard. Either have ethernet connected or set up wifi:
https://thepihut.com/blogs/raspberry-pi-tutorials/83502916-how-to-setup-wifi-on-raspbian-jessie-lite

then start following the instructions on the Ubuntu Darkice page under "To Fetch the Package"

Skip most of the Darkice Configuration section and do this instead:

$ sudo nano /etc/darkice.cfg

This will open an empty text document in the nano text editor. In this document you want to enter or paste:

[general]
duration = 0
bufferSecs = 10

[input]
device = hw:1,0
sampleRate = 22050
bitsPerSample = 16
channel = 1

[icecast2-0]
bitrateMode = cbr
format = mp3
bitrate = 16
channel = 1
lowpass = 5000
sampleRate = 22050
server = audio?.broadcastify.com (change the ? to the server number)
port = 80 (or try 8000)
password = xxxxxxxx
mountPoint = 12345678
name = Name of your feed here as listed on your feed page.

(That configuration file is shown in the Darkice Configuration section)
Of course, enter your server, password and mount point.

Once you have done this you can attempt to run darkice from the command prompt:

$ darkice

(notice that you do not need the -c /path/to/darkice since you have put the configuration file in the default location /etc/darkice.cfg) DO NOT RUN DARKICE AS SUDO.

This should start the streamer but it will stop if you log out of the streamer.

To keep it streaming after you log out continue with the instructions under stopping and managing darkice.

Ignore the Example Init Script section as the Pi3 does not use init scripts.

Let us know if this works out better for you.

Jim
 

Lammashta

Member
Joined
Feb 18, 2016
Messages
19
Location
Springville, AL
Contrary to the name of the streamer, I have never found ezstream user friendly at all. I did a little experimenting this afternoon and the darkice streamer on a Pi3 is quite simple if you follow the directions at the Live Audio/Ubuntu Darkice section of the wiki:

Live Audio/Ubuntu Darkice - The RadioReference Wiki

Flash your SD card for the Pi3 with Jessie Lite:

https://www.raspberrypi.org/downloads/raspbian/

Plug your pi into an HDMI tv with mouse and keyboard. Either have ethernet connected or set up wifi:
https://thepihut.com/blogs/raspberry-pi-tutorials/83502916-how-to-setup-wifi-on-raspbian-jessie-lite

then start following the instructions on the Ubuntu Darkice page under "To Fetch the Package"

Skip most of the Darkice Configuration section and do this instead:

$ sudo nano /etc/darkice.cfg

This will open an empty text document in the nano text editor. In this document you want to enter or paste:

[general]
duration = 0
bufferSecs = 10

[input]
device = hw:1,0
sampleRate = 22050
bitsPerSample = 16
channel = 1

[icecast2-0]
bitrateMode = cbr
format = mp3
bitrate = 16
channel = 1
lowpass = 5000
sampleRate = 22050
server = audio?.broadcastify.com (change the ? to the server number)
port = 80 (or try 8000)
password = xxxxxxxx
mountPoint = 12345678
name = Name of your feed here as listed on your feed page.

(That configuration file is shown in the Darkice Configuration section)
Of course, enter your server, password and mount point.

Once you have done this you can attempt to run darkice from the command prompt:

$ darkice

(notice that you do not need the -c /path/to/darkice since you have put the configuration file in the default location /etc/darkice.cfg) DO NOT RUN DARKICE AS SUDO.

This should start the streamer but it will stop if you log out of the streamer.

To keep it streaming after you log out continue with the instructions under stopping and managing darkice.

Ignore the Example Init Script section as the Pi3 does not use init scripts.

Let us know if this works out better for you.

Jim
I'll try this once I get home. Will this work with an rtl-sdr, or does it rely on input via the sound card?
 

DC31

Member
Premium Subscriber
Joined
Feb 19, 2011
Messages
1,129
Location
Massachusetts
I'll try this once I get home. Will this work with an rtl-sdr, or does it rely on input via the sound card?
This will not work with an rtl-sdr, only with a usb sound card. Darkice does not allow streaming from stdin which is needed if you are trying to stream from an rtl-sdr stick. I have never had good luck with the stick on a RPi.
 

Lammashta

Member
Joined
Feb 18, 2016
Messages
19
Location
Springville, AL
This will not work with an rtl-sdr, only with a usb sound card. Darkice does not allow streaming from stdin which is needed if you are trying to stream from an rtl-sdr stick. I have never had good luck with the stick on a RPi.
That's a bummer. I don't have a proper scanner.
 

Lammashta

Member
Joined
Feb 18, 2016
Messages
19
Location
Springville, AL
I managed to get it to connect to Broadcastify by granting myself superuser access. Now I have two other problems. rtl_fm is tuning way away from the first frequency (about 3Mhz away), and squelch isn't working.

I'm starting to wonder if the Pi is worth all this frustration.
 

DC31

Member
Premium Subscriber
Joined
Feb 19, 2011
Messages
1,129
Location
Massachusetts
I managed to get it to connect to Broadcastify by granting myself superuser access. Now I have two other problems. rtl_fm is tuning way away from the first frequency (about 3Mhz away), and squelch isn't working.

I'm starting to wonder if the Pi is worth all this frustration.
I agree. I spent way too much time trying to make the rtl_fm stuff work without success on a pi.
 
Status
Not open for further replies.
Top