diff mbox

mjpegtools: new package

Message ID 54B954C0.4010503@ou.edu
State Superseded
Headers show

Commit Message

Kenton, Stephen M. Jan. 16, 2015, 6:13 p.m. UTC
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 <skenton@ou.edu>
---
Build tested with both uClibc and glibc against last nights snapshot

Every buildroot patch I generate turns out to be a learning experience
So, let's see what I don't know this time ...

Finding the higher level dependencies is still beyond me, so I think
I'll concentrate on learning to use git as a next step. Thanks for
all the help getting these packages in shape. Obviously I'm working
on multi-media stuff. If there is a wish list for other related
packages let me know and I'll try and work them up for submission.

Comments

Yann E. MORIN Jan. 18, 2015, 3:36 p.m. UTC | #1
Steve, All,

On 2015-01-16 12:13 -0600, Steve Kenton spake thusly:
> 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 <skenton@ou.edu>
> ---
> Build tested with both uClibc and glibc against last nights snapshot
> 
> Every buildroot patch I generate turns out to be a learning experience
> So, let's see what I don't know this time ...

We were all learners at tsome point! ;-)

> Finding the higher level dependencies is still beyond me,

We basically have a set of toolchains for various presets, like with or
without threads, with or withour locales, with glibc or uclibc, on
different architectures, and we have some autobuilders that constantly
build random package selections with a randomly choosen toolchain:

    http://autobuild.buildroot.org/
    http://autobuild.buildroot.org/toolchains/

It is interesting to test with at least uClibc and glibc (like you did),
but also with a very "light" toolchain that has no fancy stuff: no
threads, no IPv6, no locales... such as this one:
    http://autobuild.buildroot.org/toolchains/configs/br-arm-basic.config

Use it as thus:

    wget -O defconfig http://autobuild.buildroot.org/toolchains/configs/br-arm-basic.config
    make BR2_DEFCONFIG=$(pwd)/defconfig defconfig
    make menuconfig    (select whatever package you want to test)
    make

It helps find the obvious basic requirements.

Then, for the not-so-obvious requirements, we have the autobuilders to
do all the testing. ;-)

> so I think
> I'll concentrate on learning to use git as a next step. Thanks for
> all the help getting these packages in shape.

Cheers! Thanks for the submissions! :-)

> Obviously I'm working
> on multi-media stuff. If there is a wish list for other related
> packages let me know and I'll try and work them up for submission.

Well, you can have a look at the Patchwork, there are quite a few
multi-media related patches pending:

    http://patchwork.ozlabs.org/project/buildroot/list/

[--SNIP--]

I did not find anything highly suspicious in that patch. Good. :-)

However, we now like to store hashes for the tarballs we download, so we
can test for integrity :

    http://buildroot.net/downloads/manual/manual.html#adding-packages-hash

Sourceforget provides SHA1 hashes when you click on the (i) button next
to the file you want to download.

Care to respin with that file added, please?

Regards,
Yann E. MORIN.
diff mbox

Patch

diff -pruN buildroot.ori/package/Config.in buildroot/package/Config.in
--- buildroot.ori/package/Config.in	2015-01-15 02:41:42.000000000 -0600
+++ buildroot/package/Config.in	2015-01-16 11:37:56.681909014 -0600
@@ -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"
diff -pruN buildroot.ori/package/mjpegtools/Config.in buildroot/package/mjpegtools/Config.in
--- buildroot.ori/package/mjpegtools/Config.in	1969-12-31 18:00:00.000000000 -0600
+++ buildroot/package/mjpegtools/Config.in	2015-01-16 11:05:54.949872151 -0600
@@ -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
diff -pruN buildroot.ori/package/mjpegtools/mjpegtools.mk buildroot/package/mjpegtools/mjpegtools.mk
--- buildroot.ori/package/mjpegtools/mjpegtools.mk	1969-12-31 18:00:00.000000000 -0600
+++ buildroot/package/mjpegtools/mjpegtools.mk	2015-01-16 11:05:03.121871157 -0600
@@ -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))