Quantcast
Channel: arm - openFrameworks
Viewing all articles
Browse latest Browse all 147

Reading an Audio Pipe in R-Pi as Audio input to OF App

$
0
0

Javi Aránega wrote:

Hi there! I'm reading an rtmp stream via rtmpdump in the Raspberry Pi (Raspbian) and playing it with omxPlayer. To do this I used a named pipe like this.


mkfifo liveaudio
rtmpdump -r "rtmp://server/stream --live -o liveaudio | omxplayer liveaudio

The final goal is to read the pipe "liveaudio" in OF as an ofSoundStream (like a microphone input for example) to do a simple realtime spectrum analysis.

First I was trying to do it with ofxVideoPipe addon, but it doesn't works with audio stream. Maybe another simple solution can be to make an audio routing to the openframeworks application, but I don't have experience with linux and audio stuff and I'm not sure how to do it.

Maybe is an easier path to do this.

If someone has tried to do something similar let me know, any help would be great for me.

Thanks in advance!

Javi Aránega

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 147

Trending Articles