Linux rtl_fm two streams?

Status
Not open for further replies.

jshg46

Member
Joined
May 12, 2010
Messages
180
Reaction score
15
I have Debian Jessie setup running a stream for RR. Is there a way to make it broadcast over speakers at the same time?

Using
Rtl_fm
Ezstream
lame
 

blantonl

Founder and CEO
Staff member
Super Moderator
Joined
Dec 9, 2000
Messages
11,816
Reaction score
7,297
Location
Dallas, TX
Yes,

Instead of piping the output directly to lame, instead create a FIFO file and tee the output to that and then pipe it to lame. Then use aplay to play the output to the headphone jack from the FIFO file:

Code:
mkfifo /tmp/feed1

/usr/local/bin/rtl_fm -d 0 -M fm -f 162.55M -p 69 -l 65 -g 50 -t 2 -E pad -s 12k | 
tee /tmp/feed1 |
/usr/bin/lame -r -s 12 --resample 22.05 -m m -b 16 --cbr --lowpass 4 - - |
/usr/bin/ezstream -c /etc/ezstream_bcfy.xml > /var/log/bcfy2.log 2>&1 &

aplay -t raw -r 12000 -f S16_LE -c 1 /tmp/feed1 &
 

jshg46

Member
Joined
May 12, 2010
Messages
180
Reaction score
15
This will work, but it wont start at startup. I have to run the aplay command in putty after everything is running.
 

jshg46

Member
Joined
May 12, 2010
Messages
180
Reaction score
15
Installed pulse and all is good. Thanks for the help.
 
Status
Not open for further replies.
Top