Launching VLC stream from a Tomcat webapp

All you've ever wanted to know about the ActiveX, Mozilla plugins, the web interface and various PHP extensions
rlh
New Cone
New Cone
Posts: 1
Joined: 20 Sep 2006 12:33
Contact:

Launching VLC stream from a Tomcat webapp

Postby rlh » 20 Sep 2006 14:17

Hi all,
I hope i'm not starting a duplicate topic...
Here's the situation: I need to get vlc stream some video files from a servlet in a webapp.
For this i was planning to use

Code: Select all

Runtime.getRuntime().exec(vlcCommand);
in a new thread. I know this might not be the optimum solution but it is the only one i figured out as of now.
The corresponding vlc command line looks like:

Code: Select all

vlc --daemon -vvv file.mpg --sout '#standard{access=http,mux=ps,url=ip:freeport}'
The problem is that the daemon does start when the page is fetched, but not the stream... I tried to investigate and updated the command to the following:
-removed the --daemon to see if vlc really started

Code: Select all

vlc -vvv file.mpg --sout '#standard{access=http,mux=ps,url=ip:freeport}'
The vlc interface started alright but did not stream anything.
- also removed the --sout option:

Code: Select all

vlc -vvv file.mpg
The vlc started alright and rendered the video locally, wich shows, at least,the file path was ok.

I was wondering whether this wouldn't be due to a library access failure when requesting --sout redirection but i haven't found any obvious error when comparing strace logs of the execution within Tomcat or in a shell, I don't know what to think...

I have the following questions:
- How can i get vlc to log in any log file since i do not get any execution console log from the process getInputStream() in order to help me debug what's going on ?
- Is there another way to retrieve a video listing and stream one of them on demand from a web server (i saw some using php in a close manner but php is currently not an option for me). I took a look at the telnet interface for VOD but was not really convinced by the system. Did any one get anything concrete out of it (NOT saying it's useless, ok)

Thank you for reading my topic!
Any help would be greatly appreciated :D
Vous pouvez aussi me répondre en français, no problemo!

Return to “Web and scripting”

Who is online

Users browsing this forum: No registered users and 69 guests