[package] minidlna/ffmpeg: add minidlna profile to ffmpeg
authorFlorian Fainelli <florian@openwrt.org>
Sun, 3 Apr 2011 18:29:41 +0000 (18:29 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sun, 3 Apr 2011 18:29:41 +0000 (18:29 +0000)
This adds a profile to ffmpeg to support minidlna, similar to the
libdlna/ushare profile. When minidlna encounters media, it uses ffmpeg to
figure out what it is. If ffmpeg fails to open it, then minidlna will try
and fail to read the file on its own. The profile may need to be extended;
I attempted to cover all popular formats for dlna streaming.

Tested with the following container/codec combinations:

mkv with ac3/h264/srt
mp4 with aac/h264/ttxt
ogg vorbis
flac
mp3

Should also be able to handle, but untested:
mpeg
avi
xvid
jpeg
png
wmv1
wmv2

Signed-off-by: Ian Leonard <antonlacon_at_gmail.com>
SVN-Revision: 26450

multimedia/ffmpeg/Config.in
multimedia/minidlna/Makefile

index 326ef7caae4718fe7a319065feb3601f9316e6c9..32665d884e5bd4040d4d8304516ec4118d202ad2 100644 (file)
@@ -37,6 +37,34 @@ config FFMPEG_LIBDLNA_SUPPORT
        select FFMPEG_DEMUXER_mp3
        select FFMPEG_DEMUXER_mpegvideo
 
+config FFMPEG_MINIDLNA_SUPPORT
+       bool "Include support for minidlna"
+       depends FFMPEG_PATENTED
+       select FFMPEG_DECODER_aac
+       select FFMPEG_DECODER_ac3
+       select FFMPEG_DECODER_flac
+       select FFMPEG_DECODER_h264
+       select FFMPEG_DECODER_jpegls
+       select FFMPEG_DECODER_mp3
+       select FFMPEG_DECODER_mpeg1video
+       select FFMPEG_DECODER_mpeg2video
+       select FFMPEG_DECODER_mpeg4
+       select FFMPEG_DECODER_mpeg4aac
+       select FFMPEG_DECODER_mpegvideo
+       select FFMPEG_DECODER_wmav1
+       select FFMPEG_DECODER_wmav2
+       select FFMPEG_DECODER_png
+       select FFMPEG_DEMUXER_aac
+       select FFMPEG_DEMUXER_ac3
+       select FFMPEG_DEMUXER_avi
+       select FFMPEG_DEMUXER_flac
+       select FFMPEG_DEMUXER_h264
+       select FFMPEG_DEMUXER_matroska
+       select FFMPEG_DEMUXER_mov
+       select FFMPEG_DEMUXER_mp3
+       select FFMPEG_DEMUXER_mpegvideo
+       select FFMPEG_PROTOCOL_file
+
 comment "Encoders ---"
 
 config FFMPEG_ENCODER_ac3
index 772d7e2d84641f7247c5ff837999a5660dce5666..e28f431d6a0dbca5f52b4eddce3d4566f062b777 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=minidlna
 PKG_VERSION:=1.0.18
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION)_src.tar.gz
 PKG_SOURCE_URL:=@SF/minidlna
@@ -31,7 +31,7 @@ define Package/minidlna
   TITLE:=UPnP A/V & DLNA Media Server
   URL:=http://minidlna.sourceforge.net/
   DEPENDS:= +libpthread +libexif +libjpeg +libsqlite3 +libffmpeg \
-       +libid3tag +libflac +libvorbis +libuuid \
+       +@FFMPEG_MINIDLNA_SUPPORT +libid3tag +libflac +libvorbis +libuuid \
        $(ICONV_DEPENDS) $(INTL_DEPENDS)
 endef