View Single Post
Posts: 169 | Thanked: 56 times | Joined on Jan 2010 @ Italia
#1
http://maemo.org/community/brainstor...headphones-004

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: http://wiki.bluez.org/wiki/HOWTO/AudioDevices i get:

mplayer -ao alsa:device=bluetooth mymovie.avi
...
...
...
[AO_ALSA] alsa-lib: audio/pcm_bluetooth.c:1607audioservice_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?
SOLVED:
I managed to do this by using vlc.
In the PC terminal type:

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

where movie.avi is the video to be played, and 192.168.0.5 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

Last edited by cipper; 2013-03-19 at 10:47.