[vlc] VLC-SIMPLE HTTP INTERFACE QUESTION

Mark Brinkman thebrink at cyberonic.com
Tue Feb 5 20:46:35 CET 2008


Help, I'm stumped.

I'm trying to use the http interface for VLC as described. It seems to be  
doing something, but I can't see the index from the remote computer.

I've scoured the available help files and searched discussions on this  
topic, but I can't seem to get it to work. I would like to use the http  
interface to get VOD from a server containing .avi files.

server is on os x

latest version of VLC: (08.6d)

I have used this server successfully as a streaming audio server using the  
yodj php application (http://www.yodjnet.com/), and would like to try  
something similar with video and VLC. From what I've gleaned this should  
be possible, but I can't seem to get it to work.

I have tried mapping ports, and making sure there is no conflict with  
apache, but still the same results.

Here's what I've got:

Start VLC on server, select add interface, http interface. Message window  
is below:

main debug: CPU has capabilities AltiVec FPU
main debug: looking for memcpy module: 2 candidates
main debug: using memcpy module "memcpyaltivec"
main debug: waiting for thread completion
main debug: thread 41964032 (playlist) created at priority -47
(playlist/playlist.c:184)
main debug: waiting for thread completion
main debug: thread 42917376 (preparser) created at priority -47
(playlist/playlist.c:210)
main debug: looking for interface module: 1 candidate
main debug: using interface module "hotkeys"
main debug: thread 42929152 (interface) created at priority -47
(interface/interface.c:198)
main debug: looking for interface module: 3 candidates
main debug: using interface module "macosx"
main debug: thread 42065408 (manage) created at priority -47
(interface/interface.c:164)
main debug: looking for interface module: 1 candidate
http debug: using charset=UTF-8
http debug: base :8080
main: creating httpd
main debug: net: listening to  port 8080
main debug: thread 43556352 (httpd host thread) created at priority -47
(network/httpd.c:1078)
main debug: creating statistics handler
http debug: dir=/volumes/miniStack/TV_MOVIES
http debug: file=/volumes/miniStack/TV_MOVIES/1200-run.avi
(url=/1200-run.avi)
http debug: file=/volumes/miniStack/TV_MOVIES/AD-AE-ABOVE.avi
(url=/AD-AE-ABOVE.avi)
http debug: file=/volumes/miniStack/TV_MOVIES/AD-AE-VERTMULL.avi
(url=/AD-AE-VERTMULL.avi)
http debug: file=/volumes/miniStack/TV_MOVIES/AD-AE.avi (url=/AD-AE.avi)
http debug: file=/volumes/miniStack/TV_MOVIES/big-prez-01.avi
(url=/big-prez-01.avi)
main debug: using interface module "http"
main debug: thread 43488256 (interface) created at priority -47
(interface/interface.c:198)
main debug: Connection from 99.149.37.26
main debug: Connection from 99.149.37.26

This shows that VLC sees the correct directory and starts the http  
interface. It even registers the connection from the remote computer. But  
on the remote computer (99.149.37.26 in this case) the browser registers a  
404 error as follows:

<?xml version="1.0" encoding="us-ascii" ?><!DOCTYPE html PUBLIC  
"-//W3C//DTD  XHTML 1.0 Strict//EN"  
"http://www.w3.org/TR/xhtml10/DTD/xhtml10strict.dtd">
<html>
<head>
<title>Error 404</title>
</head>
<body>
<h1>404 Resource not found(/)</h1>
<hr />
<p><a href="http://www.videolan.org"> VideoLAN</a></p>
</body>
</html>

What am I missing?


Note that attempts to use the command-line to use the http interface per  
the VLC online manual:

open /applications/VLC.app -I http (--http-src  
/volumes/miniStack/TV_MOVIES/ --http-host 192.168.1.8:8080)

results in the following error in terminal:

Last login: Tue Feb  5 06:51:31 on ttyp1
Welcome to Darwin!
none-of-your-business-Computer:~ noneofyourbusiness$ open  
/applications/VLC.app -I http (--http-src /volumes/miniStack/TV_MOVIES/  
--http-host 192.168.1.8:8080)
-bash: syntax error near unexpected token `('
none-of-your-business-Computer:~ noneofyourbusiness$

What am I missing here?


Any help would be appreciated.

Thank you,

-Mark Brinkman










More information about the vlc mailing list