mp4 codec

Discussion in 'Linux, BSD and Other OS's' started by StimpE, Sep 26, 2006.

  1. StimpE

    StimpE lol, Internet!

    Likes Received:
    1
    Trophy Points:
    18
    I'm tryin to playback a .mp4 video file but I don't have the codecs for it. I downloaded the AAC codecs which I read have support for mp4 as well from here but when I try to compile them I get a few errors:

    Code:
    [landon@localhost ~]$ cd /home/landon/Download/faad2
    [landon@localhost faad2]$ su
    Password:
    [root@localhost faad2]# autoreconf -vif
    autoreconf-2.5x: Entering directory `.'
    autoreconf-2.5x: configure.in: not using Gettext
    autoreconf-2.5x: running: aclocal  --output=aclocal.m4t
    autoreconf-2.5x: `aclocal.m4' is created
    autoreconf-2.5x: configure.in: tracing
    autoreconf-2.5x: running: libtoolize --copy --force
    autoreconf-2.5x: `aclocal.m4' is unchanged
    autoreconf-2.5x: running: /usr/bin/autoconf --force
    autoreconf-2.5x: running: /usr/bin/autoheader --force
    autoreconf-2.5x: running: automake --add-missing --copy --force-missing
    configure.in: installing `./install-sh'
    configure.in: installing `./mkinstalldirs'
    configure.in: installing `./missing'
    Makefile.am: installing `./INSTALL'
    common/mp4ff/Makefile.am: installing `./compile'
    common/mp4ff/Makefile.am: installing `./depcomp'
    plugins/Makefile.am:5: required directory plugins/bmp does not exist
    plugins/xmms/src/Makefile.am:2: libdir was already defined in condition TRUE, which implies condition HAVE_BMP_TRUE ...
    configure.in:10: ... `libdir' previously defined here.
    plugins/xmms/src/Makefile.am:8: libdir was already defined in condition TRUE, which implies condition HAVE_BMP_FALSE ...
    plugins/Makefile.am:5: required directory plugins/bmp does not exist
    plugins/xmms/src/Makefile.am:2: libdir was already defined in condition TRUE, which implies condition HAVE_BMP_TRUE ...
    configure.in:10: ... `libdir' previously defined here.
    plugins/xmms/src/Makefile.am:8: libdir was already defined in condition TRUE, which implies condition HAVE_BMP_FALSE ...
    autoreconf-2.5x: automake failed with exit status: 1
    [root@localhost faad2]# ./configure --with-mp4v2
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking for style of include used by make... GNU
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ANSI C... none needed
    checking dependency style of gcc... gcc3
    checking for a sed that does not truncate output... /bin/sed
    checking for egrep... grep -E
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for /usr/bin/ld option to reload object files... -r
    checking for BSD-compatible nm... /usr/bin/nm -B
    checking whether ln -s works... yes
    checking how to recognise dependent libraries... pass_all
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking dependency style of g++... gcc3
    checking how to run the C++ preprocessor... g++ -E
    checking for g77... no
    checking for f77... no
    checking for xlf... no
    checking for frt... no
    checking for pgf77... no
    checking for fort77... no
    checking for fl32... no
    checking for af77... no
    checking for f90... no
    checking for xlf90... no
    checking for pgf90... no
    checking for epcf90... no
    checking for f95... no
    checking for fort... no
    checking for xlf95... no
    checking for ifc... no
    checking for efc... no
    checking for pgf95... no
    checking for lf95... no
    checking for gfortran... no
    checking whether we are using the GNU Fortran 77 compiler... no
    checking whether  accepts -g... no
    checking the maximum length of command line arguments... 32768
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for objdir... .libs
    checking for ar... ar
    checking for ranlib... ranlib
    checking for strip... strip
    checking if gcc static flag  works... yes
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC
    checking if gcc PIC flag -fPIC works... yes
    checking if gcc supports -c -o file.o... yes
    checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    configure: creating libtool
    appending configuration tag "CXX" to libtool
    checking for ld used by g++... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking for g++ option to produce PIC... -fPIC
    checking if g++ PIC flag -fPIC works... yes
    checking if g++ supports -c -o file.o... yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    appending configuration tag "F77" to libtool
    checking for gcc... (cached) gcc
    checking whether we are using the GNU C compiler... (cached) yes
    checking whether gcc accepts -g... (cached) yes
    checking for gcc option to accept ANSI C... (cached) none needed
    checking dependency style of gcc... (cached) gcc3
    checking how to run the C preprocessor... gcc -E
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether ln -s works... yes
    checking whether make sets $(MAKE)... (cached) yes
    checking for rpmbuild... rpmbuild
    checking for ANSI C header files... (cached) yes
    checking for stdint.h... (cached) yes
    checking for inttypes.h... (cached) yes
    checking mathf.h usability... no
    checking mathf.h presence... no
    checking for mathf.h... no
    checking float.h usability... yes
    checking float.h presence... yes
    checking for float.h... yes
    checking for strchr... yes
    checking for memcpy... yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking whether time.h and sys/time.h may both be included... yes
    checking errno.h usability... yes
    checking errno.h presence... yes
    checking for errno.h... yes
    checking for sys/stat.h... (cached) yes
    checking for sys/types.h... (cached) yes
    checking limits.h usability... yes
    checking limits.h presence... yes
    checking for limits.h... yes
    checking sysfs/libsysfs.h usability... no
    checking sysfs/libsysfs.h presence... no
    checking for sysfs/libsysfs.h... no
    checking IOKit/IOKitLib.h usability... no
    checking IOKit/IOKitLib.h presence... no
    checking for IOKit/IOKitLib.h... no
    checking for getpwuid... yes
    checking for inline... inline
    checking whether byte ordering is bigendian... no
    checking for off_t... yes
    checking for float32_t temp... no
    checking for strsep... yes
    checking for mpeg4ip-config... no
    configure: no xmms build configured
    configure: error: conditional "HAVE_BMP" was never defined.
    Usually this means the macro was only invoked conditionally.
    [root@localhost faad2]# make
    make: *** No targets specified and no makefile found.  Stop.
    [root@localhost faad2]# make install
    make: *** No rule to make target `install'.  Stop.
    
    Anyone know how to fix this or use an alternative method for gaining mp4 playback?
     
  2. megamaced

    megamaced Geek Geek Geek!

    Likes Received:
    0
    Trophy Points:
    36
    Is that Faad you are trying to install? Why do you have the desire to compile everything when there are packages available? :)

    Have you install the libxine-extra codecs and win32codecs-all packages?

    EDIT: Have you tried playing it in MPlayer? Xine is pants :)
     
  3. StimpE

    StimpE lol, Internet!

    Likes Received:
    1
    Trophy Points:
    18
    Where can I find the libxine-extra codecs, I googled for 'em and I dont see much comin up. And I'm not seeing an rpm package on Mplayer's site for mandriva, just these:
    Code:
    MPlayer v1.0pre8 source  	
    MPlayer 1.0pre8 Windows build 	
    experimental Windows GUI build 	
    MPlayer OS X 1.0pre8 	
    Red Hat / Fedora RPM packages
    
    *EDIT* used urpmi but this is what it did:
    Code:
    Preparing...                     #############################################
          1/9: liblame0              #############################################
          2/9: libxvid4              #############################################
          3/9: liblirc0              #############################################
          4/9: libtwolame0           #############################################
          5/9: libenca0              #############################################
          6/9: libdha1.0             #############################################
          7/9: libdirectfb0.9_22     #############################################
          8/9: libfaac0              #############################################
          9/9: mplayer               #############################################
    [root@localhost landon]#   
    
    This is what happens when I open the mp4 file in mplayer:
     
  4. kenji san

    kenji san Geek Trainee

    Likes Received:
    0
    Trophy Points:
    0
    MPEG-4 audio is aac, MPEG-4 video is divx and quicktime. Is this a quicktime file? Having the faac libraries will not help with the video. I understand that mplayer supports quicktime and divx by default. See here. *.mp4 files are usually quicktime.
     
  5. StimpE

    StimpE lol, Internet!

    Likes Received:
    1
    Trophy Points:
    18
    It's a music video I acquired so I don't know if its quicktime or not..
     
  6. kenji san

    kenji san Geek Trainee

    Likes Received:
    0
    Trophy Points:
    0
    do you have the xine libraries installed? That should give you playback for that file unless it has the wrong extension. It is possible that the file is windows media and you will need the win32 codecs for that.
     
  7. StimpE

    StimpE lol, Internet!

    Likes Received:
    1
    Trophy Points:
    18
    I'm pretty sure I've installed the win32 codecs since I can play wmv files, etc. How do I check to see if the xine libraries are installed?

    *EDIT* these are the packages I have installed containing "xine":
    Code:
    libxine1
    libxine1-devel
    xine-arts
    xine-plugins
    xinetd
    
     
  8. kenji san

    kenji san Geek Trainee

    Likes Received:
    0
    Trophy Points:
    0
    Do you have everything here installed?
     
  9. Anti-Trend

    Anti-Trend Nonconformist Geek

    Likes Received:
    118
    Trophy Points:
    63
    kenji san is right, you need your PLF Free and PLF Non-Free repos setup. Then you can install it right from your package manager; no need to download & install Windows style. :)
     
  10. StimpE

    StimpE lol, Internet!

    Likes Received:
    1
    Trophy Points:
    18
    I'm now getting this error, but I can play wmv and other files just fine in mplayer.
     
  11. StimpE

    StimpE lol, Internet!

    Likes Received:
    1
    Trophy Points:
    18
    Hmm it turns out it was doing that because it was an incomplete torrent file, but it was around 95% complete, so I thought if I can open incomplete videos in windows it'd work in linux, guess not.
     

Share This Page