Package Details: mjpg-streamer-git 1:r355.85f89a8-1

Git Clone URL: https://aur.archlinux.org/mjpg-streamer-git.git (read-only, click to copy)
Package Base: mjpg-streamer-git
Description: Stream mjpeg frames from a webcam via http
Upstream URL: https://github.com/jacksonliam/mjpg-streamer
Licenses: GPL2
Conflicts: mjpg-streamer
Provides: mjpg-streamer
Submitter: yhfudev
Maintainer: FabioLolix
Last Packager: FabioLolix
Votes: 27
Popularity: 0.000000
First Submitted: 2015-05-18 19:48
Last Updated: 2020-09-02 21:26

Latest Comments

« First ‹ Previous 1 2 3 4 Next › Last »

replabrobin commented on 2015-11-03 21:13

I'm finding that the problem with mjpeg is back even with the patch in place; course my kernel is 4.2.5-1

mdevaev commented on 2015-04-11 23:27

Please add armv6h to architectures for raspberry pi :-)

albertnguyen commented on 2015-02-24 09:19

Build sources have been updated with libc's patch.

albertnguyen commented on 2015-02-24 08:51

Build sources are updated with libc's patch.

libc commented on 2015-02-11 00:47

It appears that a recent kernel update (3.15?) broke the UVC plugin so that streaming doesn't work out of the box unless you set the '-y' option to force YUYV streaming mode. I was able to fix the issue so that it works again using MJPEG streaming mode (which uses far less CPU). Since it appears the project has been abandoned upstream and none of the various Github clones I found appear to be the current canonical version, I'm posting my patch here in case it helps someone.

diff -rupN ./orig/src/mjpg-streamer-r63/plugins/input_uvc/input_uvc.c ./patched/src/mjpg-streamer-r63/plugins/input_uvc/input_uvc.c
--- ./orig/src/mjpg-streamer-r63/plugins/input_uvc/input_uvc.c 2015-02-02 21:35:03.593996063 -0500
+++ ./patched/src/mjpg-streamer-r63/plugins/input_uvc/input_uvc.c 2015-02-02 22:04:30.066953871 -0500
@@ -706,7 +706,7 @@ void *cam_thread( void *arg ) {
}
else {
DBG("copying frame\n");
- pglobal->size = memcpy_picture(pglobal->buf, videoIn->tmpbuffer, videoIn->buf.bytesused);
+ pglobal->size = memcpy_picture(pglobal->buf, videoIn->tmpbuffer, videoIn->currPictSize);
}

#if 0
diff -rupN ./orig/src/mjpg-streamer-r63/plugins/input_uvc/v4l2uvc.c ./patched/src/mjpg-streamer-r63/plugins/input_uvc/v4l2uvc.c
--- ./orig/src/mjpg-streamer-r63/plugins/input_uvc/v4l2uvc.c 2015-02-02 21:35:03.523996063 -0500
+++ ./patched/src/mjpg-streamer-r63/plugins/input_uvc/v4l2uvc.c 2015-02-02 22:04:29.986993871 -0500
@@ -333,6 +333,7 @@ int uvcGrab(struct vdIn *vd)
*/

memcpy(vd->tmpbuffer, vd->mem[vd->buf.index], vd->buf.bytesused);
+ vd->currPictSize = vd->buf.bytesused;

if (debug)
fprintf(stderr, "bytes in used %d \n", vd->buf.bytesused);
diff -rupN ./orig/src/mjpg-streamer-r63/plugins/input_uvc/v4l2uvc.h ./patched/src/mjpg-streamer-r63/plugins/input_uvc/v4l2uvc.h
--- ./orig/src/mjpg-streamer-r63/plugins/input_uvc/v4l2uvc.h 2015-02-02 21:35:03.443996063 -0500
+++ ./patched/src/mjpg-streamer-r63/plugins/input_uvc/v4l2uvc.h 2015-02-02 22:04:29.867053871 -0500
@@ -73,6 +73,7 @@ struct vdIn {
int framecount;
int recordstart;
int recordtime;
+ int currPictSize
};

rpodgorny commented on 2014-03-20 21:39

==> WARNING: Using a PKGBUILD without a package() function is deprecated.

quite commented on 2012-08-24 07:21

I need this in the PKGBUILD, to get it built:
options=(!makeflags)

Seems it doesn't like my MAKEFLAGS="-j2"

tri1976 commented on 2012-08-21 00:31

@malangot,
Thanks for the comment. I have updated PKGBUILD to depend on imagemagick

Anonymous comment on 2012-08-20 09:19

Thx for your contribution.

I have need to imagemagick for use "convert" a the end of compile.

I think you need to add to depend.

Anonymous comment on 2012-07-24 16:07

总体不错!可惜不支持我的摄像头,要是可以修改为可支持V4L的USB摄像头就好了!