Re: [pulseaudio-discuss] remote source to local sink

2008-02-13 Thread Lennart Poettering
On Tue, 15.01.08 10:45, Ulf Behrens ([EMAIL PROTECTED]) wrote:

 Hi folks,
 
 I'm currently running two pulseaudio servers, one on my windows xp 
 laptop and one on my linux desktop. I want to stream the audio oupput of 
 for example itunes from my laptop to the speakers connected to my linux 
 PC. What I've done up to now:
 
 - I'm running 'virtual audio cable' as a virtual soundcard on the 
 laptop. This way the audio stream is available as a source stream to 
 pulseaudio on the windows laptop.
 - I'm using module-tunnel-source to connect from my linux desktop to the 
 windows PC. Why is the tunnel module deprecated? What do I loose using 
 this module? And how do I establish this connection directly as it is 
 recommended in the documentation?

It's not deprecated. It has some issues, but it is supposed to become
the recommended way to do network transparent audio. So, it's
everything but deprecated.

 - finally I have the stream I want to listen to as a source in my 
 pulseaudio server on my linux PC. How to forward to the sink? I've tried 
 to use rtp-send with option loop=1 and rtp-rcv on the same pulseaudio 
 instance. It works, but it is not very elegant and I'm flooding the 
 network with data which is not really needed anywhere. So I'm looking 
 for something like the 'virtual audio cable' for internal use in 
 pulseaudio. Any hints? Anyone already working on a solution?

As mentioned many times on this ML already, right now there is no
module for linking a sink and source directly. This is is not as
trivial to write as one might think because adaptive resampling is
required to cope with deviating crystals of the sink and the source in
question. But it's doable, And on my todo list.

Lennart

-- 
Lennart PoetteringRed Hat, Inc.
lennart [at] poettering [dot] net ICQ# 11060553
http://0pointer.net/lennart/   GnuPG 0x1A015CC4
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


[pulseaudio-discuss] remote source to local sink

2008-01-15 Thread Ulf Behrens
Hi folks,

I'm currently running two pulseaudio servers, one on my windows xp 
laptop and one on my linux desktop. I want to stream the audio oupput of 
for example itunes from my laptop to the speakers connected to my linux 
PC. What I've done up to now:

- I'm running 'virtual audio cable' as a virtual soundcard on the 
laptop. This way the audio stream is available as a source stream to 
pulseaudio on the windows laptop.
- I'm using module-tunnel-source to connect from my linux desktop to the 
windows PC. Why is the tunnel module deprecated? What do I loose using 
this module? And how do I establish this connection directly as it is 
recommended in the documentation?
- finally I have the stream I want to listen to as a source in my 
pulseaudio server on my linux PC. How to forward to the sink? I've tried 
to use rtp-send with option loop=1 and rtp-rcv on the same pulseaudio 
instance. It works, but it is not very elegant and I'm flooding the 
network with data which is not really needed anywhere. So I'm looking 
for something like the 'virtual audio cable' for internal use in 
pulseaudio. Any hints? Anyone already working on a solution?

regards,
ulf

___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] remote source to local sink

2008-01-15 Thread Colin Guthrie
Ulf Behrens wrote:
 Hi folks,
 
 I'm currently running two pulseaudio servers, one on my windows xp 
 laptop and one on my linux desktop. I want to stream the audio oupput of 
 for example itunes from my laptop to the speakers connected to my linux 
 PC. What I've done up to now:
 
 - I'm running 'virtual audio cable' as a virtual soundcard on the 
 laptop. This way the audio stream is available as a source stream to 
 pulseaudio on the windows laptop.

Disclaimer: I've not used pulse on windows (been meaning to for a while
- perhaps sometime soon!

 - I'm using module-tunnel-source to connect from my linux desktop to the 
 windows PC. Why is the tunnel module deprecated? What do I loose using 
 this module? And how do I establish this connection directly as it is 
 recommended in the documentation?

Module tunnel is not deprecated. I use it all the time (linux-linux in
my office and at home!).

So in your setup you have your audio source on your laptop/itunes and
the actual sound card on your linux box.

Both should be running pulseaudio server. ON the itunes machine you
should tell pulse to load module-tunnel-sink. This creates a local
virtual audio device on your local machine which actually outputs to the
network attached device.. You can then switch the stream played by
itunes to this virtual device using pavucontrol (assuming this works in
windows?)

You need to make sure that the server pulseaudio is configured to allow
connections from the network (e.g. with authanonymous or and ip based
ACL rule).


Most of the information can be found on the pulse audio wiki, but I
think there is probably call for some Scenarios to be put up there
which give real step-by-step examples of how to achieve a given setup.
I'll maybe try to do that sometime.


FWIW, the best way to do this is to enable autodiscovery - this works
great on Linux but again I'm not 100% sure how things work on windows.
Essentially you need to make sure the server (or all pulseaudio daemons)
have the zeroconf-publish module loaded. This uses
Avahi/Bonjour/Rendevous/insert new name here to automatically
broadcast the fact that the machine supports a pulse audio sink. You
can then use the zeroconf-discover module on the client to automatically
load module-tunnel-sink when it detects these broadcasts. These settings
can be configured via paprefs.

 - finally I have the stream I want to listen to as a source in my 
 pulseaudio server on my linux PC. How to forward to the sink? I've tried 
 to use rtp-send with option loop=1 and rtp-rcv on the same pulseaudio 
 instance. It works, but it is not very elegant and I'm flooding the 
 network with data which is not really needed anywhere. So I'm looking 
 for something like the 'virtual audio cable' for internal use in 
 pulseaudio. Any hints? Anyone already working on a solution?

What you want to do is possible now so no need to worry about it. I
think you may be getting your sources and sinks mixed up. You're stream
on your itunes machine should go something like:

itunes - win-pa - tunnel --- lin-pa - soundcard - speakers - ears

Hope that helps. Swing by #pulseaudio if you're stuck.

/me really needs to play with windows at some point.


Col

___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] remote source to local sink

2008-01-15 Thread Alex Malinovich
On Tue, 2008-01-15 at 10:45 +0100, Ulf Behrens wrote:
--snip--
 - I'm running 'virtual audio cable' as a virtual soundcard on the 
 laptop. This way the audio stream is available as a source stream to 
 pulseaudio on the windows laptop.
 - I'm using module-tunnel-source to connect from my linux desktop to the 
 windows PC. Why is the tunnel module deprecated? What do I loose using 
 this module? And how do I establish this connection directly as it is 
 recommended in the documentation?
 - finally I have the stream I want to listen to as a source in my 
 pulseaudio server on my linux PC. How to forward to the sink? I've tried 
 to use rtp-send with option loop=1 and rtp-rcv on the same pulseaudio 
 instance. It works, but it is not very elegant and I'm flooding the 
 network with data which is not really needed anywhere. So I'm looking 
 for something like the 'virtual audio cable' for internal use in 
 pulseaudio. Any hints? Anyone already working on a solution?

Not exactly sure what you're trying to accomplish here? If you're trying
to play audio on your Linux box and have it come out on the speakers for
the Windows box that's pretty easy to do over the network.

If, on the other hand, you want to play audio on your Windows box and
have it come out of the speakers on the Linux box, that's considerably
harder. You would have to have a virtual Pulse soundcard in Windows,
which, AFAIK, doesn't currently exist. There is a virtual ESD soundcard
for Windows, but it hasn't been updated in years and never worked quite
right from what I understand. There might be some other way of
accomplishing this, but I don't know it.

-- 
Alex Malinovich
Support Free Software, delete your Windows partition TODAY!
Encrypted mail preferred. You can get my public key from any of the
pgp.net keyservers. Key ID: A6D24837



signature.asc
Description: This is a digitally signed message part
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] remote source to local sink

2008-01-15 Thread Colin Guthrie
Ulf Behrens wrote:
 sorry for being not very precise on what I want to do.
 Let me try again:
 I want to listen to some drm restricted music coming from napster or itunes
 The only speakers which are worth to be called speakers are connected to 
 a linux box (in my office as well as at home).
 I don't need any 'noise' coming out of the speakers of my laptop, but my 
 laptop is the only windows computer around.
 
 I was already able to get  a test  setup running  but I'm not happy with 
 the network traffic I'm producing:  I'm sending the data once via a tcp 
 connection from my laptop pa server to my linux pa server and then the 
 linux server is sending the data once again via rtp to itself.
 In order to avoid the rtp traffic I'm looking for a way to send data 
 from a pa source to a pa sink. As Colin proposed I'm going to look into 
 gstreamer which seems to allow what I want

Judging by your comments above, I'd go back to my previous mail before I
suggested the whole gstreamer thing.

What you want is a tunnel from laptop to linux. Then you just want to
move the output stream to the tunnel. This is a very simple setup and
doesn't require any complicated setup (at least on linux-linux - I've
not tried on Windows so perhaps something doesn't work properly on this
platform. I will need to play to say for sure!)


The pipeline I suggested before was correct I think:

iTunes - Win PA server - Tunnel from Win-Lin - Lin PA server -
soundcard - speakers - ears.

It's just that the subject of the mail made me thing you were wanting
the control to be in the opposite direction! Personally a better subject
would be How to output to remote linux pa sink from windows pa server?

Of course I'd just recommend stripping out the DRM and slapping
everything in Amarok myself but that's another point ;)


Col

___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss


Re: [pulseaudio-discuss] remote source to local sink

2008-01-15 Thread Tanu Kaskinen
On Tue, Jan 15, 2008 at 03:38:02PM +, Colin Guthrie wrote:
 Ulf Behrens wrote:
  PA source - socket - netcat - socket - PA sink  via  the simple 
  protocol
  or
  PA source - gstreamer - PA sink
  
  or any other idea?
 
 Well you could definately do it via gstreamer - that's fairly easy to
 do. I would have through pacat should be able to do it too tho', but
 I've not quite found the right command ;)

Since I'm not too familiar with gstreamer, I don't say it
definetely won't work, but I'm quite sceptical. The reason I
think it probably doesn't work (or maybe works, but badly)
is that the pipeline is clocked in both ends, and they
don't share the clock. For the same reason the pacat
solution won't work either.

The audio needs to be resampled between the source and the
sink. I'm not aware of any solution to this apart from RTP.
If RTP isn't used for anything else, the extra network
traffic could be prevented with firewalling in the Linux
machine.

What really is needed is a proper virtual pulse sound card
for Windows.

-- 
Tanu Kaskinen
___
pulseaudio-discuss mailing list
pulseaudio-discuss@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-discuss