Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 11153

Summary: mjpegtools: no mpeg2dec
Product: Gentoo Linux Reporter: Roman Valls <brainstorm>
Component: New packagesAssignee: phoen][x <fisi.tilman.klar>
Status: RESOLVED INVALID    
Severity: normal CC: brainstorm, k, marduk, mholzer, mkennedy, tom.gl
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://mjpeg.sourceforge.net
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge info, full emerge mjpegtools
emerge mjpegtools-1.6.0-r7.ebuild output

Description Roman Valls 2002-11-24 04:27:40 UTC
After emerging mjpegtools, I couldn't find the mpeg2dec program. As the mpeg2enc
man page says, mpeg2dec is needed by mpegtranscode, so mpegtranscode is useless
right now.
Comment 1 phoen][x 2002-11-25 03:22:36 UTC
Heyas Roman,

which version of mjpegtools do you use?
And attach an "emerge info" please.

Thanks, 

-phoen][x-
Comment 2 Roman Valls 2002-11-25 09:16:59 UTC
Hi Phoen][x ! here's the info that you requested:

*  media-video/mjpegtools
      Latest version available: 1.6.0-r5
      Latest version installed: 1.6.0-r5
      Size of downloaded files: 1,454 kB
      Homepage:    http://mjpeg.sourceforge.net/
      Description: Tools for MJPEG video


root@brainmachine mjpegtools # emerge info
Portage 2.0.44 (default-1.0-gcc3, gcc-3.1.1, glibc-2.2.5-r4,2.2.5-r7)
=================================================================
System uname: 2.4.19-gentoo-r9 i686 AuthenticAMD
USE="x86 oss apm gif libg++ mikmod ncurses pdflib qtmt spell xml2 zlib gdbm berk
db slang readline tetex java guile X pam libwww imlib qt motif ldap cdr mmx 3dno
w opengl sdl xv dga fbcon ssl sasl -kde -arts nocardbus gnome tcltk gtk gtk2 gtk
+ giff jpeg png avi mpeg quicktime alsa esd dvd xmms oggvorbis lirc flash encode
 crypt imap tcpd mozilla truetype perl python samba gphoto2 cups svga gpm -nls"
ARCH="x86"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon -O3 -funroll-loops -pipe -fomit-frame-pointer -m3dnow -mmm
x"
CXXFLAGS="-march=athlon -O3 -funroll-loops -pipe -fomit-frame-pointer -m3dnow -m
mmx"
ACCEPT_KEYWORDS="x86"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi
g /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
MAKEOPTS="-j2"
JDK_HOME="/opt/blackdown-jdk-1.3.1"
JAVA_HOME="/opt/blackdown-jdk-1.3.1"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="http://www.ibiblio.org/gentoo"
Comment 3 phoen][x 2002-11-25 12:42:33 UTC
Could you retry it with -r6?
Anyways, i have mpeg2dec - here's my "emerge info":

Portage 2.0.44 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2)
=================================================================
System uname: 2.4.20-pre7-mjc2 i686 AMD Athlon(tm) processor
USE="x86 3dnow apm avi crypt gif jpeg libg++ mikmod mmx mpeg ncurses nls pdflib
png qtmt quicktime truetype xml2 xmms xv zlib gdbm berkdb slang readline sdl
tcpd pam libwww ssl perl python esd imlib oggvorbis gtk motif opengl aalib
bonobo gnome cups dvd ggi gtkhtml guile java mozilla nas svga tcltk ogg vorbis
objprelink fbcon oss mhash mcrypt encode -alsa -arts -kde -gpm -qt directfb X
gtk2 ggz cdr evo imap -ldap spell pda mysql"
ARCH="x86"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer
-funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4
-maccumulate-outgoing-args"
CXXFLAGS="-march=athlon-tbird -O3 -pipe -fforce-addr -fomit-frame-pointer
-funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4
-maccumulate-outgoing-args"
ACCEPT_KEYWORDS="x86 ~x86"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
MAKEOPTS="-j2"
JDK_HOME="/opt/blackdown-jdk-1.4.1_beta"
JAVA_HOME="/opt/blackdown-jdk-1.4.1_beta"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"

-phoen][x-
Comment 4 Roman Valls 2002-11-25 15:59:06 UTC
I've tried ACCEPT_KEYWORDS="x86 ~x86", emerged -r6, but it doesn't compile now
:-/ Maybe it's time to try Gentoo 1.4 :-?

i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include
-DG_LOG_DOMAIN
=\"lavtools\" -DLAVPLAY_VERSION=\"1.6.0\" -I/usr/include -I/usr/include/glib-1.2
-I/u
sr/lib/glib/include -I/usr/local/include -I
/var/tmp/portage/mjpegtools-1.6.0-r6/work
/quicktime4linux-1.4-patch -I/usr/X11R6/include -I /usr/X11R6/include -I../utils
-I/u
sr/include/avifile -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
-I/usr/lib/glib/inc
lude -I/usr/X11R6/include -mcpu=i686 -march=i686 -march=i686 -Wall -Wunused -c
avilib
.c -MT avilib.lo -MD -MP -MF .deps/avilib.TPlo  -fPIC -DPIC -o avilib.o
cc1: warning: changing search order for system directory "/usr/local/include"
cc1: warning:   as it has already been specified as a non-system directory
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning:   as it has already been specified as a non-system directory
lav_io.c: In function `check_DV2_input':
lav_io.c:1385: too few arguments to function `dv_decoder_new'
make[2]: *** [lav_io.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f avilib.o .libs/avilib.lo
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/include
-DG_LOG_DOMAIN
=\"lavtools\" -DLAVPLAY_VERSION=\"1.6.0\" -I/usr/include -I/usr/include/glib-1.2
-I/u
sr/lib/glib/include -I/usr/local/include -I
/var/tmp/portage/mjpegtools-1.6.0-r6/work
/quicktime4linux-1.4-patch -I/usr/X11R6/include -I /usr/X11R6/include -I../utils
-I/u
sr/include/avifile -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
-I/usr/lib/glib/inc
lude -I/usr/X11R6/include -mcpu=i686 -march=i686 -march=i686 -Wall -Wunused -c
avilib
.c -MT avilib.lo -MD -MP -MF .deps/avilib.TPlo -o avilib.o >/dev/null 2>&1
mv -f .libs/avilib.lo avilib.lo
make[2]: Leaving directory
`/var/tmp/portage/mjpegtools-1.6.0-r6/work/mjpegtools-1.6.
0/lavtools'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/mjpegtools-1.6.0-r6/work/mjpegtools-1.6.
0'
make: *** [all] Error 2

!!! ERROR: media-video/mjpegtools-1.6.0-r6 failed.
!!! Function src_compile, Line -85, Exitcode 2
!!! (no error message)
Comment 5 phoen][x 2002-11-26 13:42:08 UTC
Which version of libdv do you have?

(Run "emerge -s libdv" and paste the output here)

-phoen][x-
Comment 6 Roman Valls 2002-11-26 14:32:19 UTC
Here you are:

*  media-libs/libdv
      Latest version available: 0.98
      Latest version installed: 0.98
      Size of downloaded files: 346 kB
      Homepage:    http://libdv.sourceforge.net/
      Description: software codec for dv-format video (camcorders etc)
Comment 7 Marc Chabrol 2002-11-26 16:51:23 UTC
I can confirm the issue with 

lav_io.c:1385: too few arguments to function `dv_decoder_new'

while trying to compile mjpegtools-1.6.0-r6.

I have the same version of libdv (0.98) 

A quick vi on /usr/include/libdv/dv.h shows me on line 50 that dv_decoder_new 
needs 3 parameters (at least in 0.98 which is the latest available) :

extern dv_decoder_t *dv_decoder_new     (int add_ntsc_setup, int clamp_luma,
                          int clamp_chroma);

So, I tried editing the ebuild and commented the 2 mv and sed to leave the call
to dv_decoder_new as it is -> dv_decoder_new(0,0,0).

It compiled and installed perfectly. I can't tell about it working, as I am not
in front of the computer right now, but I'll try some mpeg encoding soon.

Hope this helps.

Marc.
Comment 8 phoen][x 2002-11-27 09:02:53 UTC
Nope this doesnt help a bit. It confuses me even more.

See, we compile against
/var/tmp/portage/mjpegtools-1.6.0-r6/work/quicktime4linux-1.4-patch/libdv.{c.h},
not against the one in /usr/include. If you check the ebuild, you'll see that
the original files of mjpegtools use dv_decoder_new (0,0,0) - i used sed to
patch the files (src_unpack()). Thats because the libdv in
work/quicktime4linux-1.4-patch/ doesn't implement dv_decoder_new with 3
parameters - it implements the function dv_decoder_new w/o any parameters; so
dv_decoder_new() would be the correct usage.

Just look at bug 11163:
>> lav_io.c: In function `check_DV2_input':
>> lav_io.c:1385: too many arguments to function `dv_decoder_new'
>> lav_io.c:1415: warning: implicit declaration of function `dv_decoder_free'

Funny is it not?

So in a nutshell we have the following situation:
On spiders and mine box: mjpegtools fails to compile when you use
dv_decoder_new(0,0,0);
On your boxes: mjpegtools fails to compile when you use dv_decoder_new();

Besides, i also have libdv0.98 installed.

I don't see the problem though - help will be greatly appreciated.

-phoen][x-
Comment 9 SpanKY gentoo-dev 2002-11-29 12:03:58 UTC
*** Bug 11349 has been marked as a duplicate of this bug. ***
Comment 10 SpanKY gentoo-dev 2002-12-10 14:21:36 UTC
*** Bug 11911 has been marked as a duplicate of this bug. ***
Comment 11 Peter B. 2002-12-13 15:56:27 UTC
emerging mjpegtools-1.6.0-r5 still fails. But the first time I build the system it worked. That's strange, or not? Now building mjpegtools-1.6.0-r6 works, but using bei "tosvcd" (another software not included in gentoo now) fails.  There is libdv0.98 installed. Does anybody have an idea? --------------------------------------------- lav_io.c: In function `check_DV2_input': lav_io.c:1385: too many arguments to function `dv_decoder_new' lav_io.c:1415: warning: implicit declaration of function `dv_decoder_free' make[2]: *** [lav_io.lo] Error 1 make[2]: *** Waiting for unfinished jobs.... mv -f .libs/editlist.lo editlist.lo make[2]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.0-r5/work/mjpegtools-1.6.0/lavtools' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/mjpegtools-1.6.0-r5/work/mjpegtools-1.6.0' make: *** [all] Error 2  !!! ERROR: media-video/mjpegtools-1.6.0-r5 failed. !!! Function src_compile, Line 88, Exitcode 2 !!! (no error message)  
Comment 12 Matthew Kennedy (RETIRED) gentoo-dev 2002-12-13 18:48:56 UTC
PeeBee, could you repost that last one. its just one long line to me
Comment 13 Dylan Carlson (RETIRED) gentoo-dev 2002-12-17 21:02:40 UTC
My build fails with different errors...  man, what a stinky compile this one is... 
 
/bin/sh ../libtool --mode=link gcc  -mcpu=i686 -march=i686 -O3 -mcpu=athlon-tbird 
-march=i686  -Wall -Wunused   -o lavvideo  lavvideo.o 
gcc -mcpu=i686 -march=i686 -O3 -mcpu=athlon-tbird -march=i686 -Wall -Wunused 
-o lavvideo lavvideo.o 
gcc -mcpu=i686 -march=i686 -O3 -mcpu=athlon-tbird -march=i686 -Wall -Wunused 
-o .libs/lavrec lavrec.o  
-L/data/tmp/portage/mjpegtools-1.6.0-r6/work/mjpegtools-1.6.0/utils -lmjpegutils 
./.libs/liblavrec.so ./.libs/liblavfile.so -L/usr/lib -lmovtar 
-L/data/tmp/portage/mjpegtools-1.6.0-r6/work/quicktime4linux-1.4-patch 
-L/data/tmp/portage/mjpegtools-1.6.0-r6/work/quicktime4linux-1.4-patch/i686 
-lquicktime -lpthread -lpng -lz -lm -L/lib -ldl -L/usr/include/jpeg-mmx -L/usr/local/lib 
/usr/lib/libdv.so /usr/lib/libpopt.so /usr/lib/libSDL.so -L/usr/kde/3/lib -lartsc 
/usr/lib/libesd.so /usr/lib/libaudiofile.so -lm /usr/lib/libasound.so -L/usr/X11R6/lib -lX11 
-lXext -lvga -ldl -lpthread -lm /usr/lib/libglib.so -lpthread -ldl ./.libs/liblavjpeg.so 
/usr/lib/libjpeg.so -lpthread 
/bin/sh ../libtool --mode=link gcc  -mcpu=i686 -march=i686 -O3 -mcpu=athlon-tbird 
-march=i686  -Wall -Wunused   -o lav2wav  lav2wav.o -L../utils -lmjpegutils liblavfile.la 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find 
-lartsc 
collect2: ld returned 1 exit status 
make[2]: *** [lavrec] Error 1 
make[2]: *** Waiting for unfinished jobs.... 
gcc -mcpu=i686 -march=i686 -O3 -mcpu=athlon-tbird -march=i686 -Wall -Wunused 
-o .libs/lav2wav lav2wav.o  
-L/data/tmp/portage/mjpegtools-1.6.0-r6/work/mjpegtools-1.6.0/utils -lmjpegutils 
./.libs/liblavfile.so -L/usr/lib -lmovtar 
-L/data/tmp/portage/mjpegtools-1.6.0-r6/work/quicktime4linux-1.4-patch 
-L/data/tmp/portage/mjpegtools-1.6.0-r6/work/quicktime4linux-1.4-patch/i686 
-lquicktime -lpthread -lpng -lz -lm -L/lib -ldl -L/usr/include/jpeg-mmx /usr/lib/libjpeg.so 
-L/usr/local/lib /usr/lib/libdv.so /usr/lib/libpopt.so /usr/lib/libSDL.so -L/usr/kde/3/lib 
-lartsc /usr/lib/libesd.so /usr/lib/libaudiofile.so -lm /usr/lib/libasound.so -L/usr/X11R6/lib 
-lX11 -lXext -lvga -ldl -lpthread -lm /usr/lib/libglib.so -lpthread -ldl 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find 
-lartsc 
collect2: ld returned 1 exit status 
make[2]: *** [lav2wav] Error 1 
make[2]: Leaving directory 
`/data/tmp/portage/mjpegtools-1.6.0-r6/work/mjpegtools-1.6.0/lavtools' 
make[1]: *** [all-recursive] Error 1 
make[1]: Leaving directory 
`/data/tmp/portage/mjpegtools-1.6.0-r6/work/mjpegtools-1.6.0' 
make: *** [all] Error 2 
 
!!! ERROR: media-video/mjpegtools-1.6.0-r6 failed. 
!!! Function src_compile, Line 97, Exitcode 2 
!!! (no error message) 
 
Comment 14 Sascha Wuestemann 2002-12-22 13:38:30 UTC
Created attachment 6674 [details]
emerge info, full emerge mjpegtools

I experienced same problems concerning lav_io.lo for the quicktime problem.
FYC I put the nescessary information to the attachement to avoid bloating this
page - I hope it helps.

regards
Sascha
Comment 15 Roman Valls 2003-01-04 16:49:38 UTC
Created attachment 6961 [details]
emerge mjpegtools-1.6.0-r7.ebuild output

r-7 still does not merge, #11163 is not the solution (almost for me... anyone
else can confirm it ?).
Comment 16 Scott Richey 2003-01-15 11:39:30 UTC
I had the same problem with dv_decoder_new with r5. I was able to successfully
merge r7 today though. Only problem is if I want to emerge -u world now, it
tries to downgrade mjpegtools to r5, which doesn't compile. Guess I'll be unable
to update world (stable) until r7 is marked stable.
Comment 17 Peter Penkala gentoo-dev 2003-02-07 16:58:05 UTC
I was able to solve the problem in 14812 to get 1.6.0-r5 installed.
To get r7 installed, I changed my CFLAGS from "-march=i686 -O3 -pipe" to "-march=i586 -O2 -pipe" and added -quicktime to USE.



Portage 2.0.46-r9 (default-1.0, gcc-2.95.3, glibc-2.2.5-r7)
=================================================================
System uname: 2.4.19-r1 i686 AMD Athlon(tm) Processor
GENTOO_MIRRORS="http://gentoo.oregonstate.edu/                          http://w 
ww.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share 
/config /usr/X11R6/lib/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY="/usr/local/portage"
USE="cups bonobo cdr gnome-libs mozilla tcltk tetex x86 3dnow aalib -alsa apache 
2 apm -arts avi berkdb crypt dvd encode -esd -fbcon gd gdbm ggi gif gnome gpm -g 
tk gtk2 imlib java jpeg -kde ldap libg++ libwww mikmod mmx motif mpeg mysql ncur 
ses nls nocardbus odbc oggvorbis opengl oss pam -pcmcia pdflib perl php png -pos 
tgres python -qt -qtmt -quicktime readline sdl slang slp socks5 spell ssl svga t 
cpd tiff truetype X xml xml2 -xmms xv"
COMPILER=""
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i586 -O2 -pipe"
CXXFLAGS="-march=i586 -O2 -pipe"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache buildpkg"
Comment 18 SpanKY gentoo-dev 2003-02-09 02:02:40 UTC
*** Bug 15287 has been marked as a duplicate of this bug. ***
Comment 19 Vlad Berditchevskiy 2003-02-09 16:58:28 UTC
BTW, I worked around my particular problem described in 15388 (unable to update to gnome 2.2) by forcing portage to install mjpegtools-1.6.0-r7 (I removed the tilde in KEYWORDS in mjpegtools-1.6.0-r7.ebuild). r7 seems to compile fine.
Comment 20 Martin Holzer (RETIRED) gentoo-dev 2003-02-09 17:57:45 UTC
Transcoding of MPEG-2 streams to MPEG-2/MPEG-1 is supported through patches to the output drivers for mpeg2dec and ac3dec tools from the Linux Video and DVD Project. 

http://linuxvideo.org/

for all other Just look at bug 11163 which was fixed
Comment 21 Martin Holzer (RETIRED) gentoo-dev 2003-02-09 17:58:50 UTC
btw.
qpkg -f /usr/bin/mpeg2decode
media-video/mpeg2vidcodec *