[vlc-devel] httpd/Freeplayer on Linux broken ?? Crashes VLC when using the remote control of the Freebox.

frahm at irsamc.ups-tlse.fr frahm at irsamc.ups-tlse.fr
Sat Apr 1 21:09:52 CEST 2006


I believe that since some time the http interface of VLC, at least for Linux 
in combination with Freeplayer (used with the Freebox and the french ISP Free) 
is broken. When I start VLC with the proper 
options for the Freeplayer (see below), at first I see the video flux arriving 
at the Freebox (provided the Freebox is the Freeplayer-Universe). Then I try 
an arbitrary command with the remote control of the Freebox which amount 
to access the http-server of VLC this immediate kills the VLC. 

The VLC messages with "-vvv" are:

...
[00000255] main stream output debug: adding a new input
[00000259] main private debug: adding a new input
[00000259] mux_ts private debug: adding input codec=mpga pid=69
[00000259] mux_ts private debug: new PCR PID is 69
[00000265] packetizer_mpegvideo packetizer debug: size 720x576 fps=25.000
[00000255] main stream output debug: adding a new input
[00000259] main private debug: adding a new input
[00000259] mux_ts private debug: adding input codec=mpgv pid=68
[00000259] mux_ts private debug: new PCR PID is 68
[00000249] main http server debug: Connection from 212.27.38.253
Killed

If I do the same with an "older" version of VLC (for example 15 mars) then 
I works very well and I have the following messages:

...
[00000260] main stream output debug: adding a new input
[00000266] main private debug: adding a new input
[00000266] mux_ts private debug: adding input codec=mpga pid=69
[00000266] mux_ts private debug: new PCR PID is 69
[00000329] packetizer_mpegvideo packetizer debug: Size 720x576 fps=25.000
[00000260] main stream output debug: adding a new input
[00000266] main private debug: adding a new input
[00000266] mux_ts private debug: adding input codec=mpgv pid=68
[00000266] mux_ts private debug: new PCR PID is 68
[00000250] main private: Accepting
[00000250] main private: Accepting
[00000250] main private: Accepting
[00000250] main private: Accepting
[00000250] main private: Accepting
[00000250] main private: Accepting
[00000247] http interface debug: requested playlist pause
[00000259] main input debug: control type=1


In both cases there are (earlier) the same messages concerning the httpd 
interface:

...
[00000247] main interface debug: looking for interface module: 1 candidate
[00000247] http interface debug: using charset=ISO-8859-1
[00000247] http interface debug: base :8080
[00000247] main interface: creating httpd
[00000247] main interface debug: net: listening to  port 8080
[00000247] main interface debug: socket error: Address family not supported by protocol
[00000250] main private debug: thread 49156 (httpd host thread) created at priority 0 (network/httpd.c:1106)
[00000247] http interface debug: dir=/usr/local/share/http-fbx
[00000247] main interface debug: find .hosts in dir=/usr/local/share/http-fbx/.hosts
[00000247] main interface debug: restricted to 192.168.0.0/16
[00000247] main interface debug: restricted to 212.27.38.253
...


The exact options I use for the freeplayer are:
---------------------
#!/bin/sh

exec /usr/local/VLC2/bin/vlc -vvv --extraintf=http --http-host=:8080 --http-charset=ISO-8859-1 --sout="#std" --sout-standard-access=udp --sout-standard-mux=ts --sout-standard-dst=212.27.38.253:1234 --sout-ts-pid-video=68 --sout-ts-pid-audio=69 --sout-ts-pid-spu=70 --sout-ts-pcr=80 --sout-ts-dts-delay=400 --no-playlist-autostart --subsdec-encoding=ISO-8859-1 --sout-transcode-maxwidth=720 --sout-transcode-maxheight=576 --http-src="/usr/local/share/http-fbx/" --wx-systray --config="~/.vlc/vlcrc-fbx" --open="$1"
---------------------
They work very well with the previous versions of VLC. 

I have verified at least three different version of VLC the last two days and 
the bug is clearly reproducible on my Linux PC (kernel 2.6.16 and glibc-2.3.2). The latest version I tested is:

VLC media player 0.8.5-test2 Janus
VLC version 0.8.5-test2 Janus
Compiled by frahm at albireo.albireo
Compiler: gcc version 3.3.6
Based upon svn changeset [15026]

I didn't test on Windows and I have no idea if the problem is specific to 
Linux (or to some specific Linux-configuration) or more general also for 
Windows, Mac, ...

I am not sure but I think one can suppose that the bug appeared with the 
svn changeset [14886] on mars 22 since it concerns an important modification 
of httpd.c (in src/network/). It is certainly a change between 15 mars and 30 
mars.

Greetings, Klaus Frahm.

-- 
This is the vlc-devel mailing-list, see http://www.videolan.org/vlc/
To unsubscribe, please read http://developers.videolan.org/lists.html



More information about the vlc-devel mailing list