[Ffmpeg-devel] it can't find dts.h, faad.h ...., how to build it.

David Shen david.sh
Tue Apr 4 18:14:24 CEST 2006


I have finished the building, thanks a lot.

Another, when use -ss to seeking media file, it's very slowly, do you know how to speeden seeking.

------------------				 
David Shen
2006-04-05

-------------------------------------------------------------
Sender:Jason Millard
Send Date:2006-04-02 21:40:37
Receiver:
CC:
Subject:Re: [Ffmpeg-devel] it can't find dts.h, faad.h ...., how to build it.

You have a long road ahead of you.. When I finally got it to compile,
I wrote down everything I did. For me dts was difficult to find, but
just do a google search.

-------------------------------------------------

install MinGW 5.0.2

Download: http://prdownloads.sf.net/mingw/MinGW-5.0.2.exe?download

Run installer and select current release.

-------------------------------------------------

install MSYS 1.0.1

Download: http://prdownloads.sf.net/mingw/MSYS-1.0.10.exe?download

Install

-------------------------------------------------

install MSYSDTK 1.0.1

Download: http://prdownloads.sf.net/mingw/msysDTK-1.0.1.exe?download

Install

-------------------------------------------------

install dos2unix.exe

Download: http://www.bastet.com/uddu.zip

extract, and place a copy of dos2unix.exe in C:/mingw/bin

-------------------------------------------------

install nasm.exe

Download: http://prdownloads.sourceforge.net/nasm/nasm-0.98.39-win32.zip?download

extract, rename nasmw.exe to nasm.exe and place a copy in C:/mingw/bin

-------------------------------------------------

libogg

download: http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz

./configure
make
make install

-------------------------------------------------

vorbis

download: http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz

./configure --disable-oggtest --disable-shared
--with-ogg-includes=/usr/local/include
--with-ogg-libraries=/usr/local/lib
make
make install

-------------------------------------------------

libfaac - faac-snapshot-20060329

download: cvs -z3
-d:pserver:anonymous at cvs.audiocoding.com:/cvsroot/faac co -P faac

dos2unix configure.in
./bootstrap
./configure --without-mp4v2
make
make install

-------------------------------------------------

libfaad - faad2-15092004.tar.gz

download: http://www.audiocoding.com/modules/mydownloads/visit.php?cid=3&lid=19

modify line 308 of libfaad/common.h from:

#elif (defined(__i386__) && defined(__GNUC__))

to

#elif (defined(__i386__) && defined(__GNUC__) && !defined(__MINGW32__))

./bootstrap
./configure --with-drm
cd libfaad
make
make install

-------------------------------------------------

a52 - a52dec-0.7.5-cvs

download: cvs -z3
-d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/liba52 co -P liba52

./configure
make
make install

-------------------------------------------------

mp3lame - lame-3.97b2

download: cvs -z3
-d:pserver:anonymous at cvs.sourceforge.net:/cvsroot/lame co -P lame

./configure
make
make install

-------------------------------------------------

libdts - libdts-0.0.2

./configure
make
make install

-------------------------------------------------

xvid - xvidcore-1.1.0

cd build/generic
./configure
make
make install

-------------------------------------------------

libx264 - x264-snapshot-20060329-2245

ftp://ftp.videolan.org/pub/videolan/x264/snapshots/

./configure
make
make install

-------------------------------------------------

ffmpeg - ffmpeg-snapshot-20060328

Download lastest version using cvs:

cvs -z3 -d:pserver:anonymous at mplayerhq.hu:/cvsroot/ffmpeg co -P ffmpeg

add the following to libavcodec/xvidff.c after last include:

#include <windows.h>

int mkstemp(char* template)
{
  char temppath[512];
  if(GetTempPath(512,temppath)!=0)
  {
    if(GetTempFileName(temppath,"fil",0,template)!=0)
    {
      FILE *pFile;
      pFile=fopen(template,"w+");
      if(pFile!=NULL)
        return (int)pFile;
    }
  }
  return -1;
}

./configure --enable-faac --enable-faad --enable-a52 --enable-mp3lame
--enable-dts --enable-xvid --enable-x264 --enable-vorbis
--enable-libogg --enable-gpl --enable-pp --enable-mingw32
--enable-memalign-hack --extra-cflags=-I/usr/local/include
--extra-ldflags=-L/usr/local/lib
make
make install


good luck!

-- Jason

On 4/1/06, David Shen <david.sh at citiz.net> wrote:
> I need build ffmpeg by following configuration(MSYS + MinGW):
>
> configuration:  --enable-mp3lame --enable-vorbis --enable-faad
>                        --enable-faac --enable-xvid --enable-mingw32 --enable-a52
>                        --enable-dts --enable-pp --enable-gpl --enable-memalign-hack
>
> but it can't find dts.h, faad.h ...., how to build it.
>
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>

_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel at mplayerhq.hu
http://mplayerhq.hu/mailman/listinfo/ffmpeg-devel





More information about the ffmpeg-devel mailing list