Skip to contentSkip to conversation

mjpegtools: new package

PATCH Superseded Steve Kenton 2 participants 3 messages Jan 18, 2015 – Feb 2, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mjpegtools: new package

The mjpegtools programs are a set of tools that can do recording of videos and playback, simple cut-and-paste editing and the MPEG compression of audio and video under Linux.

http://mjpeg.sourceforge.net

Signed-off-by Stephen M. Kenton <[email protected]>
---
V2 Added hash file
Build tested with both uClibc and glibc against last nights snapshot

package/Config.in +1 -0
diff -pruN buildroot.ori/package/Config.in buildroot/package/Config.in
@@ -19,6 +19,7 @@ menu "Audio and video applications"
 	source "package/lame/Config.in"
 	source "package/libvpx/Config.in"
 	source "package/madplay/Config.in"
+	source "package/mjpegtools/Config.in"
 	source "package/modplugtools/Config.in"
 	source "package/mpd/Config.in"
 	source "package/mpd-mpc/Config.in"
package/mjpegtools/Config.in +14 -0
diff -pruN buildroot.ori/package/mjpegtools/Config.in buildroot/package/mjpegtools/Config.in
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_MJPEGTOOLS
+	bool "mjpegtools"
+	select BR2_PACKAGE_JPEG
+	depends on BR2_INSTALL_LIBSTDCPP
+	help
+	  The mjpegtools programs are a set of tools
+	  that can do recording of videos and playback,
+	  simple cut-and-paste editing and the MPEG
+	  compression of audio and video under Linux.
+
+	  http://mjpeg.sourceforge.net
+
+comment "mjpegtools needs a toolchain w/ C++"
+	depends on !BR2_INSTALL_LIBSTDCPP
package/mjpegtools/mjpegtools.hash +3 -0
diff -pruN buildroot.ori/package/mjpegtools/mjpegtools.hash buildroot/package/mjpegtools/mjpegtools.hash
@@ -0,0 +1,3 @@
+# From http://sourceforge.net/projects/mjpeg/files/mjpegtools/2.1.0/
+md5	57bf5dd78976ca9bac972a6511b236f3	mjpegtools-2.1.0.tar.gz
+sha1	b9effa86280e23d67369e842e5cb645948583097	mjpegtools-2.1.0.tar.gz
package/mjpegtools/mjpegtools.mk +13 -0
diff -pruN buildroot.ori/package/mjpegtools/mjpegtools.mk buildroot/package/mjpegtools/mjpegtools.mk
@@ -0,0 +1,13 @@
+###############################################################################
+#
+# mjpegtools
+#
+###############################################################################
+
+MJPEGTOOLS_VERSION = 2.1.0
+MJPEGTOOLS_SITE = http://sourceforge.net/projects/mjpeg/files/mjpegtools/$(MJPEGTOOLS_VERSION)
+MJPEGTOOLS_DEPENDENCIES = jpeg
+MJPEGTOOLS_LICENSE = GPLv2
+MJPEGTOOLS_LICENSE_FILES = COPYING
+
+$(eval $(autotools-package))
#1 lore raw

PATCH v2 1/1 mjpegtools: new package

Steve, All,

On 2015-01-18 10:37 -0600, Steve Kenton spake thusly:

Quoted 8 lines

The mjpegtools programs are a set of tools that can do recording of videos and playback, simple cut-and-paste editing and the MPEG compression of audio and video under Linux.

http://mjpeg.sourceforge.net

Signed-off-by Stephen M. Kenton <[email protected]>

[--SNIP--]

package/mjpegtools/Config.in line 4

Quoted 8 lines

diff -pruN buildroot.ori/package/mjpegtools/Config.in buildroot/package/mjpegtools/Config.in

package/mjpegtools/Config.in +4 -0
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_MJPEGTOOLS
+	bool "mjpegtools"
+	select BR2_PACKAGE_JPEG
+	depends on BR2_INSTALL_LIBSTDCPP

I tried with this defconfig:
http://autobuild.buildroot.org/toolchains/configs/br-arm-full-nothread.config

and just enabled mjpegtools above that, and it failed with:

In file included from picture.hh:27:0,
from motionest.cc:61:
synchrolib.h:32:21: fatal error: pthread.h: No such file or directory
#include <pthread.h>
^
compilation terminated.

So, it needs thread support.

Quoted 21 lines
package/mjpegtools/Config.in +10 -0
+	help
+	  The mjpegtools programs are a set of tools
+	  that can do recording of videos and playback,
+	  simple cut-and-paste editing and the MPEG
+	  compression of audio and video under Linux.
+
+	  http://mjpeg.sourceforge.net
+
+comment "mjpegtools needs a toolchain w/ C++"
+	depends on !BR2_INSTALL_LIBSTDCPP

diff -pruN buildroot.ori/package/mjpegtools/mjpegtools.hash buildroot/package/mjpegtools/mjpegtools.hash

package/mjpegtools/mjpegtools.hash +3 -0
@@ -0,0 +1,3 @@
+# From http://sourceforge.net/projects/mjpeg/files/mjpegtools/2.1.0/
+md5	57bf5dd78976ca9bac972a6511b236f3	mjpegtools-2.1.0.tar.gz
+sha1	b9effa86280e23d67369e842e5cb645948583097	mjpegtools-2.1.0.tar.gz

diff -pruN buildroot.ori/package/mjpegtools/mjpegtools.mk buildroot/package/mjpegtools/mjpegtools.mk

package/mjpegtools/mjpegtools.mk line 9

Quoted 9 lines
package/mjpegtools/mjpegtools.mk +9 -0
@@ -0,0 +1,13 @@
+###############################################################################
+#
+# mjpegtools
+#
+###############################################################################
+
+MJPEGTOOLS_VERSION = 2.1.0
+MJPEGTOOLS_SITE = http://sourceforge.net/projects/mjpeg/files/mjpegtools/$(MJPEGTOOLS_VERSION)
+MJPEGTOOLS_DEPENDENCIES = jpeg

configure.ac uses PKG_CHECK_MODULE, so this should depend on host-pkgconf.

Care to fix and resend?

Thank you! ;-)

Regards,
Yann E. MORIN.

Quoted 8 lines
package/mjpegtools/mjpegtools.mk +4 -0
+MJPEGTOOLS_LICENSE = GPLv2
+MJPEGTOOLS_LICENSE_FILES = COPYING
+
+$(eval $(autotools-package))

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#2 lore raw

PATCH v2 1/1 mjpegtools: new package

Quoted 25 lines · Yann E. MORIN

Steve, All,

On 2015-01-18 10:37 -0600, Steve Kenton spake thusly:

Quoted 8 lines

The mjpegtools programs are a set of tools that can do recording of videos and playback, simple cut-and-paste editing and the MPEG compression of audio and video under Linux.

http://mjpeg.sourceforge.net

Signed-off-by Stephen M. Kenton<[email protected]>

[--SNIP--]

package/mjpegtools/Config.in line 4

Quoted 8 lines

diff -pruN buildroot.ori/package/mjpegtools/Config.in buildroot/package/mjpegtools/Config.in

package/mjpegtools/Config.in +4 -0
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_MJPEGTOOLS
+	bool "mjpegtools"
+	select BR2_PACKAGE_JPEG
+	depends on BR2_INSTALL_LIBSTDCPP

I tried with this defconfig:
http://autobuild.buildroot.org/toolchains/configs/br-arm-full-nothread.config

and just enabled mjpegtools above that, and it failed with:

Quoted 9 lines

In file included from picture.hh:27:0,
from motionest.cc:61:
synchrolib.h:32:21: fatal error: pthread.h: No such file or directory
#include<pthread.h>
^
compilation terminated.

So, it needs thread support.

OK, I'll look into it

Steve