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

*nix specific usage questions
charlestsai
New Cone
New Cone
Posts: 5
Joined: 11 Jun 2010 05:38

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

Postby charlestsai » 11 Jun 2010 07:49

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?

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

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

Postby xtophe » 11 Jun 2010 20:45

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
Xtophe

charlestsai
New Cone
New Cone
Posts: 5
Joined: 11 Jun 2010 05:38

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

Postby charlestsai » 15 Jun 2010 05:04

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??

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

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

Postby xtophe » 15 Jun 2010 19:54

because your ffmpeg installation is broken
Xtophe


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

Who is online

Users browsing this forum: No registered users and 14 guests