Compile error 0.9.1 PIX_BUF ?

*nix specific usage questions
Shadow_7
Blank Cone
Blank Cone
Posts: 14
Joined: 02 Sep 2008 02:39

Compile error 0.9.1 PIX_BUF ?

Postby Shadow_7 » 02 Sep 2008 03:03

The basics...

kernel : 2.6.25.9
distro: debian / stable
vlc: 0.9.1

Compiling from source yields the error below. I'm probably missing a dep or didn't disable something. Although configure worked fine. I downloaded vlc-0.9.1.tar.bz2 this morning. Debian is up to date as of this morning as well. Several from source efforts faad2, faac, x264, lame, and I don't have many of the SVN ones on that table of deps page. Any hints. I'm trying to play .MTS files (H.264) as I'm looking at getting an HD camcorder. And trying to compare the results of AVCHD 24Mbps vs. HDV on an older model.

http://wiki.videolan.org/Contrib_Status


./configure --prefix=/usr --disable-dirac --disable-live555

make

...
...
make[6]: Entering directory `/usr/src/video/vlc-0.9.1/modules/codec/avcodec'
/bin/sh ../../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include -DSYS_LINUX `top_builddir="../../.." ../../../vlc-config --cflags plugin libavcodec_plugin_la-video.lo` -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -MT libavcodec_plugin_la-video.lo -MD -MP -MF .deps/libavcodec_plugin_la-video.Tpo -c -o libavcodec_plugin_la-video.lo `test -f 'video.c' || echo './'`video.c
gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include -DSYS_LINUX -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=avcodec -DMODULE_NAME_IS_avcodec -DMODULE_STRING=\"avcodec\" -O2 -ffast-math -funroll-loops -mtune=pentium2 -fomit-frame-pointer -I/usr/include/ffmpeg -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -MT libavcodec_plugin_la-video.lo -MD -MP -MF .deps/libavcodec_plugin_la-video.Tpo -c video.c -fPIC -DPIC -o .libs/libavcodec_plugin_la-video.o
In file included from video.c:48:
chroma.h:72: error: ‘PIX_FMT_NV12’ undeclared here (not in a function)
chroma.h:73: error: ‘PIX_FMT_NV21’ undeclared here (not in a function)
chroma.h:82: error: ‘PIX_FMT_RGB4’ undeclared here (not in a function)
chroma.h:82: error: ‘PIX_FMT_BGR4’ undeclared here (not in a function)
chroma.h:83: error: ‘PIX_FMT_RGB8’ undeclared here (not in a function)
chroma.h:83: error: ‘PIX_FMT_BGR8’ undeclared here (not in a function)
chroma.h:84: error: ‘PIX_FMT_BGR555’ undeclared here (not in a function)
chroma.h:85: error: ‘PIX_FMT_BGR565’ undeclared here (not in a function)
chroma.h:88: error: ‘PIX_FMT_BGR32’ undeclared here (not in a function)
chroma.h:89: error: ‘PIX_FMT_RGB32_1’ undeclared here (not in a function)
chroma.h:89: error: ‘PIX_FMT_BGR32_1’ undeclared here (not in a function)
chroma.h: In function ‘GetFfmpegChroma’:
chroma.h:116: warning: comparison between signed and unsigned
chroma.h:117: warning: comparison between signed and unsigned
chroma.h:118: warning: comparison between signed and unsigned
make[6]: *** [libavcodec_plugin_la-video.lo] Error 1
make[6]: Leaving directory `/usr/src/video/vlc-0.9.1/modules/codec/avcodec'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/usr/src/video/vlc-0.9.1/modules/codec/avcodec'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/usr/src/video/vlc-0.9.1/modules/codec'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/usr/src/video/vlc-0.9.1/modules/codec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/video/vlc-0.9.1/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/video/vlc-0.9.1'
make: *** [all] Error 2

Thanks in advance.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Compile error 0.9.1 PIX_BUF ?

Postby Jean-Baptiste Kempf » 02 Sep 2008 04:34

Update your FFmpeg
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Shadow_7
Blank Cone
Blank Cone
Posts: 14
Joined: 02 Sep 2008 02:39

Re: Compile error 0.9.1 PIX_BUF ?

Postby Shadow_7 » 02 Sep 2008 17:59

Thanks, that seems to have worked.

Any tips for compile options for a dual core cpu? I'm still lagging severely in performance on MTS files. But I can play them finally. In a sort of stop motion, disable the audio type fashion.

./configure --enable-????

for vlc and ffmpeg? I seem to only be using one core on the cpu gauge in IceWM.

more than 5 seconds of late video -> dropping frame (computer too slow?)

AMD Athlon (tm) 64 X2 Dual Core Processor 3600+
1GB Ram
nVidia GeForce 6100 nForce 430 (rev a2)
1.9GHz x2 CPUs

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

Re: Compile error 0.9.1 PIX_BUF ?

Postby xtophe » 03 Sep 2008 14:41

libavcodec (from FFMpeg project) is used to decode H.264 and is monothread at the moment.
Xtophe

newtovlc-031910
New Cone
New Cone
Posts: 1
Joined: 19 Mar 2010 20:58

Re: Compile error 0.9.1 PIX_BUF ?

Postby newtovlc-031910 » 19 Mar 2010 21:11

Linux:

kernel : 2.4.26
distro: debian / stable
vlc: 1.0.5

Compiling from source yields the error below.

./configure –prefix=/usr –disable-mad –disable-swscale –disable-postproc –disable-glx –disable-qt4 –disable-skins2

make

...
...
Making all in avcodec
make[5]: Entering directory `/usr/src/vlc-1.0.5/modules/codec/avcodec'
make all-am
make[6]: Entering directory `/usr/src/vlc-1.0.5/modules/codec/avcodec'
/bin/sh ../../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include -DSYS_LINUX `top_srcdir="../../.." top_builddir="../../.." ../../../vlc-config --cflags plugin libavcodec_plugin_la-chroma.lo` -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -MT libavcodec_plugin_la-chroma.lo -MD -MP -MF .deps/libavcodec_plugin_la-chroma.Tpo -c -o libavcodec_plugin_la-chroma.lo `test -f 'chroma.c' || echo './'`chroma.c
libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../../.. -I../../../include -I../../../include -DSYS_LINUX -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=avcodec -DMODULE_NAME_IS_avcodec -DMODULE_STRING=\"avcodec\" -O2 -ffast-math -funroll-loops -mtune=pentium2 -fomit-frame-pointer -I/usr/include/ffmpeg -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -Wvolatile-register-var -Werror-implicit-function-declaration -MT libavcodec_plugin_la-chroma.lo -MD -MP -MF .deps/libavcodec_plugin_la-chroma.Tpo -c chroma.c -fPIC -DPIC -o .libs/libavcodec_plugin_la-chroma.o
In file included from ../../../include/vlc_common.h:516,
from chroma.c:29:
../../../include/vlc_mtime.h:80: warning: 'error' attribute directive ignored
../../../include/vlc_mtime.h:90: warning: 'warning' attribute directive ignored
../../../include/vlc_mtime.h:108: warning: 'error' attribute directive ignored
chroma.c:88: error: 'PIX_FMT_NV12' undeclared here (not in a function)
chroma.c:89: error: 'PIX_FMT_NV21' undeclared here (not in a function)
chroma.c:98: error: 'PIX_FMT_RGB4' undeclared here (not in a function)
chroma.c:98: error: 'PIX_FMT_BGR4' undeclared here (not in a function)
chroma.c:99: error: 'PIX_FMT_RGB8' undeclared here (not in a function)
chroma.c:99: error: 'PIX_FMT_BGR8' undeclared here (not in a function)
chroma.c:101: error: 'PIX_FMT_BGR555' undeclared here (not in a function)
chroma.c:102: error: 'PIX_FMT_BGR565' undeclared here (not in a function)
chroma.c:105: error: 'PIX_FMT_BGR32' undeclared here (not in a function)
chroma.c:106: error: 'PIX_FMT_RGB32_1' undeclared here (not in a function)
chroma.c:106: error: 'PIX_FMT_BGR32_1' undeclared here (not in a function)
chroma.c: In function 'GetFfmpegChroma':
chroma.c:137: warning: comparison between signed and unsigned
chroma.c:138: warning: comparison between signed and unsigned
chroma.c:139: warning: comparison between signed and unsigned
make[6]: *** [libavcodec_plugin_la-chroma.lo] Error 1
make[6]: Leaving directory `/usr/src/vlc-1.0.5/modules/codec/avcodec'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/usr/src/vlc-1.0.5/modules/codec/avcodec'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/usr/src/vlc-1.0.5/modules/codec'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/usr/src/vlc-1.0.5/modules/codec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/vlc-1.0.5/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/vlc-1.0.5'
make: *** [all] Error 2

I have installed ffmpeg package with "apt-get install ffmpeg", but it doesn't help. Any idea? Thanks,

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

Re: Compile error 0.9.1 PIX_BUF ?

Postby xtophe » 19 Mar 2010 21:27

libavcodec looks too old
Xtophe

hubetu
New Cone
New Cone
Posts: 1
Joined: 01 Jul 2010 19:49

Re: Compile error 0.9.1 PIX_BUF ?

Postby hubetu » 01 Jul 2010 19:51

Hi,

I encountered the same problem, however, it's not because of libavcodec.

Any help would be appreciated.

Mark
Last edited by hubetu on 02 Jul 2010 16:53, edited 1 time in total.

Rémi Denis-Courmont
Developer
Developer
Posts: 15228
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Compile error 0.9.1 PIX_BUF ?

Postby Rémi Denis-Courmont » 02 Jul 2010 03:56

Update avcodec.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


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

Who is online

Users browsing this forum: No registered users and 40 guests