maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   [Request]stream audio output over wifi (https://talk.maemo.org/showthread.php?t=82631)

Fuzzillogic 2012-03-05 20:40

Re: [Request]stream audio output over wifi
 
I'm running this on Win7 x64, so that can't be the problem. However.. my bad, I'm using the latest beta. That might make a difference.

Sniper_swe 2012-03-05 21:03

Re: [Request]stream audio output over wifi
 
okay i will try with the beta instead.
ill be back;)

Sniper_swe 2012-03-05 22:42

Re: [Request]stream audio output over wifi
 
Fuzzillogic you are the man. Thanks
Great quality stream now and with the beta of gstreamer it works great!

Now we just need to get this out to media devices on network. Icecast/shoutcast or via rygel:)

phako 2012-03-06 21:02

Re: [Request]stream audio output over wifi
 
Quote:

Originally Posted by Fuzzillogic (Post 1174767)
DLNA certification? Guess we'll have to wait. :p

For the tweaking tool? Nearly ready :-P

Quote:

Hmm indeed, even lame mp3 encoder is missing. That's software patents hard at work for you. Ah well, PCM works fine and on WLAN the extra bandwidth doesn't really matter.

Regarding AAC, this works:

...

So, either GStreamer is tolerant of the AAC produced by the N9, or AAC encoding just works?
Yeah, because the pipeline is hand-crafted and not using encodebin magic :-/, same holds for H.264.

zappAtom 2012-03-07 12:44

Re: [Request]stream audio output over wifi
 
UPnP/DLNA streaming is coming! :-)
Have a look at this promising project:
http://jensge.org/2012/03/introducing-helium/

Sniper_swe 2012-03-07 17:35

Re: [Request]stream audio output over wifi
 
That seems promising. Possible to stream audio output with it? Saw in one of the screens a gst-launch line;)

zappAtom 2012-03-07 17:47

Re: [Request]stream audio output over wifi
 
Yes, audio streaming is intended as far as I can see....
Now you only need a "Play To" device (aka DLNA Media Render) to enjoy your music everywhere in your house...

I found this devices as possible Audio Stream Renderer:
- Arctic Audio Relay http://www.arctic.ac/en/p/living/mul...dio-relay.html
- WD TV Live http://wdc.com/de/products/products.aspx?id=330
- LG ST600 http://www.amazon.de/LG-ST600-Networ.../dp/B004TQL2RQ
- Jriver ID http://www.jriver.com/press/2011/press61.html
- Egreat-R6A-HD http://www.amazon.de/Egreat-R6A-HD-M...pr_product_top
- Fritz!WLAN Repeater http://www.avm.de/de/Produkte/FRITZ_...r_NG/index.php
- Sonos Connect http://www.sonos.com/shop/products/Connect

There are probably plenty of others...
- XBMC

nbedford 2012-03-07 19:15

Re: [Request]stream audio output over wifi
 
Quote:

Originally Posted by zappAtom (Post 1175866)
UPnP/DLNA streaming is coming! :-)
Have a look at this promising project:
http://jensge.org/2012/03/introducing-helium/

This looks great, just what I need to play to my DLNA amp, are you author of this app? Does it have an announce thread here (I couldn't find one) Is there going to be beta available?

zappAtom 2012-03-07 19:30

Re: [Request]stream audio output over wifi
 
No, I'm not the author but such an app was on my wishlist for long. I can only advice you to communicate with the author on his blog (http://jensge.org/2012/03/introducing-helium/). He probably likes feedback or help (He set up a GIT repository).

Fuzzillogic 2012-03-07 20:10

Re: [Request]stream audio output over wifi
 
An UPnP media controller indeed would be very welcome, it really augments the media server on our N9.

But I'm afraid I fail to see how this would provide streaming-audio-out-to-upnp-capabilities. The "GST Launch" in the screenshot could very well be a Rygel installation on his local machine. Indeed, Rygel supports streaming from gstreamer, but our N9 is lacking the library for that, as was discussed earlier. But seen his work, Jens might very well be able to pull it off :)

mikhas 2012-03-09 09:51

Re: [Request]stream audio output over wifi
 
Quote:

Originally Posted by zappAtom (Post 1176090)
No, I'm not the author but such an app was on my wishlist for long. I can only advice you to communicate with the author on his blog (http://jensge.org/2012/03/introducing-helium/). He probably likes feedback or help (He set up a GIT repository).

You're already communicating with him, it's phako ;-)

phako 2012-03-09 10:09

Re: [Request]stream audio output over wifi
 
Quote:

Originally Posted by Fuzzillogic (Post 1176114)
An UPnP media controller indeed would be very welcome, it really augments the media server on our N9.

But I'm afraid I fail to see how this would provide streaming-audio-out-to-upnp-capabilities. The "GST Launch" in the screenshot could very well be a Rygel installation on his local machine. Indeed, Rygel supports streaming from gstreamer, but our N9 is lacking the library for that, as was discussed earlier. But seen his work, Jens might very well be able to pull it off :)

Yeah, that's my local machine. Sorry if that caused confusion.

phako 2012-03-09 10:15

Re: [Request]stream audio output over wifi
 
Quote:

Originally Posted by nbedford (Post 1176081)
This looks great, just what I need to play to my DLNA amp, are you author of this app? Does it have an announce thread here (I couldn't find one) Is there going to be beta available?

No it doesn't have one yet as it was (and is still) lacking some basic but necessary capabilities (like proper error handling). Still I wanted to get the news out since so many people were waiting for such a tool. Btw, we should probably move over to the N9 dlna thread instead of hijacking this one.

wolke 2012-03-11 17:39

Re: [Request]stream audio output over wifi
 
heyyyy, so
gst-launch-0.10 pulsesrc device=sink.hw0.monitor ! mulawenc ! rtppcmupay ! udpsink host=192.168.1.100 port=5000

works wonderfully.

anyone happen to know how i could do the same with a microphone? i want to send a sink on my computer to the n9 over a network.

wolke 2012-03-11 18:39

Re: [Request]stream audio output over wifi
 
so i have no idea what i actually want to do with the stream on the n9 side.
i suspect that what i want to do is change nokia application behaviour, which is impossible. possibly what i want to do is pulse-magic, though, so if anyone knows what i want, lemme know.

getting the stream to the n9 was simple. my goal is to have the phone app use my the stream {from my laptop's microphone} instead of the n9's microphone.

laptop-microphone => n9-loudspeaker
laptop:
gst-launch-0.10 pulsesrc device=alsa_input.pci-0000_00_1b.0.analog-stereo ! audioconvert ! audio/x-raw-int,channels=1,depth=16,width=16,rate=44100 ! rtpL16pay ! udpsink host=$n9ip port=3200

n9:
gst-launch-0.10 -v udpsrc port=3200 ! "application/x-rtp,media=(string)audio, clock-rate=(int)44100, width=16, height=16, encoding-name=(string)L16, encoding-params=(string)1, channels=(int)1, channel-positions=(int)1, payload=(int)96" ! rtpL16depay ! audioconvert ! pulsesink

Fuzzillogic 2012-03-14 21:25

Re: [Request]stream audio output over wifi
 
Stereo(!) microphone from N9 to PC:

PC:
Code:

gst-launch udpsrc port=3200 ! "application/x-rtp,media=(string)audio, clock-rate=(int)44100, encoding-name=(string)L16, channels=(int)2, payload=(int)96" ! gstrtpjitterbuffer latency=1000 ! rtpL16depay ! audioconvert ! autoaudiosink
N9:
Code:

~ $ gst-launch-0.10 autoaudiosrc ! audioconvert ! audio/x-raw-int,channels=2,depth=16,rate=44100 ! rtpL16pay ! udp
sink host=<IP of PC> port=3200

The PC-side actually works in both Linux as Windows (GST .10.7 beta, as mentioned before)

This is uncompressed audio. But still the two problems remain: how to get the original audio from example the music player, without the need for pluging-in headphones? And why won't TCP work? (Well, the Windows version seems to lack TCP...)

Also, the jitter buffer is at full second. Much lower and it breaks. :(

More interesting stuff ahead: using the N9 as Dolby Headphone decoder: :cool:

Code:

~ $ gst-inspect-0.10 | grep Dolby
nokiadhmmix:  nokiadhmmix: Dolby Headphones Mobile mixer
nokiaddpdec:  nokiaddpdec: Dolby Digital/Dolby Digital Plus decoder

But I don't know how to use them, and what the exact options are.

Of course, GStreamer can stream video as well. It should be possible to stream video directly to VLC on a PC right over the internet. I don't know about the streaming possibilities of HTML5 or Flash. Would be cool though to embed a videostream in a website. Any suggestions here too?

wolke 2012-03-14 21:32

Re: [Request]stream audio output over wifi
 
pretty cool fuzzilogic.

im still interested in using my laptop microphone in the phone app. if anyone can think of a way to do this, i would really appreciate it.


All times are GMT. The time now is 12:55.

vBulletin® Version 3.8.8