Fifo and pipe? for VDR MPlayer client
#1
hi

we're on the way of building a streamdev vdr client for xbmc. ( http://www.cadsoft.de/vdr )

the vdr server wills tream dvb tv to xbmc.

for the moment everything works fine with http streaming. but to allow fast zap we can't buffer data like that.

so the other way is to use vtp protocol ( the embedded streamdev server protocol ).

this protocol oblige the client to open a port, and the server send the mpeg2 data trought this port. our problem is hooking those data to mplayer.

i'm wondering if it's possible to use pipe with xbmc like with linux.

what we want to do is pipe the data from the port to a fifo,
then call mplayer like when we want him on linux to read fifo :

Quote:cat streamfifo | mplayer -

anyone can tell us if it's time to stop wasting time on this as it's not possible or if we're on the good way ?

thanks a lot
Reply
#2
ok we succeed to open a port on the xbmc client side with python, and sending mpeg2 data to it..
but now we don't have any idea on how we can involve mplayer to read this.

please any developper who have an idea ?

thanks
Reply
#3
hello all,

i work with alib on that xbmc stream client for vdr...

i find out that, usually with python, pipes are created like that:
os.popen(myprog,'w')

but, with xbmc python, when i try to use this, the only reply i have from the debug output is
attributeerror: 'module' object has no attribute 'popen'

so, is there another way to create a pipe with xbmc python, or do we have to find another way to do what we what to do (directly play a stream from a socket?)

thanks...
sad
Reply
#4
so is there no xbmc developpers who have any answer here ?

it seems python in xbmc have some missing functions.
Reply
#5
Quote:i find out that, usually with python, pipes are created like that:
os.popen(myprog,'w')
this isn't working because the xbox does not support pipes. so yes,python for xbmc is missing some functions, but i can't do anything about it. but as sad already said, you can use a socket for it

another problem is that the current mplayer interface doesn't handle pipes anyway. so even if you got python to work, it isn't going to work unless you modify the xbmc and mplayer source so that it can read from something else then files only.

something else that could be done maybe is to create a new cfile type (needs edditing of xbmc source) that can read raw data from socket's
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#6
any news on this yet?
Reply
#7
thanks darkie, things looks more clear now

if there's some tweaking in xbmc source to do, why not, vdr guys are more skilled in c than python.

we will keep you informed on how the things are going.
Reply
#8
thanks very much darkie, clear answer!!

so, if we want to play raw data from a socket, we have to work on xbmc sources (thanks god, no more python :o )

we'll see what can be done, and if we can do something, we'll share it, i tought that this should be usefull for other's people!

thanks again

sad
Reply
#9
Did you ever get anywhere with this?

It seems like this is the great stumbling block to get a proper VDR client setup on XBMC. VDR is much more attractive to me than a Windoze setup! xStreamdev while functional doesn't rate a high WAF.

all the best

Alasdair
Reply

Logout Mark Read Team Forum Stats Members Help
Fifo and pipe? for VDR MPlayer client0