Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Dec 2007 15:05:08 +0300
From:      alexander lunyov <lan@startatom.ru>
To:        multimedia@FreeBSD.org
Subject:   AMR (3gpp audio) codec patch for multimedia/ffmpeg 
Message-ID:  <4753F0F4.6040203@startatom.ru>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------000902050405090300000203
Content-Type: text/plain; charset=windows-1251; format=flowed
Content-Transfer-Encoding: 7bit

Hello.

multimedia/ffmpeg port does not include support for AMR audio codec 
which is used in 3gpp video format, so here's the patch for Makefile. It 
uses audio/libamrnb and audio/libamrwb ports.


-- 
alexander lunyov
lan@startatom.ru

--------------000902050405090300000203
Content-Type: text/plain;
 name="ffmpeg_amr_Makefile.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="ffmpeg_amr_Makefile.patch"

--- Makefile.orig	Tue Oct  9 23:38:24 2007
+++ Makefile	Mon Dec  3 14:50:05 2007
@@ -98,6 +98,20 @@
 CONFIGURE_ARGS+=	--enable-libfaad \
 			--enable-libfaadbin
 .endif
+
+## amr
+.ifdef(WITH_AMR) || (exists(${LOCALBASE}/lib/libamrnb.so) && exists(${LOCALBASE}/lib/libamrwb.so))
+LIB_DEPENDS+=	amrnb.3:${PORTSDIR}/audio/libamrnb
+LIB_DEPENDS+=	amrwb.3:${PORTSDIR}/audio/libamrwb
+
+CONFIGURE_ARGS+=	--enable-libamr-nb \
+			--enable-libamr-wb
+FFMPEG_LDFLAGS+=	-lamrnb -lamrwb
+.else
+CONFIGURE_ARGS+=	--disable-libamrnb \
+					--disable-libamrnb
+.endif
+
 USE_RC_SUBR=		ffserver
 
 .if ${MACHINE_CPU:Mmmx}==""
@@ -248,6 +262,10 @@
 .endif
 .ifndef(WITH_XVID)
 	@${ECHO_MSG} 'Define WITH_XVID to enable XVID codec'
+	@${ECHO_MSG}
+.endif
+.ifndef(WITH_AMR)
+	@${ECHO_MSG} 'Define WITH_AMR to enable AMR codec'
 	@${ECHO_MSG}
 .endif
 

--------------000902050405090300000203--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4753F0F4.6040203>