Input video data from a program into VLC

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
Jossnaz
Blank Cone
Blank Cone
Posts: 73
Joined: 04 Jun 2008 17:59

Input video data from a program into VLC

Postby Jossnaz » 07 Oct 2008 18:14

Hi

Is there a way to input video data from a program to VLC?


I know it's possible to:

- feed the video stream from the program to a dshow device, then read with vlc from this dshow device.
- piping read from stdin
- do smth similar like the desktop screen capture module (i have no understanding how this works or where i can get informations on this)

Is there a different way?
Last edited by Jossnaz on 07 Oct 2008 18:45, edited 1 time in total.

Jossnaz
Blank Cone
Blank Cone
Posts: 73
Joined: 04 Jun 2008 17:59

Re: Input video data from a program into VLC

Postby Jossnaz » 07 Oct 2008 18:42

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"


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 178 guests