i was chatting with courmish and it seems that popen() (stdin) is the way to choose.
don't use ncurse when doing this because of stdin.
popen()
http://www.opengroup.org/onlinepubs/009 ... popen.html
i repost a deleted? posting here i found in google cache
----------------------------------------
"Postby swiftnyellow on Thu Jun 19, 2008 7:15 pm
Hello,
I am currently working on a project which involves me to stream a video file from one computer to another. I currently have one computer set up as the server, which sends the video packets to the client computer. There are preliminary steps such as striping packet header info...etc, but might be out of the scope of my question.
I am having difficulties on the client side where I need to be piping the received packets into the player.
I am using C language on Fedora 8 to accomplish this, I have read from the the VideoLAN wiki that I can use 'vlc -' to accomplish this.
And so, I used:
Code: Select all
FILE* vlcplayer = popen("vlc -", "w");
and i get this error:
libdvdnav: Using dvdnav version SVN-rUNKNOWN from
http://dvd.sf.net
libdvdnav: vm: failed to open/read the DVD
I have not made any references to DVD's nor my CD Drive, so I do not understand this error. I have searched over the web, and all I can interpret is that VLC often does not read from standard input, therefore i assume that VLC not reading from stdin is my problem.
Can is anyone able to help me with my problem. What parameters should i be putting into popen(); any help would be appreciated
Note: I am new to VLC as well as network programming. Please excuse me if I have made common mistakes. I am also aware that VLC has its own streaming features, but for the project I am working on, I would need complete control of what happens during the streaming process.
Thank You
swiftnyellow
New Cone
New Cone
Posts: 2
Joined: Thu Jun 19, 2008 6:40 pm
Top
Re: Need help piping to VLC Player
Postby Rémi Denis-Courmont on Fri Jun 20, 2008 6:55 pm
VLC tries to autodetect ISO images (and fails). The error can be ignored - we cannot remove it because it comes from a third party library.
Rémi Denis-Courmont"