N900 used as wireless headphones

Posted on 2010-01-13 10:25 UTC by Roberto Guerra. Status: Under consideration, Categories: Media.

I often use headphones when watching movies because I don't want to wake up my little son, and I bought those big wireless headphones.
The idea is to use the phone as bluetooth (or wifi?) receiver for audio played on a desktop pc. It would be great to, for example:

1) control the mediaplayer on the pc
2) pause in case of incoming calls
3) pause when you move too much far
and so on.

following the steps described in: i get:

mplayer -ao alsa:device=bluetooth mymovie.avi
[AO_ALSA] alsa-lib: audio/pcm_bluetooth.c:1607frown.gifaudioservice_expect) BT_GET_CAPABILITIES failed : Input/output error(5)
[AO_ALSA] Playback open error: Input/output error
Failed to initialize audio driver 'alsa:device=bluetooth'
First of all, is this possible?

Solutions for this brainstorm


Solution #1: vlc and mplayer for audio streaming

Posted on 2010-11-20 20:21 UTC by Beni Young.

I've been currently experiment with getting this to work myself using vlc 1.1.4 for windows (I have windows 7) and using mplayer.

1. goto Media > Streaming then select the file you want to stream from harddrive

2. click Stream > Next

3. Under Transcoding options, I deselect the "Activate Transcoding" option.

4. click Next then under Generated stream output string, I replace the generated info with:

:sout=#duplicate{dst=std{access=mmsh,mux=asfh,dst=},dst=display} :no-sout-rtp-sap :no-sout-standard-sap :sout-keep is the network address on my computer

This should start playing your video on VLC on your computer. I just mute the sound.

5. With mplayer on my N900, I opened up Terminal and launched:

mplayer --novideo -nocache mmsh:///

Its pretty much in sync for me and it's the only protocol that i can get on N900 to not cause skipping in the audio so far.


Solution #2: using vlc and mplayer (alternative)

Posted on 2010-11-25 16:13 UTC by Roberto Guerra.

I also managed to do this by using vlc (I swear I haven't copied from the solution #1).

In the PC console type:

vlc movie.avi --sout '#duplicate{dst=display{delay=1400},dst=udp{mux=ts ,caching=0,dst=},select=audio}'

where movie.avi is the video to be played, and is the address of N900. This will show the video on the PC and stream the audio through the LAN. Then in N900 terminal type:

mplayer udp://@:2010

to play the audio on the N900. You can use +/- keys to sync audio delay if necessary. I also use bluemaemo to control vlc from my N900.


This solution should be more lightweight than #1 because only audio is streamed through the network.

Latest activities to brainstorm N900 used as wireless headphones