Skip to contentSkip to conversation

package/tvheadend: Add transcoding support by ffmpeg

PATCH New Bernd Kuhls 2 participants 3 messages Oct 31, 2014 – Nov 1, 2014

lore
Share & tools
lore
#0 lore raw

PATCH v4 1/2 package/tvheadend: Add transcoding support by ffmpeg

Add --disable-libffmpeg_static to disable static linking of ffmpeg libraries into the tvheadend binary.

tvheadend compiles with ffmpeg using this minimal defconfig:

BR2_TOOLCHAIN_BUILDROOT_LARGEFILE=y
BR2_TOOLCHAIN_BUILDROOT_INET_IPV6=y
BR2_PACKAGE_FFMPEG=y
BR2_PACKAGE_TVHEADEND=y

---
v4: simplify ffmpeg dependency handling, add description for
--disable-libffmpeg_static to commit log (Thomas)
v3: no changes
v2: add --disable-libffmpeg_static, newly added option to git master

---
 package/tvheadend/Config.in    |    2 ++
 package/tvheadend/tvheadend.mk |    8 ++++++++
 2 files changed, 10 insertions(+)
package/tvheadend/Config.in +2 -0
index f7182a1..303a345 100644
@@ -13,6 +13,8 @@ config BR2_PACKAGE_TVHEADEND
 	# architecture is avr32, which uses gcc 4.2.
 	depends on !BR2_avr32
 	select BR2_PACKAGE_DTV_SCAN_TABLES
+	select BR2_PACKAGE_FFMPEG_AVRESAMPLE if BR2_PACKAGE_FFMPEG
+	select BR2_PACKAGE_FFMPEG_SWSCALE if BR2_PACKAGE_FFMPEG
 	select BR2_PACKAGE_LIBICONV if !BR2_ENABLE_LOCALE
 	select BR2_PACKAGE_OPENSSL
 	help
package/tvheadend/tvheadend.mk +8 -0
index bd46d0e..08d8e7e 100644
@@ -14,6 +14,13 @@ ifeq ($(BR2_PACKAGE_AVAHI),y)
 TVHEADEND_DEPENDENCIES += avahi
 endif
 
+ifeq ($(BR2_PACKAGE_FFMPEG),y)
+TVHEADEND_DEPENDENCIES += ffmpeg
+TVHEADEND_CONF_OPTS += --enable-libav
+else
+TVHEADEND_CONF_OPTS += --disable-libav
+endif
+
 ifeq ($(BR2_PACKAGE_LIBDVBCSA),y)
 TVHEADEND_DEPENDENCIES += libdvbcsa
 TVHEADEND_CONF_OPTS += --enable-dvbcsa
@@ -38,6 +45,7 @@ define TVHEADEND_CONFIGURE_CMDS
 	 --python="$(HOST_DIR)/usr/bin/python"	\
 	 --disable-dvbscan			\
 	 --enable-bundle			\
+	 --disable-libffmpeg_static		\
 	 $(TVHEADEND_CONF_OPTS)			\
 	)
 endef
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH v4 2/2 package/tvheadend: Bump version to current git master

---
v4: initial version

---
 package/tvheadend/tvheadend.mk |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/tvheadend/tvheadend.mk +1 -1
index 08d8e7e..f3d7863 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-TVHEADEND_VERSION = 596b4e0b29937a6123b25940621fe17dccbefbb4
+TVHEADEND_VERSION = c053acd84e5cc48a3e70047f228728bf039cfacd
 TVHEADEND_SITE = $(call github,tvheadend,tvheadend,$(TVHEADEND_VERSION))
 TVHEADEND_LICENSE = GPLv3+
 TVHEADEND_LICENSE_FILES = LICENSE.md
Signature · 1 line
1.7.10.4
#2 lore raw

PATCH v4 1/2 package/tvheadend: Add transcoding support by ffmpeg

In reply to Bernd Kuhls

Dear Bernd Kuhls,

Quoted 16 lines · Bernd Kuhls

Add --disable-libffmpeg_static to disable static linking of ffmpeg libraries into the tvheadend binary.

tvheadend compiles with ffmpeg using this minimal defconfig:

BR2_TOOLCHAIN_BUILDROOT_LARGEFILE=y
BR2_TOOLCHAIN_BUILDROOT_INET_IPV6=y
BR2_PACKAGE_FFMPEG=y
BR2_PACKAGE_TVHEADEND=y

---
v4: simplify ffmpeg dependency handling, add description for
--disable-libffmpeg_static to commit log (Thomas)
v3: no changes
v2: add --disable-libffmpeg_static, newly added option to git master

Quoted 5 lines
---
 package/tvheadend/Config.in    |    2 ++
 package/tvheadend/tvheadend.mk |    8 ++++++++
 2 files changed, 10 insertions(+)

Both patches applied. But *again*, please put your SoB line *before* the first "---" sign. Everything that is after the first "---" gets removed by git when applying the patch, so your SoB line disappears.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com