ffmpeg patch

Tomek tomek at slimaczek.pl
Mon Mar 2 04:07:11 PST 2009


FFMpeg needs to include <sys/types.h> to correctly understand types:
u_short, u_int etc.

How to applay:
$ svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg
$ patch -p0 < ffmpeg.bsd.patch
$ cd ffmpeg
$ ./configure --cc=cc --prefix=/usr/local --disable-debug --enable-memalign-hack --enable-shared --enable-postproc --extra-cflags="-I/usr/local/include/vorbis -I/usr/local/include" --extra-ldflags="-L/usr/local/lib -la52" --extra-libs=-pthread --enable-gpl --enable-pthreads --enable-swscale --mandir=/usr/local/man  --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libamr-nb --enable-nonfree --enable-libamr-wb --enable-nonfree --disable-mmx --enable-libgsm --enable-libmp3lame --disable-ffplay --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --disable-ipv6
$ gmake

# gmake install

$ ffmpeg
FFmpeg version SVN-r17655, Copyright (c) 2000-2009 Fabrice Bellard, et al.

I tested it (on i386 and amd64) by converting a few films (with a new
x264 version):
$ ffmpeg -i "[input_file]" -g 300 -keyint_min 25 -bf 16 -b_strategy 1 -flags2 +bpyramid -coder 1 -refs 8 -flags +loop -crf 23 -partitions +partp8x8+partb8x8+parti8x8+parti4x4 -flags2 +wpred -me_method hex -me_range 16 -subq 9 -trellis 2 -vcodec libx264 -acodec libfaac -ab 96k -ac 2 -threads 1 -async 25 "[output_file_without_ext].mp4"
and it works perfect.

Some problems were only with the lame audio codec, such as:
[libmp3lame @ 0x8108410]lame: output buffer too small (buffer index: 9404, free bytes: 388)

Tomasz Sowa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg.bsd.patch
Type: application/octet-stream
Size: 923 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-multimedia/attachments/20090302/0c032d2b/ffmpeg.bsd.obj

More information about the freebsd-multimedia mailing list