Hi,
to start with: I am a complete newbie in the Raspberry arena, but for one of my products (www.RX014.com) I would like to have an audio streamer. My thought is to use a PasPI Zero W to stream the audio to the internet and the new Zero sound card taking the audio from the RX014. That would enable remote listening.
But as said: I have no idea what I have to do to make this work.
Does anyone have any experience on this topic and would like to help me?
Thanks,
Joop
Zero streamer
Moderator: flatmax
Re: Zero streamer
Have you seen this thread ?
http://forum.audioinjector.net/viewtopi ... 4&start=30
That may be a good place to start ... if you are thinking along different lines, perhaps this thread is better ?
Matt
http://forum.audioinjector.net/viewtopi ... 4&start=30
That may be a good place to start ... if you are thinking along different lines, perhaps this thread is better ?
Matt
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector
Re: Zero streamer
Hello Matt,
some more information from my side.
I'm using a Raspberry PI Zero W, with the official "Raspbian Stretch with desktop" release version September 2017, relase date 2017-09-07.
The audioinjector card is mounted on top of it, and is recognized by the PI as follows:
pi@macbepi01:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: audioinjectorpi [audioinjector-pi-soundcard], device 0: AudioInjector audio wm8731-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
pi@macbepi01:~ $
On the PI desktop on Preferendes --> Audio Device Settings the card is recognized as "audioinjector-pi-soundcard (Alsa mixer) (Default)"so that too looks OK to me.
I'm trying to stream a continious audio file from a radio, connected to the "direct input" of the audioinjector card, bij means of VLC using a command shell that looks like:
#!/bin/sh
#
cvlc -vvv --no-video alsa:// --sout '#standard{access=http,mux=ogg,url=192.168.192.4:8080}'
pi@macbepi01:~ $
because of the -vvv option I get numerous pages of screen output, but the last few lines look like
[018af768] core mux warning: late buffer for mux input (84553)
[018e7c78] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[018e7c78] core demux meta debug: no meta reader modules matched
[018a9630] core input debug: `alsa://' successfully opened
That looks fine to me. When omitting the -vvv and executing the command I see:
pi@macbepi01:~ $ cvlc --no-video alsa:// --sout '#standard{access=http,mux=ogg,url=192.168.192.4:8080}'
VLC media player 2.2.6 Umbrella (revision 2.2.6-0-g1aae78981c)
[0054b150] dummy interface: using the dummy interface module...
[00551630] mux_ogg mux: Open
^C[00551630] mux_ogg mux: Close
pi@macbepi01:~ $
So, no big errors and closed by a Ctrl-C. I would say the PI is streaming.
However, when going to another system in my 192.168.192.X network, in this case a Windows 7 laptop with VLC installed I cannot open the stream
with "File --> Open --> Network stream --> http://192.168.192.4:8080. And that is just what I wanted.
For the VLC command structure I've used a document "https://www.scribd.com/document/9765652 ... ming-Howto" but I'm not sure if I have used the correct mux syntax in my command line.
Questions : do you have experience with streaming and VLC?
streaming with ffmpeg is also acceptable for me, as long as I get something to work
when the PI appears to be streaming shoud I be able to hear the audio on the Audioinjectors' phones output or direct output?
Your help will be very much appreciated, thanks in advance and best regards, Joop
some more information from my side.
I'm using a Raspberry PI Zero W, with the official "Raspbian Stretch with desktop" release version September 2017, relase date 2017-09-07.
The audioinjector card is mounted on top of it, and is recognized by the PI as follows:
pi@macbepi01:~ $ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: audioinjectorpi [audioinjector-pi-soundcard], device 0: AudioInjector audio wm8731-hifi-0 []
Subdevices: 1/1
Subdevice #0: subdevice #0
pi@macbepi01:~ $
On the PI desktop on Preferendes --> Audio Device Settings the card is recognized as "audioinjector-pi-soundcard (Alsa mixer) (Default)"so that too looks OK to me.
I'm trying to stream a continious audio file from a radio, connected to the "direct input" of the audioinjector card, bij means of VLC using a command shell that looks like:
#!/bin/sh
#
cvlc -vvv --no-video alsa:// --sout '#standard{access=http,mux=ogg,url=192.168.192.4:8080}'
pi@macbepi01:~ $
because of the -vvv option I get numerous pages of screen output, but the last few lines look like
[018af768] core mux warning: late buffer for mux input (84553)
[018e7c78] lua demux meta debug: Trying Lua scripts in /usr/share/vlc/lua/meta/reader
[018e7c78] core demux meta debug: no meta reader modules matched
[018a9630] core input debug: `alsa://' successfully opened
That looks fine to me. When omitting the -vvv and executing the command I see:
pi@macbepi01:~ $ cvlc --no-video alsa:// --sout '#standard{access=http,mux=ogg,url=192.168.192.4:8080}'
VLC media player 2.2.6 Umbrella (revision 2.2.6-0-g1aae78981c)
[0054b150] dummy interface: using the dummy interface module...
[00551630] mux_ogg mux: Open
^C[00551630] mux_ogg mux: Close
pi@macbepi01:~ $
So, no big errors and closed by a Ctrl-C. I would say the PI is streaming.
However, when going to another system in my 192.168.192.X network, in this case a Windows 7 laptop with VLC installed I cannot open the stream
with "File --> Open --> Network stream --> http://192.168.192.4:8080. And that is just what I wanted.
For the VLC command structure I've used a document "https://www.scribd.com/document/9765652 ... ming-Howto" but I'm not sure if I have used the correct mux syntax in my command line.
Questions : do you have experience with streaming and VLC?
streaming with ffmpeg is also acceptable for me, as long as I get something to work
when the PI appears to be streaming shoud I be able to hear the audio on the Audioinjectors' phones output or direct output?
Your help will be very much appreciated, thanks in advance and best regards, Joop
Re: Zero streamer
Hi Joop,
Did you read this thread ?
The early parts have information on ffmpeg streaming using rtp which is low latency.
There is also information on ffserver if you need to go a different route.
I have no experience with vlc streaming - although I know vlc can play rtp streams.
Matt
Did you read this thread ?
The early parts have information on ffmpeg streaming using rtp which is low latency.
There is also information on ffserver if you need to go a different route.
I have no experience with vlc streaming - although I know vlc can play rtp streams.
Matt
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector
Re: Zero streamer
Hi Matt,
yes I did read the thread. What I liked most in it is your remark about just needing an "ALSA capture followed by an RTP broadcast" and that is actually what I'm trying to achieve using VLC
The command I use is "cvlc -vvv --no-video alsa:// --sout '#standard{access=http,mux=mp3,url=192.168.192.4:8080}".
from within a Terminal window on the PI desktop using VNC viewer.
It will (or at least should) start streaming from a radio connected to the direct input of the audioinjector card, recognized as hw:0,0 on the PI Zero W. And thats all I need.
I just found however that Audacity does not receive any data from the audioinjector card, so that might be the reason I can't hear my music stream. I will investigate further and let you know.
Best regards, Joop
yes I did read the thread. What I liked most in it is your remark about just needing an "ALSA capture followed by an RTP broadcast" and that is actually what I'm trying to achieve using VLC
The command I use is "cvlc -vvv --no-video alsa:// --sout '#standard{access=http,mux=mp3,url=192.168.192.4:8080}".
from within a Terminal window on the PI desktop using VNC viewer.
It will (or at least should) start streaming from a radio connected to the direct input of the audioinjector card, recognized as hw:0,0 on the PI Zero W. And thats all I need.
I just found however that Audacity does not receive any data from the audioinjector card, so that might be the reason I can't hear my music stream. I will investigate further and let you know.
Best regards, Joop
Re: Zero streamer
OK - that must be a frustrating find.
Make sure your pots are turned up and the alsamixer has the line input selected in the capture tab as well as the playback tab.
Matt
Make sure your pots are turned up and the alsamixer has the line input selected in the capture tab as well as the playback tab.
Matt
Check out our audiophile quality crossovers : https://bit.ly/2kb1nzZ
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector
Re: Zero streamer
Hi Matt,
I did not mount the pods on the audioInjector boards because of space limitations. I used an alsactl command file to set all required selections for line input and playback. Took me a while to figure out but the "preferences --> Audio device settings" and the recording mode on the PI showed me
that was all correct and working now. I found this last week but completely had forgotton to update the forum, I apologize for that. Happy as I was
that the board was working and recording thru audacity, I left it on overnight and alone for 2 days. When I came back to it, the recorded stream (which came from an internet radio) had completely filled up the SD card space in /var/tmp/audacity-pi so I had to make a crontab entry to clean up
and free that space every minute.
The sound input section appears ro be working now but I stil can't stream to the internet or even my local LAN using the command :
'cvlc -vvv --no-video alsa:// --sout '#standard{access=http,mux=ogg,url=192.168.192.4:8080}'
(Earlier I wrote mux=mp3 but that should be mux=ogg).
I still don't know why it does not stream but I'm pretty much convinced it's not due to the audioInujector board but to VLC.
I will continue searching into the archives and documentation for the correct VLC command. Thanks anyway for your help,
Best regards, Joop
I did not mount the pods on the audioInjector boards because of space limitations. I used an alsactl command file to set all required selections for line input and playback. Took me a while to figure out but the "preferences --> Audio device settings" and the recording mode on the PI showed me
that was all correct and working now. I found this last week but completely had forgotton to update the forum, I apologize for that. Happy as I was
that the board was working and recording thru audacity, I left it on overnight and alone for 2 days. When I came back to it, the recorded stream (which came from an internet radio) had completely filled up the SD card space in /var/tmp/audacity-pi so I had to make a crontab entry to clean up
and free that space every minute.
The sound input section appears ro be working now but I stil can't stream to the internet or even my local LAN using the command :
'cvlc -vvv --no-video alsa:// --sout '#standard{access=http,mux=ogg,url=192.168.192.4:8080}'
(Earlier I wrote mux=mp3 but that should be mux=ogg).
I still don't know why it does not stream but I'm pretty much convinced it's not due to the audioInujector board but to VLC.
I will continue searching into the archives and documentation for the correct VLC command. Thanks anyway for your help,
Best regards, Joop
Who is online
Users browsing this forum: No registered users and 5 guests