non-blocking pipe or pipe-on-demand
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > non-blocking pipe or pipe-on-demand




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    non-blocking pipe or pipe-on-demand  
CptDondo


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-21-07 06:25 PM

I've been trying to figure out a way to pipe internet radio to my MythTV
application.

In a nutshell, I have an internet source that streams mp3 radio.  I can
play it with mplayer.

I would like to tell mplayer to output to a pipe, so that MythTV can
then play it as an mp3 thorugh one of its standard players and via its
standard menuing system.  (I know I can play it via whatever player -
but I really want it to play as a standard Myth source, and use the Myth
visualizations.)

The problem is that pipes block.  I don't think that there is a way to
create a pipe where the sender can send even if the other end is not
connected.

So....

Is there some neat way to either a) have all the digital bits get sent
to the bitbucket in the sky if the other end of the pipe is not
connected, or b) set up a pipe-on-demand where a daemon opens the pipe,
and when the connection is made, it invokes whatever streaming program I
want?

I suspect b) is doable - a shell/perl/whatever wrapper around mplayer -
but a) would be cleaner.

--Yan





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 07:52 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register