Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Sukneet Basuta (afed7772bb2f4584e9107927ce87b36746fd0bfc)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Sukneet Basuta <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Sukneet Basuta (afed7772bb2f4584e9107927ce87b36746fd0bfc)
  • Date: Sun, 29 Jul 2012 00:18:37 -0500

GIT changes to master grimoire by Sukneet Basuta <sukneet AT sourcemage.org>:

telephony/mediastreamer/BUILD | 7
telephony/mediastreamer/CONFIGURE | 1
telephony/mediastreamer/DEPENDS | 11
telephony/mediastreamer/DETAILS | 2
telephony/mediastreamer/HISTORY | 11
telephony/mediastreamer/PRE_BUILD | 7
telephony/mediastreamer/disable-v4l1.patch | 50 ---
telephony/mediastreamer/mediastreamer-ffmpeg-0.11.patch | 205
++++++++++++++++
8 files changed, 241 insertions(+), 53 deletions(-)

New commits:
commit afed7772bb2f4584e9107927ce87b36746fd0bfc
Author: Sukneet Basuta <sukneet AT sourcemage.org>
Commit: Sukneet Basuta <sukneet AT sourcemage.org>

mediastreamer: =>2.8.2
* PREPARE: added, to query for video support
* BUILD: added, to apply video support flags
* DEPENDS: added optional_depends pulseaudio & doxygen.
added optional_depends ffmpeg, libvpx, libtheora, libxv for
when if video support is enabled.
* PRE_BUILD: apply ffpmeg patch if ffmpeg is enabled & >= 0.11
* mediastreamer-ffmpeg-0.11.patch: added, to fix compilation with ffmpeg
>=0.11
* disable-v4l1.patch: removed, no longer needed

diff --git a/telephony/mediastreamer/BUILD b/telephony/mediastreamer/BUILD
new file mode 100755
index 0000000..df66706
--- /dev/null
+++ b/telephony/mediastreamer/BUILD
@@ -0,0 +1,7 @@
+if [[ $VIDEO_SUPPORT == "y" ]];then
+ OPTS="--enable-video $OPTS"
+else
+ OPTS="--disable-video $OPTS"
+fi &&
+
+default_build
diff --git a/telephony/mediastreamer/CONFIGURE
b/telephony/mediastreamer/CONFIGURE
new file mode 100755
index 0000000..19f0aa5
--- /dev/null
+++ b/telephony/mediastreamer/CONFIGURE
@@ -0,0 +1 @@
+config_query VIDEO_SUPPORT "Build with video support?" y
diff --git a/telephony/mediastreamer/DEPENDS b/telephony/mediastreamer/DEPENDS
index c650a8a..75ebace 100755
--- a/telephony/mediastreamer/DEPENDS
+++ b/telephony/mediastreamer/DEPENDS
@@ -1,3 +1,12 @@
depends speex &&
depends ortp &&
-depends ffmpeg
+optional_depends pulseaudio "--enable-pulseaudio" "--disable-pulseaudio"
"for PulseAudio support" &&
+
+if [[ $VIDEO_SUPPORT == "y" ]]; then
+ optional_depends LIBAVCODEC "--enable-ffmpeg" "--disable-ffmpeg" "for
video support" &&
+ optional_depends libtheora "--enable-theora" "--disable-theora" "for Ogg
Theora support" &&
+ optional_depends libxv "--enable-xv" "--disable-xv" "to
enable xv support" &&
+ optional_depends libvpx "--enable-vp8" "--disable-vp8" "to
enable vp8 (webm) support"
+fi &&
+
+optional_depends doxygen "" "" "to build documentation"
diff --git a/telephony/mediastreamer/DETAILS b/telephony/mediastreamer/DETAILS
index ef96ae9..eeb42c5 100755
--- a/telephony/mediastreamer/DETAILS
+++ b/telephony/mediastreamer/DETAILS
@@ -1,5 +1,5 @@
SPELL=mediastreamer
- VERSION=2.7.3
+ VERSION=2.8.2
SOURCE="${SPELL}-${VERSION}.tar.gz"
SOURCE2=$SOURCE.sig

SOURCE_URL[0]=http://download-mirror.savannah.gnu.org/releases/linphone/${SPELL}/${SOURCE}
diff --git a/telephony/mediastreamer/HISTORY b/telephony/mediastreamer/HISTORY
index 18827a5..266da3c 100644
--- a/telephony/mediastreamer/HISTORY
+++ b/telephony/mediastreamer/HISTORY
@@ -1,3 +1,14 @@
+2012-07-28 Sukneet Basuta <sukneet AT sourcemage.org>
+ * DETAILS: updated spell to 2.8.2
+ * PREPARE: added, to query for video support
+ * BUILD: added, to apply video support flags
+ * DEPENDS: added optional_depends pulseaudio & doxygen.
+ added optional_depends ffmpeg, libvpx, libtheora, libxv
+ for when if video support is enabled.
+ * PRE_BUILD: apply ffpmeg patch if ffmpeg is enabled & >= 0.11
+ * mediastreamer-ffmpeg-0.11.patch: added, to fix compilation with
ffmpeg >=0.11
+ * disable-v4l1.patch: removed, no longer needed
+
2011-10-18 Bor Kraljič <pyrobor AT ver.si>
* PRE_BUILD, DEPENDS, DETAILS, disable-v4l1.patch: spell created

diff --git a/telephony/mediastreamer/PRE_BUILD
b/telephony/mediastreamer/PRE_BUILD
index eefb607..d27057d 100755
--- a/telephony/mediastreamer/PRE_BUILD
+++ b/telephony/mediastreamer/PRE_BUILD
@@ -1,3 +1,8 @@
default_pre_build &&
cd $SOURCE_DIRECTORY &&
-patch -p2 -d $SOURCE_DIRECTORY < $SPELL_DIRECTORY/disable-v4l1.patch
+
+if is_depends_enabled $SPELL ffmpeg && spell_ok ffmpeg; then
+ if (( $(installed_version ffmpeg|cut -d. -f2) >= 11 )); then
+ patch -p1 < $SPELL_DIRECTORY/mediastreamer-ffmpeg-0.11.patch
+ fi
+fi
diff --git a/telephony/mediastreamer/disable-v4l1.patch
b/telephony/mediastreamer/disable-v4l1.patch
deleted file mode 100644
index 9f6cb84..0000000
--- a/telephony/mediastreamer/disable-v4l1.patch
+++ /dev/null
@@ -1,50 +0,0 @@
-diff -wbBur linphone-3.4.3/mediastreamer2/src/Makefile.am
linphone-3.4.3.my/mediastreamer2/src/Makefile.am
---- linphone-3.4.3/mediastreamer2/src/Makefile.am 2011-02-09
08:43:11.000000000 +0000
-+++ linphone-3.4.3.my/mediastreamer2/src/Makefile.am 2011-04-01
14:54:04.000000000 +0000
-@@ -117,7 +117,7 @@
- endif
-
- if BUILD_V4L
--libmediastreamer_la_SOURCES+=msv4l.c msv4l2.c
-+libmediastreamer_la_SOURCES+=msv4l2.c
- endif
-
- if BUILD_WIN32
-diff -wbBur linphone-3.4.3/mediastreamer2/src/Makefile.in
linphone-3.4.3.my/mediastreamer2/src/Makefile.in
---- linphone-3.4.3/mediastreamer2/src/Makefile.in 2011-03-28
18:34:07.000000000 +0000
-+++ linphone-3.4.3.my/mediastreamer2/src/Makefile.in 2011-04-01
14:55:00.000000000 +0000
-@@ -54,7 +54,7 @@
- @BUILD_MACAQSND_TRUE@am__append_12 = aqsnd.c
- @BUILD_PULSEAUDIO_TRUE@am__append_13 = pulseaudio.c
- @BUILD_MACOSX_TRUE@@BUILD_VIDEO_TRUE@am__append_14 = msv4m.m
--@BUILD_V4L_TRUE@@BUILD_VIDEO_TRUE@am__append_15 = msv4l.c msv4l2.c
-+@BUILD_V4L_TRUE@@BUILD_VIDEO_TRUE@am__append_15 = msv4l2.c
- @BUILD_VIDEO_TRUE@@BUILD_WIN32_TRUE@am__append_16 = msdscap-mingw.cc
drawdib-display.c
- @BUILD_THEORA_TRUE@@BUILD_VIDEO_TRUE@am__append_17 = theora.c
- @BUILD_FFMPEG_TRUE@@BUILD_VIDEO_TRUE@am__append_18 = videoenc.c \
-@@ -135,7 +135,7 @@
- audiostream.c msspeex.c speexec.c gsm.c winsnd3.c \
- msfileplayer_win.c msfilerec_win.c msfileplayer.c msfilerec.c \
- msresample.c alsa.c oss.c arts.c pasnd.c macsnd.c msiounit.c \
-- aqsnd.c pulseaudio.c msv4m.m msv4l.c msv4l2.c msdscap-mingw.cc \
-+ aqsnd.c pulseaudio.c msv4m.m msv4l2.c msdscap-mingw.cc \
- drawdib-display.c theora.c videoenc.c videodec.c pixconv.c \
- sizeconv.c nowebcam.c nowebcam.h swscale.h ffmpeg-priv.h \
- h264dec.c jpegwriter.c videoout.c x11video.c rfc2429.h \
-@@ -156,7 +156,7 @@
- @BUILD_MACAQSND_TRUE@am__objects_12 = aqsnd.lo
- @BUILD_PULSEAUDIO_TRUE@am__objects_13 = pulseaudio.lo
- @BUILD_MACOSX_TRUE@@BUILD_VIDEO_TRUE@am__objects_14 = msv4m.lo
--@BUILD_V4L_TRUE@@BUILD_VIDEO_TRUE@am__objects_15 = msv4l.lo msv4l2.lo
-+@BUILD_V4L_TRUE@@BUILD_VIDEO_TRUE@am__objects_15 = msv4l2.lo
- @BUILD_VIDEO_TRUE@@BUILD_WIN32_TRUE@am__objects_16 = msdscap-mingw.lo \
- @BUILD_VIDEO_TRUE@@BUILD_WIN32_TRUE@ drawdib-display.lo
- @BUILD_THEORA_TRUE@@BUILD_VIDEO_TRUE@am__objects_17 = theora.lo
-@@ -600,7 +600,6 @@
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/mssndcard.Plo@am__quote@
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/msspeex.Plo@am__quote@
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/msticker.Plo@am__quote@
--@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/msv4l.Plo@am__quote@
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/msv4l2.Plo@am__quote@
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/msv4m.Plo@am__quote@
- @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/msvideo.Plo@am__quote@
diff --git a/telephony/mediastreamer/mediastreamer-ffmpeg-0.11.patch
b/telephony/mediastreamer/mediastreamer-ffmpeg-0.11.patch
new file mode 100644
index 0000000..6df9364
--- /dev/null
+++ b/telephony/mediastreamer/mediastreamer-ffmpeg-0.11.patch
@@ -0,0 +1,205 @@
+diff --git a/include/mediastreamer2/msvideo.h
b/include/mediastreamer2/msvideo.h
+index 5ae8a63..86edf86 100644
+--- mediastreamer2/include/mediastreamer2/msvideo.h
++++ mediastreamer2/include/mediastreamer2/msvideo.h
+@@ -21,6 +21,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
+ #define msvideo_h
+
+ #include <mediastreamer2/msfilter.h>
++#ifndef INT64_C
++#define INT64_C(c) (c ## LL)
++#define UINT64_C(c) (c ## ULL)
++#endif
++#include <libavutil/avutil.h>
++#include <libavcodec/version.h>
+
+ /* some global constants for video MSFilter(s) */
+ #define MS_VIDEO_SIZE_SQCIF_W 128
+@@ -206,7 +212,9 @@ extern "C"{
+ MS2_PUBLIC int ms_pix_fmt_to_ffmpeg(MSPixFmt fmt);
+ MS2_PUBLIC MSPixFmt ffmpeg_pix_fmt_to_ms(int fmt);
+ MS2_PUBLIC MSPixFmt ms_fourcc_to_pix_fmt(uint32_t fourcc);
++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 0, 100)
+ MS2_PUBLIC void ms_ffmpeg_check_init(void);
++#endif
+ MS2_PUBLIC int ms_yuv_buf_init_from_mblk(MSPicture *buf, mblk_t *m);
+ MS2_PUBLIC int ms_yuv_buf_init_from_mblk_with_size(MSPicture *buf, mblk_t
*m, int w, int h);
+ MS2_PUBLIC int ms_picture_init_from_mblk_with_size(MSPicture *buf, mblk_t
*m, MSPixFmt fmt, int w, int h);
+diff --git a/src/h264dec.c b/src/h264dec.c
+index 223de3d..8c40a7c 100644
+--- mediastreamer2/src/h264dec.c
++++ mediastreamer2/src/h264dec.c
+@@ -44,7 +44,9 @@ typedef struct _DecData{
+ static void ffmpeg_init(){
+ static bool_t done=FALSE;
+ if (!done){
++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 0, 100)
+ avcodec_init();
++#endif
+ avcodec_register_all();
+ done=TRUE;
+ }
+diff --git a/src/mscommon.c b/src/mscommon.c
+index 2cab005..bebb946 100644
+--- mediastreamer2/src/mscommon.c
++++ mediastreamer2/src/mscommon.c
+@@ -33,9 +33,17 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
+ #include "mediastreamer2/mscodecutils.h"
+ #include "mediastreamer2/msfilter.h"
+ #include <ortp/ortp_srtp.h>
++#ifndef INT64_C
++#define INT64_C(c) (c ## LL)
++#define UINT64_C(c) (c ## ULL)
++#endif
++#include <libavutil/avutil.h>
++#include <libavcodec/version.h>
+
+ extern void __register_ffmpeg_encoders_if_possible(void);
++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 0, 100)
+ extern void ms_ffmpeg_check_init();
++#endif
+ extern bool_t libmsandroiddisplay_init(void);
+ extern void libmsandroiddisplaybad_init(void);
+ extern void libmsandroidopengldisplay_init(void);
+@@ -645,7 +653,9 @@ void ms_init(){
+ }
+ }
+ #if !defined(NO_FFMPEG)
++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 0, 100)
+ ms_ffmpeg_check_init();
++#endif
+ __register_ffmpeg_encoders_if_possible();
+ #endif
+ #endif
+diff --git a/src/videodec.c b/src/videodec.c
+index c04e1e9..a455075 100644
+--- mediastreamer2/src/videodec.c
++++ mediastreamer2/src/videodec.c
+@@ -27,9 +27,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
+ #include "mediastreamer2/msvideo.h"
+ #include "mediastreamer2/msticker.h"
+ #include "rfc2429.h"
++#ifndef INT64_C
++#define INT64_C(c) (c ## LL)
++#define UINT64_C(c) (c ## ULL)
++#endif
++#include <libavutil/avutil.h>
++#include <libavcodec/version.h>
+
+-
++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 0, 100)
+ extern void ms_ffmpeg_check_init();
++#endif
+
+
+ typedef struct DecState{
+@@ -50,7 +57,9 @@
+
+ static void dec_init(MSFilter *f, enum CodecID cid){
+ DecState *s=(DecState *)ms_new0(DecState,1);
++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 0, 100)
+ ms_ffmpeg_check_init();
++#endif
+
+ avcodec_get_context_defaults(&s->av_context);
+ s->av_codec=NULL;
+diff --git a/src/videoenc.c b/src/videoenc.c
+index 21d016f..520f06a 100644
+--- mediastreamer2/src/videoenc.c
++++ mediastreamer2/src/videoenc.c
+@@ -37,7 +37,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
+
+ #define RATE_CONTROL_MARGIN 15000 /*bits/second*/
+
++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 0, 100)
+ static bool_t avcodec_initialized=FALSE;
++#endif
+
+ #ifdef ENABLE_LOG_FFMPEG
+
+@@ -51,6 +53,7 @@ void ms_ffmpeg_log_callback(void* ptr, int level, const
char* fmt, va_list vl)
+
+ #endif
+
++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 0, 100)
+ void ms_ffmpeg_check_init(){
+ if(!avcodec_initialized){
+ avcodec_init();
+@@ -62,6 +65,7 @@ void ms_ffmpeg_check_init(){
+ #endif
+ }
+ }
++#endif
+
+ /* the goal of this small object is to tell when to send I frames at
startup:
+ at 2 and 4 seconds*/
+@@ -201,7 +205,9 @@ static void enc_init(MSFilter *f, enum CodecID codec)
+ {
+ EncState *s=(EncState *)ms_new(EncState,1);
+ f->data=s;
++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 0, 100)
+ ms_ffmpeg_check_init();
++#endif
+ s->profile=0;/*always default to profile 0*/
+ s->comp_buf=NULL;
+ s->fps=15;
+@@ -300,9 +306,13 @@ static void prepare_h263(EncState *s){
+ if (s->profile==0){
+ s->codec=CODEC_ID_H263;
+ }else{
++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 0, 100)
+ c->flags|=CODEC_FLAG_H263P_UMV;
++#endif
+ c->flags|=CODEC_FLAG_AC_PRED;
++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 0, 100)
+ c->flags|=CODEC_FLAG_H263P_SLICE_STRUCT;
++#endif
+ /*
+ c->flags|=CODEC_FLAG_OBMC;
+ c->flags|=CODEC_FLAG_AC_PRED;
+@@ -372,7 +382,11 @@ static void add_rfc2190_header(mblk_t **packet,
AVCodecContext *context){
+ // assume video size is CIF or QCIF
+ if (context->width == 352 && context->height == 288)
header->b_wptr[1] = 0x60;
+ else header->b_wptr[1] = 0x40;
++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 0, 100)
+ if (context->coded_frame->pict_type != FF_I_TYPE) header->b_wptr[1]
|= 0x10;
++#else
++ if (context->coded_frame->pict_type != AV_PICTURE_TYPE_I)
header->b_wptr[1] |= 0x10;
++#endif
+ header->b_wptr += 4;
+ header->b_cont = *packet;
+ *packet = header;
+@@ -779,7 +793,11 @@ static void process_frame(MSFilter *f, mblk_t *inm){
+ s->req_vfu=TRUE;
+ }
+ if (s->req_vfu){
++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 0, 100)
+ pict.pict_type=FF_I_TYPE;
++#else
++ pict.pict_type=AV_PICTURE_TYPE_I;
++#endif
+ s->req_vfu=FALSE;
+ }
+ comp_buf->b_rptr=comp_buf->b_wptr=comp_buf->b_datap->db_base;
+@@ -799,7 +817,11 @@ static void process_frame(MSFilter *f, mblk_t *inm){
+ if (s->framenum==1){
+ video_starter_first_frame
(&s->starter,f->ticker->time);
+ }
++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 0, 100)
+ if (c->coded_frame->pict_type==FF_I_TYPE){
++#else
++ if (c->coded_frame->pict_type==AV_PICTURE_TYPE_I){
++#endif
+ ms_message("Emitting I-frame");
+ }
+ comp_buf->b_wptr+=error;
+@@ -1067,7 +1089,9 @@ MSFilterDesc ms_mjpeg_enc_desc={
+ #endif
+
+ void __register_ffmpeg_encoders_if_possible(void){
++#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(54, 0, 100)
+ ms_ffmpeg_check_init();
++#endif
+ if (avcodec_find_encoder(CODEC_ID_MPEG4))
+ ms_filter_register(&ms_mpeg4_enc_desc);
+ if (avcodec_find_encoder(CODEC_ID_H263)){



  • [SM-Commit] GIT changes to master grimoire by Sukneet Basuta (afed7772bb2f4584e9107927ce87b36746fd0bfc), Sukneet Basuta, 07/29/2012

Archive powered by MHonArc 2.6.24.

Top of Page