Page 1 of 1

I compile vlc and ffmpeg source, but it can't play h264 file

Posted: 11 Jun 2010 07:49
by charlestsai
Dear All:
What is the problem that "No suitable decoder module: VLC does not support the audio or video format 'h264' "?
I compile vlc source, and all three-party library get from "apt-get install" command, then vlc play h264 video file successful,

and I remove librarys that about ffmpeg (using apt-get autoremove ffmpeg), compile and install ffmpeg from source, then vlc play h264 file fail.
but ffplay can play it.

how compile vlc+ffmpeg source?

Re: I compile vlc and ffmpeg source, but it can't play h264

Posted: 11 Jun 2010 20:45
by xtophe
You need to recompile VLC or make sure that the version of libavcodec you have compiled is compatible with the one from the packages.

vlc -vvv --list |grep avcodec will tell you what the problem is

Re: I compile vlc and ffmpeg source, but it can't play h264

Posted: 15 Jun 2010 05:04
by charlestsai
I run './vlc -vvv -list | grep avcodec', it return as follow
VLC media player 1.0.6 Goldeneye
[0x9af9710] main libvlc debug: VLC media player - version 1.0.6 Goldeneye - (c) 1996-2010 the VideoLAN team
[0x9af9710] main libvlc debug: libvlc was configured with ./configure '--enable-nls' '--enable-sdl' '--enable-avcodec' '--enable-avformat' '--enable-swscale' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-freetype' '--enable-fribidi' '--disable-fluidsynth' '--enable-live555' '--enable-caca' '--disable-cddax' '--disable-vcdx' '--enable-goom' '--enable-twolame' '--enable-debug' '--enable-dca' '--disable-mkv' '--disable-taglib' '--disable-zvbi' '--with-live555-tree=../live' '--disable-optimizations' 'CFLAGS=-I/home/charles/workspace/vlc/contrib/include' 'LDFLAGS=-L/home/charles/workspace/vlc/contrib/lib' 'CPPFLAGS=-I/home/charles/workspace/vlc/contrib/include' 'PKG_CONFIG_PATH=/home/charles/workspace/vlc/contrib/lib/pkgconfig'
[0x9af9710] main libvlc debug: translation test: code is "C"
[0x9af9710] main libvlc debug: checking plugin modules
[0x9af9710] main libvlc debug: loading plugins cache file /home/charles/.cache/vlc/plugins-04041e.dat
[0x9af9710] main libvlc debug: recursively browsing `/usr/local/lib/vlc'
[0x9af9710] main libvlc debug: recursively browsing `/home/charles/workspace/vlc/vlc-1.0.6/modules'
[0x9af9710] main libvlc warning: cannot load module `/home/charles/workspace/vlc/vlc-1.0.6/modules/demux/avformat/.libs/libavformat_plugin.so' (/home/charles/workspace/vlc/vlc-1.0.6/modules/demux/avformat/.libs/libavformat_plugin.so: undefined symbol: avcodec_register_all)
[0x9af9710] main libvlc warning: cannot load module `/home/charles/workspace/vlc/vlc-1.0.6/modules/video_filter/.libs/libswscale_plugin.so' (/home/charles/workspace/vlc/vlc-1.0.6/modules/video_filter/.libs/libswscale_plugin.so: undefined symbol: av_free)
[0x9af9710] main libvlc warning: cannot load module `/home/charles/workspace/vlc/vlc-1.0.6/modules/codec/avcodec/.libs/libavcodec_plugin.so' (/home/charles/workspace/vlc/vlc-1.0.6/modules/codec/avcodec/.libs/libavcodec_plugin.so: undefined symbol: inflateEnd)
[0x9af9710] main libvlc debug: module bank initialized (337 modules)
[0x9af9710] main libvlc debug: opening config file (/home/charles/.config/vlc/vlcrc)
[0x9af9710] main libvlc debug: writing plugins cache /home/charles/.cache/vlc/plugins-04041e.dat

The ffmpeg is V0.5.2
libavcodec is 52.20.1
libavdevice is 52.1.0
libavfilter is 0.4.0
libavformat is 52.31.0
libavutil is 49.15.0
libpostproc is 51.2.0
libswscale is 0.7.1

why vlc load module fail??

Re: I compile vlc and ffmpeg source, but it can't play h264

Posted: 15 Jun 2010 19:54
by xtophe
because your ffmpeg installation is broken