svn commit: r500192 - in head/multimedia: . ustreamer ustreamer/files

Yuri Victorovich yuri at FreeBSD.org
Sat Apr 27 06:24:20 UTC 2019


Author: yuri
Date: Sat Apr 27 06:24:18 2019
New Revision: 500192
URL: https://svnweb.freebsd.org/changeset/ports/500192

Log:
  New port: multimedia/ustreamer: Lightweight and fast MJPG-HTTP streamer

Added:
  head/multimedia/ustreamer/
  head/multimedia/ustreamer/Makefile   (contents, props changed)
  head/multimedia/ustreamer/distinfo   (contents, props changed)
  head/multimedia/ustreamer/files/
  head/multimedia/ustreamer/files/patch-src_encoders_omx_formatters.h   (contents, props changed)
  head/multimedia/ustreamer/files/patch-src_tools.h   (contents, props changed)
  head/multimedia/ustreamer/pkg-descr   (contents, props changed)
Modified:
  head/multimedia/Makefile

Modified: head/multimedia/Makefile
==============================================================================
--- head/multimedia/Makefile	Sat Apr 27 05:38:42 2019	(r500191)
+++ head/multimedia/Makefile	Sat Apr 27 06:24:18 2019	(r500192)
@@ -406,6 +406,7 @@
     SUBDIR += tvheadend
     SUBDIR += umph
     SUBDIR += umr
+    SUBDIR += ustreamer
     SUBDIR += v4l-utils
     SUBDIR += v4l_compat
     SUBDIR += vamps

Added: head/multimedia/ustreamer/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/ustreamer/Makefile	Sat Apr 27 06:24:18 2019	(r500192)
@@ -0,0 +1,24 @@
+# $FreeBSD$
+
+PORTNAME=	ustreamer
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.70
+CATEGORIES=	multimedia ipv6 net
+
+MAINTAINER=	yuri at FreeBSD.org
+COMMENT=	Lightweight and fast MJPG-HTTP streamer
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat
+LIB_DEPENDS=	libevent.so:devel/libevent \
+		libuuid.so:misc/e2fsprogs-libuuid
+
+USES=		gmake jpeg localbase:ldflags
+USE_GITHUB=	yes
+GH_ACCOUNT=	pi-kvm
+
+PLIST_FILES=	bin/ustreamer
+
+.include <bsd.port.mk>

Added: head/multimedia/ustreamer/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/ustreamer/distinfo	Sat Apr 27 06:24:18 2019	(r500192)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1556345422
+SHA256 (pi-kvm-ustreamer-v0.70_GH0.tar.gz) = 71cb25617feb115158182875142c8e55df3af672b4ebb5668dd8e09b195deadd
+SIZE (pi-kvm-ustreamer-v0.70_GH0.tar.gz) = 85188

Added: head/multimedia/ustreamer/files/patch-src_encoders_omx_formatters.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/ustreamer/files/patch-src_encoders_omx_formatters.h	Sat Apr 27 06:24:18 2019	(r500192)
@@ -0,0 +1,24 @@
+--- src/encoders/omx/formatters.h.orig	2019-04-27 06:14:24 UTC
++++ src/encoders/omx/formatters.h
+@@ -34,12 +34,21 @@
+ #include "../../tools.h"
+ 
+ 
++#if defined(__FreeBSD__)
++#define LOG_OMX_ERROR(_error, _msg, ...) { \
++		LOGGING_LOCK; \
++		printf("-- ERROR [%.03Lf tid=%ld] -- " _msg ": %s\n", get_now_monotonic(), \
++			pthread_getthreadid_np(), ##__VA_ARGS__, omx_error_to_string(_error)); \
++		LOGGING_UNLOCK; \
++	}
++#else
+ #define LOG_OMX_ERROR(_error, _msg, ...) { \
+ 		LOGGING_LOCK; \
+ 		printf("-- ERROR [%.03Lf tid=%ld] -- " _msg ": %s\n", get_now_monotonic(), \
+ 			syscall(SYS_gettid), ##__VA_ARGS__, omx_error_to_string(_error)); \
+ 		LOGGING_UNLOCK; \
+ 	}
++#endif
+ 
+ 
+ const char *omx_error_to_string(OMX_ERRORTYPE error);

Added: head/multimedia/ustreamer/files/patch-src_tools.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/ustreamer/files/patch-src_tools.h	Sat Apr 27 06:24:18 2019	(r500192)
@@ -0,0 +1,26 @@
+--- src/tools.h.orig	2019-04-27 06:12:11 UTC
++++ src/tools.h
+@@ -36,6 +36,13 @@
+ #include <sys/ioctl.h>
+ #include <sys/syscall.h>
+ 
++#ifndef CLOCK_MONOTONIC_RAW
++# ifdef CLOCK_MONOTONIC_FAST
++#  define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC_FAST
++# else
++#  define CLOCK_MONOTONIC_RAW CLOCK_MONOTONIC
++# endif
++#endif
+ 
+ #define A_THREAD_CREATE(_tid, _func, _arg)	assert(!pthread_create(_tid, NULL, _func, _arg))
+ #define A_THREAD_JOIN(_tid)					assert(!pthread_join(_tid, NULL))
+@@ -106,5 +113,9 @@ INLINE long double get_now_real(void) {
+ }
+ 
+ INLINE pid_t get_thread_id(void) {
++#if defined(__FreeBSD__)
++	return pthread_getthreadid_np();
++#else
+ 	return syscall(SYS_gettid);
++#endif
+ }

Added: head/multimedia/ustreamer/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/multimedia/ustreamer/pkg-descr	Sat Apr 27 06:24:18 2019	(r500192)
@@ -0,0 +1,7 @@
+muStreamer is a lightweight and very quick server to broadcast MJPG video from
+any V4L2 device to the net. All new browsers have native support of this video
+format, as well as most video players such as mplayer, VLC etc. muStreamer is a
+part of the Pi-KVM project designed to stream VGA and HDMI screencast hardware
+data with the highest resolution and FPS possible.
+
+WWW: https://github.com/pi-kvm/ustreamer


More information about the svn-ports-all mailing list