mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH v3 0/2] Add openh264 package
@ 2025-10-21 14:53 Fabian Pfitzner
  2025-10-21 14:53 ` [ptxdist] [PATCH v3 1/2] openh264: new package Fabian Pfitzner
  2025-10-21 14:53 ` [ptxdist] [PATCH v3 2/2] gst-plugins-bad1: unbreak openh264 plugin Fabian Pfitzner
  0 siblings, 2 replies; 5+ messages in thread
From: Fabian Pfitzner @ 2025-10-21 14:53 UTC (permalink / raw)
  To: ptxdist; +Cc: Fabian Pfitzner

Add openh264 package and unbreak the corresponding gstreamer plugin.

v1->v2
	- Set correct license
	- Fix padding issues
	- Link to v1: https://lore.ptxdist.org/ptxdist/20250905144424.620258-2-f.pfitzner@pengutronix.de/
v2->v3
	- Add license file
	- Link to v2: https://lore.ptxdist.org/ptxdist/20251020085529.2423792-2-f.pfitzner@pengutronix.de/

Fabian Pfitzner (2):
  openh264: new package
  gst-plugins-bad1: unbreak openh264 plugin

 rules/gst-plugins-bad1.in |  3 +--
 rules/openh264.in         |  8 ++++++
 rules/openh264.make       | 55 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 64 insertions(+), 2 deletions(-)
 create mode 100644 rules/openh264.in
 create mode 100644 rules/openh264.make

--
2.47.3




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ptxdist] [PATCH v3 1/2] openh264: new package
  2025-10-21 14:53 [ptxdist] [PATCH v3 0/2] Add openh264 package Fabian Pfitzner
@ 2025-10-21 14:53 ` Fabian Pfitzner
  2025-10-23 13:13   ` [ptxdist] [APPLIED] " Michael Olbrich
  2025-10-21 14:53 ` [ptxdist] [PATCH v3 2/2] gst-plugins-bad1: unbreak openh264 plugin Fabian Pfitzner
  1 sibling, 1 reply; 5+ messages in thread
From: Fabian Pfitzner @ 2025-10-21 14:53 UTC (permalink / raw)
  To: ptxdist; +Cc: Fabian Pfitzner

Signed-off-by: Fabian Pfitzner <f.pfitzner@pengutronix.de>
---
 rules/openh264.in   |  8 +++++++
 rules/openh264.make | 55 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 63 insertions(+)
 create mode 100644 rules/openh264.in
 create mode 100644 rules/openh264.make

diff --git a/rules/openh264.in b/rules/openh264.in
new file mode 100644
index 000000000..069cd22d2
--- /dev/null
+++ b/rules/openh264.in
@@ -0,0 +1,8 @@
+## SECTION=multimedia_libs
+
+config OPENH264
+	bool
+	prompt "openh264"
+	select HOST_MESON
+	help
+	  Enable OpenH264 codec
diff --git a/rules/openh264.make b/rules/openh264.make
new file mode 100644
index 000000000..f61430d06
--- /dev/null
+++ b/rules/openh264.make
@@ -0,0 +1,55 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2025 by Fabian Pfitzner <f.pfitzner@pengutronix.de>
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_OPENH264) += openh264
+
+#
+# Paths and names
+#
+OPENH264_VERSION	:= 2.6.0
+OPENH264_MD5		:= 0b01f0279eca1c7bb65395ea350fa85c
+OPENH264		:= OpenH264-$(OPENH264_VERSION)
+OPENH264_SUFFIX		:= tar.gz
+OPENH264_URL		:= https://github.com/cisco/openh264/archive/refs/tags/v$(OPENH264_VERSION).$(OPENH264_SUFFIX)
+OPENH264_SOURCE		:= $(SRCDIR)/$(OPENH264).$(OPENH264_SUFFIX)
+OPENH264_DIR		:= $(BUILDDIR)/$(OPENH264)
+OPENH264_LICENSE	:= BSD 2-Clause
+OPENH264_LICENSE_FILES	:= file://LICENSE;md5=bb6d3771da6a07d33fd50d4d9aa73bcf
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+OPENH264_CONF_TOOL	:= meson
+OPENH264_CONF_OPT	:= \
+	$(CROSS_MESON_USR) \
+	-Dtests=disabled
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/openh264.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, openh264)
+	@$(call install_fixup, openh264,PRIORITY,optional)
+	@$(call install_fixup, openh264,SECTION,base)
+	@$(call install_fixup, openh264,AUTHOR,"Fabian Pfitzner <f.pfitzner@pengutronix.de>")
+	@$(call install_fixup, openh264,DESCRIPTION,missing)
+
+	@$(call install_lib, openh264, 0, 0, 0644, libopenh264)
+
+	@$(call install_finish, openh264)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.47.3




^ permalink raw reply	[flat|nested] 5+ messages in thread

* [ptxdist] [PATCH v3 2/2] gst-plugins-bad1: unbreak openh264 plugin
  2025-10-21 14:53 [ptxdist] [PATCH v3 0/2] Add openh264 package Fabian Pfitzner
  2025-10-21 14:53 ` [ptxdist] [PATCH v3 1/2] openh264: new package Fabian Pfitzner
@ 2025-10-21 14:53 ` Fabian Pfitzner
  2025-10-23 13:13   ` [ptxdist] [APPLIED] " Michael Olbrich
  1 sibling, 1 reply; 5+ messages in thread
From: Fabian Pfitzner @ 2025-10-21 14:53 UTC (permalink / raw)
  To: ptxdist; +Cc: Fabian Pfitzner

Signed-off-by: Fabian Pfitzner <f.pfitzner@pengutronix.de>
---
 rules/gst-plugins-bad1.in | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/rules/gst-plugins-bad1.in b/rules/gst-plugins-bad1.in
index 16fc22260..3873b378e 100644
--- a/rules/gst-plugins-bad1.in
+++ b/rules/gst-plugins-bad1.in
@@ -20,6 +20,7 @@ menuconfig GST_PLUGINS_BAD1
 	select LIBCURL			if GST_PLUGINS_BAD1_CURL
 	select LIBCURL_LIBSSH2		if GST_PLUGINS_BAD1_CURL_SSH2
 	select LIBXML2			if GST_PLUGINS_BAD1_DASH || GST_PLUGINS_BAD1_SMOOTHSTREAMING || GST_PLUGINS_BAD1_TTML
+	select OPENH264			if GST_PLUGINS_BAD1_OPENH264
 	select OPENSSL			if GST_PLUGINS_BAD1_AES
 	select OPENSSL			if GST_PLUGINS_BAD1_DTLS
 	select OPENSSL			if GST_PLUGINS_BAD1_HLS
@@ -767,8 +768,6 @@ config GST_PLUGINS_BAD1_OPENEXR
 
 config GST_PLUGINS_BAD1_OPENH264
 	bool
-	# needs openh264
-	depends on BROKEN
 	prompt "openh264"
 	help
 	  H.264 video codec plugin
-- 
2.47.3




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] [APPLIED] openh264: new package
  2025-10-21 14:53 ` [ptxdist] [PATCH v3 1/2] openh264: new package Fabian Pfitzner
@ 2025-10-23 13:13   ` Michael Olbrich
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Olbrich @ 2025-10-23 13:13 UTC (permalink / raw)
  To: ptxdist; +Cc: Fabian Pfitzner

Thanks, applied as be816be17ddac6a51db22317449f1eaeb8c023a7.

Michael

[sent from post-receive hook]

On Thu, 23 Oct 2025 15:13:50 +0200, Fabian Pfitzner <f.pfitzner@pengutronix.de> wrote:
> Signed-off-by: Fabian Pfitzner <f.pfitzner@pengutronix.de>
> Message-Id: <20251021145312.1272182-4-f.pfitzner@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/openh264.in b/rules/openh264.in
> new file mode 100644
> index 000000000000..069cd22d2503
> --- /dev/null
> +++ b/rules/openh264.in
> @@ -0,0 +1,8 @@
> +## SECTION=multimedia_libs
> +
> +config OPENH264
> +	bool
> +	prompt "openh264"
> +	select HOST_MESON
> +	help
> +	  Enable OpenH264 codec
> diff --git a/rules/openh264.make b/rules/openh264.make
> new file mode 100644
> index 000000000000..f61430d06975
> --- /dev/null
> +++ b/rules/openh264.make
> @@ -0,0 +1,55 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2025 by Fabian Pfitzner <f.pfitzner@pengutronix.de>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_OPENH264) += openh264
> +
> +#
> +# Paths and names
> +#
> +OPENH264_VERSION	:= 2.6.0
> +OPENH264_MD5		:= 0b01f0279eca1c7bb65395ea350fa85c
> +OPENH264		:= OpenH264-$(OPENH264_VERSION)
> +OPENH264_SUFFIX		:= tar.gz
> +OPENH264_URL		:= https://github.com/cisco/openh264/archive/refs/tags/v$(OPENH264_VERSION).$(OPENH264_SUFFIX)
> +OPENH264_SOURCE		:= $(SRCDIR)/$(OPENH264).$(OPENH264_SUFFIX)
> +OPENH264_DIR		:= $(BUILDDIR)/$(OPENH264)
> +OPENH264_LICENSE	:= BSD 2-Clause
> +OPENH264_LICENSE_FILES	:= file://LICENSE;md5=bb6d3771da6a07d33fd50d4d9aa73bcf
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +OPENH264_CONF_TOOL	:= meson
> +OPENH264_CONF_OPT	:= \
> +	$(CROSS_MESON_USR) \
> +	-Dtests=disabled
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/openh264.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, openh264)
> +	@$(call install_fixup, openh264,PRIORITY,optional)
> +	@$(call install_fixup, openh264,SECTION,base)
> +	@$(call install_fixup, openh264,AUTHOR,"Fabian Pfitzner <f.pfitzner@pengutronix.de>")
> +	@$(call install_fixup, openh264,DESCRIPTION,missing)
> +
> +	@$(call install_lib, openh264, 0, 0, 0644, libopenh264)
> +
> +	@$(call install_finish, openh264)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ptxdist] [APPLIED] gst-plugins-bad1: unbreak openh264 plugin
  2025-10-21 14:53 ` [ptxdist] [PATCH v3 2/2] gst-plugins-bad1: unbreak openh264 plugin Fabian Pfitzner
@ 2025-10-23 13:13   ` Michael Olbrich
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Olbrich @ 2025-10-23 13:13 UTC (permalink / raw)
  To: ptxdist; +Cc: Fabian Pfitzner

Thanks, applied as 9be7fc152fe1ab626cecbc8f6cc5dff9f32fc583.

Michael

[sent from post-receive hook]

On Thu, 23 Oct 2025 15:13:51 +0200, Fabian Pfitzner <f.pfitzner@pengutronix.de> wrote:
> Signed-off-by: Fabian Pfitzner <f.pfitzner@pengutronix.de>
> Message-Id: <20251021145312.1272182-6-f.pfitzner@pengutronix.de>
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> diff --git a/rules/gst-plugins-bad1.in b/rules/gst-plugins-bad1.in
> index 16fc222607da..3873b378eccf 100644
> --- a/rules/gst-plugins-bad1.in
> +++ b/rules/gst-plugins-bad1.in
> @@ -20,6 +20,7 @@ menuconfig GST_PLUGINS_BAD1
>  	select LIBCURL			if GST_PLUGINS_BAD1_CURL
>  	select LIBCURL_LIBSSH2		if GST_PLUGINS_BAD1_CURL_SSH2
>  	select LIBXML2			if GST_PLUGINS_BAD1_DASH || GST_PLUGINS_BAD1_SMOOTHSTREAMING || GST_PLUGINS_BAD1_TTML
> +	select OPENH264			if GST_PLUGINS_BAD1_OPENH264
>  	select OPENSSL			if GST_PLUGINS_BAD1_AES
>  	select OPENSSL			if GST_PLUGINS_BAD1_DTLS
>  	select OPENSSL			if GST_PLUGINS_BAD1_HLS
> @@ -767,8 +768,6 @@ config GST_PLUGINS_BAD1_OPENEXR
>  
>  config GST_PLUGINS_BAD1_OPENH264
>  	bool
> -	# needs openh264
> -	depends on BROKEN
>  	prompt "openh264"
>  	help
>  	  H.264 video codec plugin



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-10-23 13:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-10-21 14:53 [ptxdist] [PATCH v3 0/2] Add openh264 package Fabian Pfitzner
2025-10-21 14:53 ` [ptxdist] [PATCH v3 1/2] openh264: new package Fabian Pfitzner
2025-10-23 13:13   ` [ptxdist] [APPLIED] " Michael Olbrich
2025-10-21 14:53 ` [ptxdist] [PATCH v3 2/2] gst-plugins-bad1: unbreak openh264 plugin Fabian Pfitzner
2025-10-23 13:13   ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox