package/tvheadend: Add transcoding support by ffmpeg
authorBernd Kuhls <bernd.kuhls@t-online.de>
Fri, 31 Oct 2014 21:07:00 +0000 (22:07 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 1 Nov 2014 13:47:46 +0000 (14:47 +0100)
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

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/tvheadend/Config.in
package/tvheadend/tvheadend.mk

index f7182a1248ee7cd9849add8d1510d799320eb2b2..303a345ca670b6c26c2e50e413c1802bbbbc1373 100644 (file)
@@ -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
index bd46d0e59ff332c6402de7f5aa23bc38cd4ed5b3..08d8e7e42058c4c16a66f829422468a0a896c926 100644 (file)
@@ -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