Solved: Compiling latest VLC SVN / ffmpeg under Debian Sarge

*nix specific usage questions
tsr
Blank Cone
Blank Cone
Posts: 25
Joined: 24 Nov 2006 03:47

Solved: Compiling latest VLC SVN / ffmpeg under Debian Sarge

Postby tsr » 24 Nov 2006 04:12

Hi guys,

for some time I have been trying to get an at least moderately current version of VLC running on my debian sarge dedicated server. this sounds a little dramatic, but I am having serious problems getting this nice thing to run properly. my latest attempt was grabbing the latest versions of the dependencies, compiling them, and then compiling VLC itself. so to speak, only a very small amount of dependencies are traditional debian sarge packages.

this is how i ran the ffmpeg (latest SVN 2006-11-23) configure script:

Code: Select all

./configure --enable-faac --enable-pp --enable-gpl --enable-xvid --enable-a52
i got no errors, and it compiled fine.

and this is how i ran the VLC (latest SVN as well) configure script (keep in mind its a dedicated server with no intended video output other than streaming):

Code: Select all

./configure \ --enable-ffmpeg --with-ffmpeg-tree=../ffmpeg-checkout-2006-11-23/ \ --enable-faad --with-faad-tree=../faad2-20040923/ \ --disable-wxwidgets \ --disable-skins2 \ --enable-release \ --enable-libtool \ --disable-gnome \ --disable-gtk \ --disable-familiar \ --disable-fb \ --enable-a52 \ --enable-aa \ --disable-kde \ --enable-mp4 \ --disable-satellite \ --enable-ogg \ --enable-vorbis \ --enable-shout \ --disable-slp \ --enable-flac \ --enable-freetype \ --enable-mkv \ --enable-speex \ --enable-live555 \ --enable-libmpeg2 \ --enable-dts \ --enable-fribidi \ --enable-mod \ --enable-theora \ --enable-modplug \ --enable-ffmpeg \ --enable-ncurses \ --disable-gnomevfs \ --enable-debug \ --enable-twolame
again, only minor warnings:

Code: Select all

--- snip snip --- checking liveMedia.hh usability... yes checking liveMedia.hh presence... yes checking for liveMedia.hh... yes checking for main in -lliveMedia_pic... yes checking dvdread/dvd_reader.h usability... yes checking dvdread/dvd_reader.h presence... yes checking for dvdread/dvd_reader.h... yes checking for dvdnav-config... /usr/bin/dvdnav-config checking libsmbclient.h usability... no checking libsmbclient.h presence... no checking for libsmbclient.h... no checking for struct _SMBCCTX.close_fn... no checking for dvbpsi/dr.h... yes checking for dvbpsi_GenSDTSections in -ldvbpsi... no checking for LIBCDIO_CFLAGS... checking for LIBCDIO_LIBS... configure: WARNING: CD Reading and information library not found checking for VCDINFO_CFLAGS... checking for VCDINFO_LIBS... configure: WARNING: VCD information library not found checking for cdrom_msf0 in linux/cdrom.h... yes checking for scsireq in sys/scsiio.h... no checking for ioc_toc_header in sys/cdio.h... no checking for LIBCDDB_CFLAGS... checking for LIBCDDB_LIBS... configure: WARNING: new enough libcddb not found. CDDB access disabled checking X11/Xlib.h usability... yes checking X11/Xlib.h presence... yes checking for X11/Xlib.h... yes checking for inet_pton... yes checking for sockaddr_in6 in netinet/in.h... yes checking ogg/ogg.h usability... yes checking ogg/ogg.h presence... yes checking for ogg/ogg.h... yes checking for oggpack_read in -logg... yes checking ebml/EbmlVersion.h usability... yes checking ebml/EbmlVersion.h presence... yes checking for ebml/EbmlVersion.h... yes checking for libebml version >= 0.7.6... yes checking matroska/KaxVersion.h usability... yes checking matroska/KaxVersion.h presence... yes checking for matroska/KaxVersion.h... yes checking for libmatroska version >= 0.7.7... yes checking matroska/KaxAttachments.h usability... yes checking matroska/KaxAttachments.h presence... yes checking for matroska/KaxAttachments.h... yes checking for main in -lebml... yes checking libmodplug/modplug.h usability... yes checking libmodplug/modplug.h presence... yes checking for libmodplug/modplug.h... yes checking mpcdec/mpcdec.h usability... no checking mpcdec/mpcdec.h presence... no checking for mpcdec/mpcdec.h... no configure: WARNING: only static linking is available, you must provide a gme-tree checking mad.h usability... yes checking mad.h presence... yes checking for mad.h... yes checking for mad_bit_init in -lmad... yes checking id3tag.h usability... no checking id3tag.h presence... no checking for id3tag.h... no checking for libavcodec.a in ../ffmpeg-checkout-2006-11-23/... /root/vlc/ffmpeg-checkout-2006-11-23/libavcodec/libavcodec.a CONFIG_ZLIB=yes CONFIG_FAAC=yes CONFIG_XVID=yes checking for libfaad.a in ../faad2-20040923/... /root/vlc/faad2-20040923/libfaad/.libs/libfaad.a checking twolame.h usability... yes checking twolame.h presence... yes checking for twolame.h... yes checking for twolame_init in -ltwolame... yes checking zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking sysfs/libsysfs.h usability... no checking sysfs/libsysfs.h presence... no checking for sysfs/libsysfs.h... no checking libtar.h usability... yes checking libtar.h presence... yes checking for libtar.h... yes checking a52dec/a52.h usability... yes checking a52dec/a52.h presence... yes checking for a52dec/a52.h... yes checking for a52_free in -la52... yes checking dts.h usability... yes checking dts.h presence... yes checking for dts.h... yes checking for dts_free in -ldts_pic... yes checking FLAC/stream_decoder.h usability... yes checking FLAC/stream_decoder.h presence... yes checking for FLAC/stream_decoder.h... yes checking mpeg2dec/mpeg2.h usability... yes checking mpeg2dec/mpeg2.h presence... yes checking for mpeg2dec/mpeg2.h... yes checking for libmpeg2 version >= 0.3.2... yes checking vorbis/codec.h usability... yes checking vorbis/codec.h presence... yes checking for vorbis/codec.h... yes checking vorbis/vorbisenc.h usability... yes checking vorbis/vorbisenc.h presence... yes checking for vorbis/vorbisenc.h... yes checking speex/speex.h usability... yes checking speex/speex.h presence... yes checking for speex/speex.h... yes checking for speex_decode_int in -lspeex... yes checking theora/theora.h usability... yes checking theora/theora.h presence... yes checking for theora/theora.h... yes checking for theora_granule_time in -ltheora... yes checking png.h usability... yes checking png.h presence... yes checking for png.h... yes checking for png_set_rows in -lpng... yes checking x264.h usability... yes checking x264.h presence... yes checking for x264.h... yes checking for x264_encoder_open in -lx264... yes checking for X11/extensions/dpms.h... yes checking for DPMSInfo in X11/extensions/dpms.h... yes checking for X11/Xlib.h... (cached) yes checking X11/extensions/Xv.h usability... yes checking X11/extensions/Xv.h presence... yes checking for X11/extensions/Xv.h... yes checking for XvPutImage in -lXv... yes checking for X11/Xlib.h... (cached) yes checking GL/glu.h usability... yes checking GL/glu.h presence... yes checking for GL/glu.h... yes checking GL/glx.h usability... yes checking GL/glx.h presence... yes checking for GL/glx.h... yes checking X11/extensions/Xinerama.h usability... yes checking X11/extensions/Xinerama.h presence... yes checking for X11/extensions/Xinerama.h... yes checking for XineramaQueryExtension in -lXinerama_pic... no checking for XineramaQueryExtension in -lXinerama... yes checking for X11/extensions/xf86vmode.h... yes checking for XF86VidModeGetViewPort in -lXxf86vm_pic... no checking for XF86VidModeGetViewPort in -lXxf86vm... yes checking GL/gl.h usability... yes checking GL/gl.h presence... yes checking for GL/gl.h... yes checking for GL/glu.h... (cached) yes checking for sdl12-config... no checking for sdl11-config... no checking for sdl-config... /usr/bin/sdl-config checking SDL/SDL.h usability... yes checking SDL/SDL.h presence... yes checking for SDL/SDL.h... yes checking SDL/SDL_image.h usability... no checking SDL/SDL_image.h presence... no checking for SDL/SDL_image.h... no checking SDL_image.h usability... no checking SDL_image.h presence... no checking for SDL_image.h... no configure: WARNING: The development package for SDL_image is not installed. You should install it alongside your SDL package. checking for freetype-config... /usr/bin/freetype-config checking Carbon/Carbon.h usability... no checking Carbon/Carbon.h presence... no checking for Carbon/Carbon.h... no checking for fribidi-config... /usr/bin/fribidi-config checking for xml2-config... /usr/bin/xml2-config --- snip snip ---
compiling went fine, too.


so whats wrong now ?
this is what i get when i try to stream a video file. i tried different source formats (divx5, xvid, etc) and different stream output formats (div3, mp4v, theo, etc...), i always get the same ffmpeg error message:

Code: Select all

:~/vlc monty_python_-_gumby_specialist.avi \ --sout-vorbis-max-bitrate 128 \ --sout-vorbis-min-bitrate 86 \ --sout-transcode-vb 610 \ --browse-dir "$DIR" \ --sout '#transcode{vcodec=mp4v,acodec=vorb,channels=2,soverlay}:duplicate{dst=std{access=http,mux=ogg,url=video.wyckid.de:8080}}' \ -v VLC media player 0.9.0-svn Grishenko [00000295] main private warning: Option sout-standard-url is deprecated. You should use sout-standard-dst instead. [00000297] main private: creating httpd [00000301] mux_ogg private: Open [00000301] mux_ogg private: Close Remote control interface initialized. Type `help' for help. [00000334] main private warning: Option sout-standard-url is deprecated. You should use sout-standard-dst instead. [00000335] main private: creating httpd [00000338] mux_ogg private: Open [00000345] avi private warning: unknown chunk (not loaded) [00000348] packetizer_mpeg4video packetizer warning: waiting for VOL [00000395] ffmpeg encoder warning: low delay forcing is only available for mpeg1/2 (mpeg4@0x820b2e0) [00000395] ffmpeg encoder error: cannot open encoder [00000331] stream_out_transcode private error: cannot find encoder ((null)) [00000331] stream_out_transcode private error: cannot create video chain [00000348] main packetizer error: cannot create packetizer output (mp4v) quit status change: ( new input: monty_python_-_gumby_specialist.avi ) status change: ( audio volume: 256 ) status change: ( play state: 1 ) quit: returned 0 (no error) status change: ( stop state: 0 ) status change: ( quit ) [00000345] avi private warning: unknown chunk (not unloaded) [00000338] main private warning: no more input streams for this mux [00000338] mux_ogg private: Close NOW NULL **** [00000287] main playlist: saving Media Library to file /home/master/.vlc/ml.xsp
i suspect the "ffmpeg encoder error: cannot open encoder" error message to be whats causing me my headache.
does anyone know what i seem to be doing wrong ? if so, i'd be really happy to get some feedback. :)

tsr
Blank Cone
Blank Cone
Posts: 25
Joined: 24 Nov 2006 03:47

Postby tsr » 25 Nov 2006 00:03

apparently the latest ffmpeg revisions don't not like VLC very much (i tried using it on yesterdays trunk checkout as well as on 0.8.6).
it looks like compatibility broke on november 13th.

ffmpeg revision 6329 works fine, tho. :)

xtophe
Big Cone-huna
Big Cone-huna
Posts: 1209
Joined: 24 Nov 2003 10:12
Location: Bristol, England

Postby xtophe » 25 Nov 2006 19:52

That was a bug in VLC fixed yesterday both in trunk and 0.8.6
Xtophe

tsr
Blank Cone
Blank Cone
Posts: 25
Joined: 24 Nov 2006 03:47

Postby tsr » 26 Nov 2006 03:03

hehe, seems like i checked it out just some hours too early ;)

drbob
New Cone
New Cone
Posts: 2
Joined: 28 Nov 2006 20:23

Postby drbob » 29 Nov 2006 11:37

I'm trying to do this too but am running into problems straight away whilst trying to run the bootstrap script since automake is version 1.4 in debian.

I get this error during the bootstrap script:

Code: Select all

+ aclocal1.4-p6 -I m4 aclocal: configure.ac: 41: macro `AM_PROG_CC_C_O' not found in library aclocal: configure.ac: 50: macro `AM_PROG_AS' not found in library aclocal: configure.ac: 315: macro `AM_CPPFLAGS' not found in library
So I installed automake 1.9 manually and now I get this error:

Code: Select all

Copying file autotools/mkinstalldirs + aclocal-1.9 -I m4 + autoconf configure.ac:1: error: possibly undefined macro: dnl If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.ac:26: error: possibly undefined macro: AS_IF configure.ac:74: error: possibly undefined macro: AC_DISABLE_STATIC configure.ac:75: error: possibly undefined macro: AC_LIBTOOL_DLOPEN configure.ac:76: error: possibly undefined macro: AC_LIBTOOL_WIN32_DLL configure.ac:77: error: possibly undefined macro: AC_PROG_LIBTOOL configure.ac:102: error: possibly undefined macro: AC_MSG_ERROR configure.ac:105: error: possibly undefined macro: AC_MSG_WARN configure.ac:314: error: possibly undefined macro: AC_DEFINE configure.ac:345: error: possibly undefined macro: AC_CHECK_LIB configure.ac:433: error: possibly undefined macro: AC_CHECK_HEADERS
Any help/suggestions would be much appreciated. I don't often compile stuff from source but a I need a recent vlc and I though this would be less painful than changing distributions......


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 6 guests