UPDATE: graphics/ffmpeg

2007-02-08 Thread Nikns Siankin
http://secure.lv/~nikns/stuff/ports/ffmpeg-20070208.diff

Index: ffmpeg/Makefile
===
RCS file: /cvs/ports/graphics/ffmpeg/Makefile,v
retrieving revision 1.25
diff -u -r1.25 Makefile
--- ffmpeg/Makefile 26 Jan 2007 16:03:20 -  1.25
+++ ffmpeg/Makefile 8 Feb 2007 11:35:56 -
@@ -2,13 +2,13 @@
 
 COMMENT=   audio/video converter and streamer with bktr(4) support
 
-DISTNAME=  ffmpeg-cvs-20070110
-PKGNAME=   ${DISTNAME:S/-cvs//}p0
-SHARED_LIBS=   avutil  2.0 \
-   avcodec 8.0 \
-   avformat8.0 \
-   postproc8.0 \
-   swscale 0.0
+DISTNAME=  ffmpeg-cvs-20070208
+PKGNAME=   ${DISTNAME:S/-cvs//}
+SHARED_LIBS=   avutil  3.0 \
+   avcodec 9.0 \
+   avformat9.0 \
+   postproc9.0 \
+   swscale 1.0
 CATEGORIES=graphics multimedia
 
 HOMEPAGE=  http://www.ffmpeg.org/
Index: ffmpeg/distinfo
===
RCS file: /cvs/ports/graphics/ffmpeg/distinfo,v
retrieving revision 1.11
diff -u -r1.11 distinfo
--- ffmpeg/distinfo 23 Jan 2007 09:34:45 -  1.11
+++ ffmpeg/distinfo 8 Feb 2007 11:35:56 -
@@ -1,4 +1,4 @@
-MD5 (ffmpeg-cvs-20070110.tar.gz) = af7284a1e4f49a2f858e5c6537b376ff
-RMD160 (ffmpeg-cvs-20070110.tar.gz) = a0869c18e2791f98d1e791e465f9b2038993497c
-SHA1 (ffmpeg-cvs-20070110.tar.gz) = d4cb810aa1da67bc231e1009544315df625105ea
-SIZE (ffmpeg-cvs-20070110.tar.gz) = 2471143
+MD5 (ffmpeg-cvs-20070208.tar.gz) = 851e932ff189c8a4cf99b8b3612aebc1
+RMD160 (ffmpeg-cvs-20070208.tar.gz) = a95e7033c8cb4eee91d7fb9188903b4bec264e06
+SHA1 (ffmpeg-cvs-20070208.tar.gz) = f20bb42ebbc3c4e5f8e66ef149e9dee13be9996e
+SIZE (ffmpeg-cvs-20070208.tar.gz) = 2489667
Index: ffmpeg/patches/patch-common_mak
===
RCS file: /cvs/ports/graphics/ffmpeg/patches/patch-common_mak,v
retrieving revision 1.3
diff -u -r1.3 patch-common_mak
--- ffmpeg/patches/patch-common_mak 23 Jan 2007 09:34:45 -  1.3
+++ ffmpeg/patches/patch-common_mak 8 Feb 2007 11:35:56 -
@@ -1,12 +1,13 @@
 $OpenBSD: patch-common_mak,v 1.3 2007/01/23 09:34:45 robert Exp $
 common.mak.origTue Jan  2 18:27:55 2007
-+++ common.mak Tue Jan  2 18:28:19 2007
-@@ -63,13 +63,7 @@ install-libs: $(INSTLIBTARGETS)
+--- common.mak.origThu Jan 25 14:29:48 2007
 common.mak Wed Feb  7 12:59:43 2007
+@@ -62,14 +62,7 @@ install: install-libs install-headers
+ install-libs: $(INSTLIBTARGETS)
  
  install-lib-shared: $(SLIBNAME)
-   install -d $(shlibdir)
--  install $(INSTALLSTRIP) -m 755 $(SLIBNAME) \
--  $(shlibdir)/$(SLIBNAME_WITH_VERSION)
+-  install -d $(shlibdir)
+-  install -m 755 $(SLIBNAME) $(shlibdir)/$(SLIBNAME_WITH_VERSION)
+-  $(STRIP) $(shlibdir)/$(SLIBNAME_WITH_VERSION)
 -  cd $(shlibdir)  \
 -  ln -sf $(SLIBNAME_WITH_VERSION) $(SLIBNAME_WITH_MAJOR)
 -  cd $(shlibdir)  \
Index: ffmpeg/patches/patch-libavcodec_Makefile
===
RCS file: /cvs/ports/graphics/ffmpeg/patches/patch-libavcodec_Makefile,v
retrieving revision 1.13
diff -u -r1.13 patch-libavcodec_Makefile
--- ffmpeg/patches/patch-libavcodec_Makefile23 Jan 2007 09:34:45 -  
1.13
+++ ffmpeg/patches/patch-libavcodec_Makefile8 Feb 2007 11:35:56 -
@@ -1,9 +1,9 @@
 $OpenBSD: patch-libavcodec_Makefile,v 1.13 2007/01/23 09:34:45 robert Exp $
 libavcodec/Makefile.orig   Mon Jan  8 01:24:14 2007
-+++ libavcodec/MakefileMon Jan  8 13:43:41 2007
-@@ -402,11 +402,9 @@ CFLAGS += $(CFLAGS-yes)
- OBJS += $(OBJS-yes)
- ASM_OBJS += $(ASM_OBJS-yes)
+--- libavcodec/Makefile.orig   Tue Feb  6 22:19:04 2007
 libavcodec/MakefileWed Feb  7 12:58:38 2007
+@@ -405,11 +405,9 @@ endif
+ 
+ OBJS-$(TARGET_ARCH_BFIN)   += bfin/dsputil_bfin.o \
  
 -EXTRALIBS := -L$(BUILD_ROOT)/libavutil -lavutil$(BUILDSUF) $(EXTRALIBS)
 -
Index: ffmpeg/patches/patch-libavformat_Makefile
===
RCS file: /cvs/ports/graphics/ffmpeg/patches/patch-libavformat_Makefile,v
retrieving revision 1.12
diff -u -r1.12 patch-libavformat_Makefile
--- ffmpeg/patches/patch-libavformat_Makefile   23 Jan 2007 09:34:45 -  
1.12
+++ ffmpeg/patches/patch-libavformat_Makefile   8 Feb 2007 11:35:56 -
@@ -1,7 +1,7 @@
 $OpenBSD: patch-libavformat_Makefile,v 1.12 2007/01/23 09:34:45 robert Exp $
 libavformat/Makefile.orig  Sun Dec 24 06:51:43 2006
-+++ libavformat/Makefile   Tue Jan  2 18:22:01 2007
-@@ -195,7 +195,7 @@ OBJS += $(OBJS-yes)
+--- libavformat/Makefile.orig  Thu Jan 25 

UPDATE: graphics/ffmpeg

2007-01-12 Thread Nikns Siankin
Enables libswscale.


http://secure.lv/~nikns/stuff/ports/ffmpeg-20070110.diff

Index: ffmpeg/Makefile
===
RCS file: /cvs/ports/graphics/ffmpeg/Makefile,v
retrieving revision 1.23
diff -u -r1.23 Makefile
--- ffmpeg/Makefile 2 Dec 2006 20:24:17 -   1.23
+++ ffmpeg/Makefile 10 Jan 2007 12:46:48 -
@@ -2,15 +2,17 @@
 
 COMMENT=   audio/video converter and streamer with bktr(4) support
 
-DISTNAME=  ffmpeg-cvs-20060312
-PKGNAME=   ${DISTNAME:S/-cvs//}p2
-SHARED_LIBS=   avutil  1.0 \
-   avcodec 7.0 \
-   avformat7.0 \
-   postproc7.0
+DISTNAME=  ffmpeg-cvs-20070110
+PKGNAME=   ${DISTNAME:S/-cvs//}
+SHARED_LIBS=   avutil  2.0 \
+   avcodec 8.0 \
+   avformat8.0 \
+   postproc8.0 \
+   swscale 0.0
 CATEGORIES=graphics multimedia
 
 HOMEPAGE=  http://www.ffmpeg.org/
+MAINTAINER=Nikns Siankin [EMAIL PROTECTED]
 
 # GPL
 PERMIT_PACKAGE_CDROM=  patents
@@ -19,10 +21,15 @@
 PERMIT_DISTFILES_FTP=  Yes
 
 # only available through CVS
-MASTER_SITES=  http://www.jakemsr.com/
+MASTER_SITES=  ftp://ftp.secure.lv/pub/distfiles/
 
 BUILD_DEPENDS= ::textproc/texi2html
-LIB_DEPENDS=   SDL.=4::devel/sdl
+LIB_DEPENDS=   SDL.=4::devel/sdl \
+   faac::audio/faac \
+   faad::audio/faad \
+   mp3lame.=0.1::audio/lame \
+   vorbis.=4.0,vorbisenc.=2.0::audio/libvorbis
+
 WANTLIB=   X11 Xext c freetype m pthread ossaudio usbhid z
 
 USE_X11=   Yes
@@ -41,21 +48,32 @@
--enable-pp \
--enable-gpl \
--enable-pthreads \
-   --disable-debug
+   --disable-debug \
+   --enable-swscaler \
+   --enable-faac \
+   --enable-faad \
+   --enable-mp3lame \
+   --enable-libogg \
+   --enable-vorbis \
+   --extra-ldflags=-lm -L${LOCALBASE}/lib \
+   --extra-cflags=-I${LOCALBASE}/include
+
 
 MAKE_FLAGS=LIBavutil_VERSION=$(LIBavutil_VERSION) \
LIBavcodec_VERSION=$(LIBavcodec_VERSION) \
LIBavformat_VERSION=$(LIBavformat_VERSION) \
-   LIBpostproc_VERSION=$(LIBpostproc_VERSION)
+   LIBpostproc_VERSION=$(LIBpostproc_VERSION) \
+   LIBswscale_VERSION=$(LIBswscale_VERSION)
 
 FAKE_FLAGS=DESTDIR=${WRKINST} \
LDCONFIG=true \
LIBavutil_VERSION=$(LIBavutil_VERSION) \
LIBavcodec_VERSION=$(LIBavcodec_VERSION) \
LIBavformat_VERSION=$(LIBavformat_VERSION) \
-   LIBpostproc_VERSION=$(LIBpostproc_VERSION)
+   LIBpostproc_VERSION=$(LIBpostproc_VERSION) \
+   LIBswscale_VERSION=$(LIBswscale_VERSION)
 
-WRKDIST=   ${WRKDIR}/ffmpeg
+REGRESS_TARGET=codectest
 
 post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ffmpeg
Index: ffmpeg/distinfo
===
RCS file: /cvs/ports/graphics/ffmpeg/distinfo,v
retrieving revision 1.10
diff -u -r1.10 distinfo
--- ffmpeg/distinfo 20 Mar 2006 05:50:49 -  1.10
+++ ffmpeg/distinfo 10 Jan 2007 12:46:48 -
@@ -1,4 +1,4 @@
-MD5 (ffmpeg-cvs-20060312.tar.gz) = 015c1271ea5cd3f96299230ac99d97b4
-RMD160 (ffmpeg-cvs-20060312.tar.gz) = 5be767622750d78a07769a03569a0d271eedc0ba
-SHA1 (ffmpeg-cvs-20060312.tar.gz) = 84c70a386a9b5923bfbc7d33a9ba2806c63dd7f5
-SIZE (ffmpeg-cvs-20060312.tar.gz) = 2195901
+MD5 (ffmpeg-cvs-20070110.tar.gz) = af7284a1e4f49a2f858e5c6537b376ff
+RMD160 (ffmpeg-cvs-20070110.tar.gz) = a0869c18e2791f98d1e791e465f9b2038993497c
+SHA1 (ffmpeg-cvs-20070110.tar.gz) = d4cb810aa1da67bc231e1009544315df625105ea
+SIZE (ffmpeg-cvs-20070110.tar.gz) = 2471143
Index: ffmpeg/patches/patch-Makefile
===
RCS file: ffmpeg/patches/patch-Makefile
diff -N ffmpeg/patches/patch-Makefile
--- ffmpeg/patches/patch-Makefile   20 Mar 2006 05:50:49 -  1.6
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,12 +0,0 @@
-$OpenBSD: patch-Makefile,v 1.6 2006/03/20 05:50:49 jakemsr Exp $
 Makefile.orig  Fri Feb  3 00:31:04 2006
-+++ Makefile   Mon Feb  6 23:48:43 2006
-@@ -59,7 +59,7 @@ endif
- 
- OBJS = ffmpeg.o ffserver.o cmdutils.o $(FFPLAY_O)
- SRCS = $(OBJS:.o=.c) $(ASM_OBJS:.o=.s)

Re: UPDATE: graphics/ffmpeg

2007-01-12 Thread Moritz Grimm

Hi,


I just started testing this update. More results later, but for now I 
just wanted to mention that lib-depends-check wants WANTLIB += ogg for 
the bin/ffserver binary.


Thanks for the update.


Moritz



Re: UPDATE: graphics/ffmpeg

2007-01-12 Thread Moritz Grimm

Nikns Siankin wrote:

http://secure.lv/~nikns/stuff/ports/ffmpeg-20070110.diff


Tested on i386 (with an added ogg-WANTLIB), with VLC and my ports that I 
have in my submit queue. Everything works fine, except that VLC is now 
complaining a bit:


vlc:/usr/local/lib/vlc/codec/libquicktime_plugin.so: undefined symbol 
'NewHandleClear'
vlc:/usr/local/lib/vlc/codec/libffmpeg_plugin.so: undefined symbol 
'img_resample_init'
vlc:/usr/local/lib/vlc/codec/libffmpeg_plugin.so: undefined symbol 
'img_convert'
vlc:/usr/local/lib/vlc/codec/libffmpeg_plugin.so: undefined symbol 
'img_resample_close'
vlc:/usr/local/lib/vlc/codec/libffmpeg_plugin.so: undefined symbol 
'img_resample'
vlc:/usr/local/lib/vlc/codec/libffmpeg_plugin.so: undefined symbol 
'img_resample_full_init'


It doesn't impair its ability to play videos without problems, though.


Moritz



Re: UPDATE: graphics/ffmpeg

2006-12-26 Thread Brad
On Mon, Dec 11, 2006 at 03:53:23PM +0200, Nikns Siankin wrote:
 Added regression tests.
 Added back external decoders.
 
 relevant portion of the official ChangeLog:
 
 - DV50 AKA DVCPRO50 encoder, decoder, muxer and demuxer
 - TechSmith Camtasia (TSCC) video decoder
 - IBM Ultimotion (ULTI) video decoder
 - Sierra Online audio file demuxer and decoder
 - Apple QuickDraw (qdrw) video decoder
 - Creative ADPCM audio decoder (16 bits as well as 8 bits schemes)
 - Electronic Arts Multimedia (WVE/UV2/etc.) file demuxer
 - Miro VideoXL (VIXL) video decoder
 - H.261 video encoder
 - QPEG video decoder
 - Nullsoft Video (NSV) file demuxer
 - Shorten audio decoder
 - LOCO video decoder
 - Apple Lossless Audio Codec (ALAC) decoder
 - Winnov WNV1 video decoder
 - Autodesk Animator Studio Codec (AASC) decoder
 - Indeo 2 video decoder
 
 http://secure.lv/~nikns/stuff/ports/ffmpeg-20061211.diff

Hi Nikns,

Add the following diff to the port update and send it back out.
This will unbreak support for the WMA audio format, which is also
used in WMV video. With the port as is WMV files and WMA files
cannot be played on a i386 system with SSE support, the result
being 100% reproducible crash every time.


Bug fix for crashes when SSE is used on unaligned arrays.
No measureable change in speed. This gave random crashes on Win32
and BeOS. The cause for this bug is that gcc doesn't align the
stackframe. Linux and glibc always ensure this to be true thus
this never affected Linux.


$OpenBSD$
--- libavcodec/wmadec.c.origTue Dec 26 17:11:00 2006
+++ libavcodec/wmadec.c Tue Dec 26 17:13:58 2006
@@ -115,6 +115,8 @@ typedef struct WMADecodeContext {
 float max_exponent[MAX_CHANNELS];
 int16_t coefs1[MAX_CHANNELS][BLOCK_MAX_SIZE];
 DECLARE_ALIGNED_16(float, coefs[MAX_CHANNELS][BLOCK_MAX_SIZE]);
+DECLARE_ALIGNED_16(FFTSample, output[BLOCK_MAX_SIZE * 2]);
+DECLARE_ALIGNED_16(float, window[BLOCK_MAX_SIZE * 2]);
 MDCTContext mdct_ctx[BLOCK_NB_SIZES];
 float *windows[BLOCK_NB_SIZES];
 DECLARE_ALIGNED_16(FFTSample, mdct_tmp[BLOCK_MAX_SIZE]); /* temporary 
storage for imdct */
@@ -717,7 +719,6 @@ static int wma_decode_block(WMADecodeCon
 {
 int n, v, a, ch, code, bsize;
 int coef_nb_bits, total_gain, parse_exponents;
-DECLARE_ALIGNED_16(float, window[BLOCK_MAX_SIZE * 2]);
 int nb_coefs[MAX_CHANNELS];
 float mdct_norm;
 
@@ -1072,7 +1073,7 @@ static int wma_decode_block(WMADecodeCon
 next_block_len = 1  s-next_block_len_bits;
 
 /* right part */
-wptr = window + block_len;
+wptr = s-window + block_len;
 if (block_len = next_block_len) {
 for(i=0;iblock_len;i++)
 *wptr++ = s-windows[bsize][i];
@@ -1088,7 +1089,7 @@ static int wma_decode_block(WMADecodeCon
 }
 
 /* left part */
-wptr = window + block_len;
+wptr = s-window + block_len;
 if (block_len = prev_block_len) {
 for(i=0;iblock_len;i++)
 *--wptr = s-windows[bsize][i];
@@ -1107,14 +1108,13 @@ static int wma_decode_block(WMADecodeCon
 
 for(ch = 0; ch  s-nb_channels; ch++) {
 if (s-channel_coded[ch]) {
-DECLARE_ALIGNED_16(FFTSample, output[BLOCK_MAX_SIZE * 2]);
 float *ptr;
 int n4, index, n;
 
 n = s-block_len;
 n4 = s-block_len / 2;
 s-mdct_ctx[bsize].fft.imdct_calc(s-mdct_ctx[bsize],
-  output, s-coefs[ch], s-mdct_tmp);
+  s-output, s-coefs[ch], s-mdct_tmp);
 
 /* XXX: optimize all that by build the window and
multipying/adding at the same time */
@@ -1122,13 +1122,13 @@ static int wma_decode_block(WMADecodeCon
 /* multiply by the window and add in the frame */
 index = (s-frame_len / 2) + s-block_pos - n4;
 ptr = s-frame_out[ch][index];
-s-dsp.vector_fmul_add_add(ptr,window,output,ptr,0,2*n,1);
+s-dsp.vector_fmul_add_add(ptr,s-window,s-output,ptr,0,2*n,1);
 
 /* specific fast case for ms-stereo : add to second
channel if it is not coded */
 if (s-ms_stereo  !s-channel_coded[1]) {
 ptr = s-frame_out[1][index];
-s-dsp.vector_fmul_add_add(ptr,window,output,ptr,0,2*n,1);
+
s-dsp.vector_fmul_add_add(ptr,s-window,s-output,ptr,0,2*n,1);
 }
 }
 }



UPDATE: graphics/ffmpeg

2006-12-11 Thread Nikns Siankin
Added regression tests.
Added back external decoders.

relevant portion of the official ChangeLog:

- DV50 AKA DVCPRO50 encoder, decoder, muxer and demuxer
- TechSmith Camtasia (TSCC) video decoder
- IBM Ultimotion (ULTI) video decoder
- Sierra Online audio file demuxer and decoder
- Apple QuickDraw (qdrw) video decoder
- Creative ADPCM audio decoder (16 bits as well as 8 bits schemes)
- Electronic Arts Multimedia (WVE/UV2/etc.) file demuxer
- Miro VideoXL (VIXL) video decoder
- H.261 video encoder
- QPEG video decoder
- Nullsoft Video (NSV) file demuxer
- Shorten audio decoder
- LOCO video decoder
- Apple Lossless Audio Codec (ALAC) decoder
- Winnov WNV1 video decoder
- Autodesk Animator Studio Codec (AASC) decoder
- Indeo 2 video decoder

http://secure.lv/~nikns/stuff/ports/ffmpeg-20061211.diff

Index: ffmpeg/Makefile
===
RCS file: /cvs/ports/graphics/ffmpeg/Makefile,v
retrieving revision 1.23
diff -u -r1.23 Makefile
--- ffmpeg/Makefile 2 Dec 2006 20:24:17 -   1.23
+++ ffmpeg/Makefile 11 Dec 2006 13:42:44 -
@@ -2,15 +2,16 @@
 
 COMMENT=   audio/video converter and streamer with bktr(4) support
 
-DISTNAME=  ffmpeg-cvs-20060312
-PKGNAME=   ${DISTNAME:S/-cvs//}p2
-SHARED_LIBS=   avutil  1.0 \
-   avcodec 7.0 \
-   avformat7.0 \
-   postproc7.0
+DISTNAME=  ffmpeg-cvs-20061211
+PKGNAME=   ${DISTNAME:S/-cvs//}
+SHARED_LIBS=   avutil  2.0 \
+   avcodec 8.0 \
+   avformat8.0 \
+   postproc8.0
 CATEGORIES=graphics multimedia
 
 HOMEPAGE=  http://www.ffmpeg.org/
+MAINTAINER=Nikns Siankin [EMAIL PROTECTED]
 
 # GPL
 PERMIT_PACKAGE_CDROM=  patents
@@ -19,10 +20,15 @@
 PERMIT_DISTFILES_FTP=  Yes
 
 # only available through CVS
-MASTER_SITES=  http://www.jakemsr.com/
+MASTER_SITES=  ftp://ftp.secure.lv/pub/distfiles/
 
 BUILD_DEPENDS= ::textproc/texi2html
-LIB_DEPENDS=   SDL.=4::devel/sdl
+LIB_DEPENDS=   SDL.=4::devel/sdl \
+   faac::audio/faac \
+   faad::audio/faad \
+   mp3lame.=0.1::audio/lame \
+   vorbis.=4.0,vorbisenc.=2.0::audio/libvorbis
+
 WANTLIB=   X11 Xext c freetype m pthread ossaudio usbhid z
 
 USE_X11=   Yes
@@ -41,7 +47,15 @@
--enable-pp \
--enable-gpl \
--enable-pthreads \
-   --disable-debug
+   --disable-debug \
+   --enable-faac \
+   --enable-faad \
+   --enable-mp3lame \
+   --enable-libogg \
+   --enable-vorbis \
+   --extra-ldflags=-lm -L${LOCALBASE}/lib \
+   --extra-cflags=-I${LOCALBASE}/include
+
 
 MAKE_FLAGS=LIBavutil_VERSION=$(LIBavutil_VERSION) \
LIBavcodec_VERSION=$(LIBavcodec_VERSION) \
@@ -55,7 +69,7 @@
LIBavformat_VERSION=$(LIBavformat_VERSION) \
LIBpostproc_VERSION=$(LIBpostproc_VERSION)
 
-WRKDIST=   ${WRKDIR}/ffmpeg
+REGRESS_TARGET=codectest
 
 post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ffmpeg
Index: ffmpeg/distinfo
===
RCS file: /cvs/ports/graphics/ffmpeg/distinfo,v
retrieving revision 1.10
diff -u -r1.10 distinfo
--- ffmpeg/distinfo 20 Mar 2006 05:50:49 -  1.10
+++ ffmpeg/distinfo 11 Dec 2006 13:42:44 -
@@ -1,4 +1,4 @@
-MD5 (ffmpeg-cvs-20060312.tar.gz) = 015c1271ea5cd3f96299230ac99d97b4
-RMD160 (ffmpeg-cvs-20060312.tar.gz) = 5be767622750d78a07769a03569a0d271eedc0ba
-SHA1 (ffmpeg-cvs-20060312.tar.gz) = 84c70a386a9b5923bfbc7d33a9ba2806c63dd7f5
-SIZE (ffmpeg-cvs-20060312.tar.gz) = 2195901
+MD5 (ffmpeg-cvs-20061211.tar.gz) = 74cbe1964ea9d658108090eb3c558567
+RMD160 (ffmpeg-cvs-20061211.tar.gz) = cd656f18203da040c59ed5604cd50bae534f8828
+SHA1 (ffmpeg-cvs-20061211.tar.gz) = 9185bdb6077ecde53854ce093ddd82cdd3f4bb52
+SIZE (ffmpeg-cvs-20061211.tar.gz) = 2445891
Index: ffmpeg/patches/patch-Makefile
===
RCS file: ffmpeg/patches/patch-Makefile
diff -N ffmpeg/patches/patch-Makefile
--- ffmpeg/patches/patch-Makefile   20 Mar 2006 05:50:49 -  1.6
+++ /dev/null   1 Jan 1970 00:00:00 -
@@ -1,12 +0,0 @@
-$OpenBSD: patch-Makefile,v 1.6 2006/03/20 05:50:49 jakemsr Exp $
 Makefile.orig  Fri Feb  3 00:31:04 2006
-+++ Makefile   Mon Feb  6 23:48:43 2006
-@@ -59,7 +59,7 @@ endif
- 
- OBJS = ffmpeg.o ffserver.o cmdutils.o $(FFPLAY_O)
- SRCS = 

Re: update: graphics/ffmpeg: 20060312p0 - 20060312p1

2006-07-10 Thread Chris Kuethe

From the give-him-enough-time-and-he'll-figure-it-out department:


I just realized that the dependency on xvidcore is not needed:
xvidcore generates mpeg4 compliant streams (fourcc XviD), ffmpeg can
also generate mpeg4 compliant streams (fourcc DivX), and my iPod will
play either of them. I don't notice any difference in video quality on
the iPod, thus I removed the xvidcore dependency in favour of ffmpeg's
own mpeg4 codec.

While I was testing this, I got really annoyed by the malloc.h
warnings, so I made those go away too.

The sample command line for transcoding to your video ipod is now:

ffmpeg -vcodec mpeg4 -b 350 -qmax 10 -bufsize 4096 -g 300 -acodec aac
-ab 96 -ac 2 -i input.mpg -s 320x240 output.mp4

The resulting file can be loaded on to video ipods with audio/gtkpod.

--
GDB has a 'break' feature; why doesn't it have 'fix' too?


ffmpeg.diff
Description: Binary data


update: graphics/ffmpeg: 20060312p0 - 20060312p1

2006-07-01 Thread Chris Kuethe

This patch causes ffmpeg to depend on faac, faad and xvidcore. This
allows you to transcode to your ipod video with one nice clean
command.

ffmpeg -vcodec xvid -b 350 -qmax 10 -bufsize 4096 -g 300 -acodec aac
-ab 96 -ac 2 -i input.mpg -s 320x240 output.mp4

gtkpod is able to load these files and the ipod will play them.

Other articles about transcoding for the ipod with ffmpeg:
http://www.huebelfamily.org/node/23
http://atomized.org/2005/11/converting-video-to-play-on-your-ipod-with-ffmpeg/

--
GDB has a 'break' feature; why doesn't it have 'fix' too?


ffmpeg.diff
Description: Binary data


update: graphics/ffmpeg

2006-03-18 Thread Jacob Meuser
here's an update for FFmpeg to CVS as of 3/12/06.

there are a whole lot of changes between the FFmpeg in ports and
this version.  relevant portion of the official ChangeLog:

- Fraps FPS1 video decoder
- Snow video encoder/decoder
- Sonic audio encoder/decoder
- Vorbis audio decoder
- Macromedia ADPCM decoder
- Duck TrueMotion 2 video decoder
- support for decoding FLX and DTA extensions in FLIC files
- H.264 custom quantization matrices support
- ffserver fixed, it should now be usable again
- QDM2 audio decoder
- Real Cooker audio decoder
- TrueSpeech audio decoder
- WMA2 audio decoder fixed, now all files should play correctly
- RealAudio 14.4 and 28.8 decoders fixed
- JPEG-LS encoder and decoder
- CamStudio video decoder
- build system improvements
- tabs and trailing whitespace removed from the codebase
- AIFF/AIFF-C audio format, encoding and decoding
- ADTS AAC file reading and writing
- Creative VOC file reading and writing
- American Laser Games multimedia (*.mm) playback system
- Zip Blocks Motion Video decoder
- Improved Theora/VP3 decoder
- True Audio (TTA) decoder
- AVS demuxer and video decoder

also, bktr(4) support has been integrated upstream, and most of the
source patches in the port are no longer necessary.

I have been testing FFmpeg snapshots pretty heavily on amd64 and
just a little on i386.

I've also included patches for the ports that depend on FFmpeg,
(multimedia/libquicktime, multimedia/transcode, x11/vlc),
because libavcodec depends on a new set of libraries.

please review/test/comment, and give me OKs :)

-- 
[EMAIL PROTECTED]

Index: graphics/ffmpeg/Makefile
===
RCS file: /cvs/ports/graphics/ffmpeg/Makefile,v
retrieving revision 1.18
diff -u -r1.18 Makefile
--- graphics/ffmpeg/Makefile31 Dec 2005 08:45:56 -  1.18
+++ graphics/ffmpeg/Makefile18 Mar 2006 23:58:57 -
@@ -1,105 +1,71 @@
-# $OpenBSD: Makefile,v 1.18 2005/12/31 08:45:56 steven Exp $
+# $OpenBSD$
 
 COMMENT=   audio/video converter and streamer with bktr(4) support
-DISTNAME=  FFMpeg-20050413
-PKGNAME=   ${DISTNAME:L}
-SHARED_LIBS=   avcodec 6.0 \
-   avformat6.0 \
-   postproc6.0
 
-CATEGORIES=graphics x11
-MASTER_SITES=  http://www.jakemsr.com/
-#  http://mplayerhq.hu/MPlayer/cvs/
+DISTNAME=  ffmpeg-cvs-20060312
+PKGNAME=   ${DISTNAME:S/-cvs//}
+SHARED_LIBS=   avutil  49.0 \
+   avcodec 51.7 \
+   avformat50.3 \
+   postproc51.1
+CATEGORIES=graphics multimedia
 
-EXTRACT_SUFX=  .tar.bz2
+HOMEPAGE=  http://www.ffmpeg.org/
 
-HOMEPAGE=  http://www.ffmpeg.org/
-
-MAINTAINER=Jacob Meuser [EMAIL PROTECTED]
+MAINTAINER=Jacob Meuser [EMAIL PROTECTED]
 
 # GPL
-PERMIT_DISTFILES_CDROM=patents
-PERMIT_DISTFILES_FTP=  Yes
-PERMIT_PACKAGE_CDROM=  Yes
+PERMIT_PACKAGE_CDROM=  patents
 PERMIT_PACKAGE_FTP=Yes
-WANTLIB=   X11 Xext c m ogg ossaudio pthread usbhid z
+PERMIT_DISTFILES_CDROM=Yes
+PERMIT_DISTFILES_FTP=  Yes
+
+# only available through CVS
+MASTER_SITES=  http://www.jakemsr.com/
+
+BUILD_DEPENDS= ::textproc/texi2html
+LIB_DEPENDS=   SDL.4::devel/sdl
+WANTLIB=   X11 Xext c freetype m pthread ossaudio usbhid z
 
-BUILD_DEPENDS= ::textproc/texi2html
-LIB_DEPENDS=   SDL.2.0::devel/sdl \
-   a52.0.0::audio/liba52 \
-   mp3lame.0.1::audio/lame \
-   vorbis.4.0,vorbisenc.2.0::audio/libvorbis
-
-NO_REGRESS=Yes # Possible to adapt with some work
-USE_GMAKE= Yes
-USE_X11=   Yes
+USE_X11=   Yes
+USE_GMAKE= Yes
 
 # It's either this or disable mmx so postprocess_template.c will build.
 .if ${MACHINE_ARCH} == i386
 CFLAGS+=-fomit-frame-pointer
 .endif
 
-CONFIGURE_STYLE=simple
-CONFIGURE_ENV+=CPPFLAGS=-I${LOCALBASE}/include
-CONFIGURE_ARGS+=${CONFIGURE_SHARED} \
-   --cc=${CC} \
-   --make=${MAKE_PROGRAM} \
-   --extra-cflags=-I${LOCALBASE}/include \
-   --extra-ldflags=-L${LOCALBASE}/lib -L${X11BASE}/lib \
-   --disable-opts \
-   --enable-a52 \
-   --enable-pp \
-   --enable-mp3lame \
-   --enable-libogg \
-   --enable-vorbis \
-   --enable-gpl \
-   --enable-pthreads \
-   --disable-debug
-
-MAKE_ENV+= LDFLAGS=-L${X11BASE}/lib -L${LOCALBASE}/lib
-MAKE_FLAGS=SLIBSUF=.so \
-   LIBavcodec_VERSION=$(LIBavcodec_VERSION)\
-   LIBavformat_VERSION=$(LIBavformat_VERSION)  \
-   LIBpostproc_VERSION=$(LIBpostproc_VERSION)
-
-# shared libpostproc
-.if ${MACHINE_ARCH} != m88k  ${MACHINE_ARCH} != vax
-CONFIGURE_ARGS+=--enable-shared-pp
-.endif

Re: update: graphics/ffmpeg

2006-03-18 Thread Brad
On Sat, Mar 18, 2006 at 04:31:04PM -0800, Jacob Meuser wrote:
 here's an update for FFmpeg to CVS as of 3/12/06.
 
 there are a whole lot of changes between the FFmpeg in ports and
 this version.  relevant portion of the official ChangeLog:
 
 - Fraps FPS1 video decoder
 - Snow video encoder/decoder
 - Sonic audio encoder/decoder
 - Vorbis audio decoder
 - Macromedia ADPCM decoder
 - Duck TrueMotion 2 video decoder
 - support for decoding FLX and DTA extensions in FLIC files
 - H.264 custom quantization matrices support
 - ffserver fixed, it should now be usable again
 - QDM2 audio decoder
 - Real Cooker audio decoder
 - TrueSpeech audio decoder
 - WMA2 audio decoder fixed, now all files should play correctly
 - RealAudio 14.4 and 28.8 decoders fixed
 - JPEG-LS encoder and decoder
 - CamStudio video decoder
 - build system improvements
 - tabs and trailing whitespace removed from the codebase
 - AIFF/AIFF-C audio format, encoding and decoding
 - ADTS AAC file reading and writing
 - Creative VOC file reading and writing
 - American Laser Games multimedia (*.mm) playback system
 - Zip Blocks Motion Video decoder
 - Improved Theora/VP3 decoder
 - True Audio (TTA) decoder
 - AVS demuxer and video decoder
 
 also, bktr(4) support has been integrated upstream, and most of the
 source patches in the port are no longer necessary.
 
 I have been testing FFmpeg snapshots pretty heavily on amd64 and
 just a little on i386.
 
 I've also included patches for the ports that depend on FFmpeg,
 (multimedia/libquicktime, multimedia/transcode, x11/vlc),
 because libavcodec depends on a new set of libraries.
 
 please review/test/comment, and give me OKs :)
 
 -- 
 [EMAIL PROTECTED]
 
 Index: graphics/ffmpeg/Makefile
 ===
 RCS file: /cvs/ports/graphics/ffmpeg/Makefile,v
 retrieving revision 1.18
 diff -u -r1.18 Makefile
 --- graphics/ffmpeg/Makefile  31 Dec 2005 08:45:56 -  1.18
 +++ graphics/ffmpeg/Makefile  18 Mar 2006 23:58:57 -
 @@ -1,105 +1,71 @@
 -# $OpenBSD: Makefile,v 1.18 2005/12/31 08:45:56 steven Exp $
 +# $OpenBSD$
  
  COMMENT= audio/video converter and streamer with bktr(4) support
 -DISTNAME=FFMpeg-20050413
 -PKGNAME= ${DISTNAME:L}
 -SHARED_LIBS= avcodec 6.0 \
 - avformat6.0 \
 - postproc6.0
  
 -CATEGORIES=  graphics x11
 -MASTER_SITES=http://www.jakemsr.com/
 -#http://mplayerhq.hu/MPlayer/cvs/
 +DISTNAME=ffmpeg-cvs-20060312
 +PKGNAME= ${DISTNAME:S/-cvs//}
 +SHARED_LIBS= avutil  49.0 \
 + avcodec 51.7 \
 + avformat50.3 \
 + postproc51.1
 +CATEGORIES=  graphics multimedia

When we fully control the versioning I don't see the
point of such a large increae in major revisions.
Why not just bump avcodec, avformat and postproc to 7.0
and start avutil at 1.0?
 
Otherwise I am Ok with the rest.


 -EXTRACT_SUFX=.tar.bz2
 +HOMEPAGE=http://www.ffmpeg.org/
  
 -HOMEPAGE=http://www.ffmpeg.org/
 -
 -MAINTAINER=  Jacob Meuser [EMAIL PROTECTED]
 +MAINTAINER=  Jacob Meuser [EMAIL PROTECTED]
  
  # GPL
 -PERMIT_DISTFILES_CDROM=  patents
 -PERMIT_DISTFILES_FTP=Yes
 -PERMIT_PACKAGE_CDROM=Yes
 +PERMIT_PACKAGE_CDROM=patents
  PERMIT_PACKAGE_FTP=  Yes
 -WANTLIB= X11 Xext c m ogg ossaudio pthread usbhid z
 +PERMIT_DISTFILES_CDROM=  Yes
 +PERMIT_DISTFILES_FTP=Yes
 +
 +# only available through CVS
 +MASTER_SITES=http://www.jakemsr.com/
 +
 +BUILD_DEPENDS=   ::textproc/texi2html
 +LIB_DEPENDS= SDL.4::devel/sdl
 +WANTLIB= X11 Xext c freetype m pthread ossaudio usbhid z
  
 -BUILD_DEPENDS=   ::textproc/texi2html
 -LIB_DEPENDS= SDL.2.0::devel/sdl \
 - a52.0.0::audio/liba52 \
 - mp3lame.0.1::audio/lame \
 - vorbis.4.0,vorbisenc.2.0::audio/libvorbis
 -
 -NO_REGRESS=  Yes # Possible to adapt with some work
 -USE_GMAKE=   Yes
 -USE_X11= Yes
 +USE_X11= Yes
 +USE_GMAKE=   Yes
  
  # It's either this or disable mmx so postprocess_template.c will build.
  .if ${MACHINE_ARCH} == i386
  CFLAGS+=-fomit-frame-pointer
  .endif
  
 -CONFIGURE_STYLE=simple
 -CONFIGURE_ENV+=  CPPFLAGS=-I${LOCALBASE}/include
 -CONFIGURE_ARGS+=${CONFIGURE_SHARED} \
 - --cc=${CC} \
 - --make=${MAKE_PROGRAM} \
 - --extra-cflags=-I${LOCALBASE}/include \
 - --extra-ldflags=-L${LOCALBASE}/lib -L${X11BASE}/lib \
 - --disable-opts \
 - --enable-a52 \
 - --enable-pp \
 - --enable-mp3lame \
 - --enable-libogg \
 - --enable-vorbis \
 - --enable-gpl \
 - --enable-pthreads \
 - --disable-debug
 -
 -MAKE_ENV+=   LDFLAGS=-L${X11BASE}/lib