[packages] ffmpeg: use VARIANTs for building libffmeg
* libffmeg-custom (configurable, for developers) * libffmeg-mini (hopefully suitable for DLNA) * libffmeg-full (full-blown) git-svn-id: svn://svn.openwrt.org/openwrt/packages@28467 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
d6570784c9
commit
8bd55e3a03
@ -25,7 +25,7 @@ define Package/libdlna
|
|||||||
CATEGORY:=Libraries
|
CATEGORY:=Libraries
|
||||||
TITLE:= Reference DLNA implementation
|
TITLE:= Reference DLNA implementation
|
||||||
URL:=http://libdlna.geexbox.org/
|
URL:=http://libdlna.geexbox.org/
|
||||||
DEPENDS:=+libffmpeg +@FFMPEG_LIBDLNA_SUPPORT
|
DEPENDS:=+libffmpeg
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/libdlna/description
|
define Package/libdlna/description
|
||||||
|
@ -1,361 +1,314 @@
|
|||||||
menu "Configuration"
|
menu "Configuration"
|
||||||
depends PACKAGE_libffmpeg
|
depends PACKAGE_libffmpeg-custom
|
||||||
|
|
||||||
comment "Libav* build options ---"
|
config FFMPEG_CUSTOM_PATENTED
|
||||||
|
|
||||||
config FFMPEG_LIBAV_FULL
|
|
||||||
bool "Toggle for full libav* support"
|
|
||||||
select FFMPEG_BSFS
|
|
||||||
select FFMPEG_DECODE
|
|
||||||
select FFMPEG_ENCODE
|
|
||||||
select FFMPEG_FILTERS
|
|
||||||
select FFMPEG_INDEVS
|
|
||||||
select FFMPEG_OUTDEVS
|
|
||||||
select FFMPEG_HWACCELS
|
|
||||||
select FFMPEG_PARSERS
|
|
||||||
select FFMPEG_PROTOCOLS
|
|
||||||
depends FFMPEG_PATENTED
|
|
||||||
help
|
|
||||||
This options selects each of the FFmpeg's toggles to create a full build
|
|
||||||
of the libav* libraries. Note: This is a large binary and not suitable
|
|
||||||
for most users.
|
|
||||||
|
|
||||||
config FFMPEG_BSFS
|
|
||||||
bool "Toggle for FFmpeg's bitstream filter support"
|
|
||||||
|
|
||||||
config FFMPEG_DECODE
|
|
||||||
bool "Toggle for FFmpeg's decoder/demuxer support"
|
|
||||||
depends FFMPEG_PATENTED
|
|
||||||
|
|
||||||
config FFMPEG_ENCODE
|
|
||||||
bool "Toggle for FFmpeg's encoder/muxer support"
|
|
||||||
depends FFMPEG_PATENTED
|
|
||||||
|
|
||||||
config FFMPEG_FILTERS
|
|
||||||
bool "Toggle for FFmpeg's video processing filter support"
|
|
||||||
|
|
||||||
config FFMPEG_INDEVS
|
|
||||||
bool "Toggle for FFmpeg's input device (camera, etc) support"
|
|
||||||
|
|
||||||
config FFMPEG_OUTDEVS
|
|
||||||
bool "Toggle for FFmpeg's output device support"
|
|
||||||
|
|
||||||
config FFMPEG_HWACCELS
|
|
||||||
bool "Toggle for FFmpeg's video hardware acceleration support"
|
|
||||||
|
|
||||||
config FFMPEG_PARSERS
|
|
||||||
bool "Toggle for FFmpeg's stream parsing support"
|
|
||||||
|
|
||||||
config FFMPEG_PROTOCOLS
|
|
||||||
bool "Toggle for FFmpeg's protocol support"
|
|
||||||
|
|
||||||
config FFMPEG_PATENTED
|
|
||||||
bool "Include patented codecs and technologies"
|
bool "Include patented codecs and technologies"
|
||||||
default BUILD_PATENTED
|
default BUILD_PATENTED
|
||||||
|
|
||||||
comment "Package Profiles ---"
|
comment "Profiles ---"
|
||||||
|
|
||||||
config FFMPEG_FFSERVER_SUPPORT
|
config FFMPEG_CUSTOM_FFSERVER_SUPPORT
|
||||||
bool "Include support for ffserver (FFmpeg streaming server)"
|
bool "Include support for ffserver (FFmpeg streaming server)"
|
||||||
select FFMPEG_MUXER_ffm
|
select FFMPEG_CUSTOM_MUXER_ffm
|
||||||
select FFMPEG_DEMUXER_ffm
|
select FFMPEG_CUSTOM_DEMUXER_ffm
|
||||||
select FFMPEG_DEMUXER_rtsp
|
select FFMPEG_CUSTOM_DEMUXER_rtsp
|
||||||
select FFMPEG_PROTOCOL_rtp
|
select FFMPEG_CUSTOM_PROTOCOL_rtp
|
||||||
|
|
||||||
config FFMPEG_LIBDLNA_SUPPORT
|
config FFMPEG_CUSTOM_LIBDLNA_SUPPORT
|
||||||
bool "Include support for libdlna/ushare"
|
bool "Include support for libdlna/ushare"
|
||||||
depends FFMPEG_PATENTED
|
depends FFMPEG_CUSTOM_PATENTED
|
||||||
select FFMPEG_DECODER_ac3
|
select FFMPEG_CUSTOM_DECODER_ac3
|
||||||
select FFMPEG_DECODER_atrac3
|
select FFMPEG_CUSTOM_DECODER_atrac3
|
||||||
select FFMPEG_DECODER_h264
|
select FFMPEG_CUSTOM_DECODER_h264
|
||||||
select FFMPEG_DECODER_jpegls
|
select FFMPEG_CUSTOM_DECODER_jpegls
|
||||||
select FFMPEG_DECODER_mp3
|
select FFMPEG_CUSTOM_DECODER_mp3
|
||||||
select FFMPEG_DECODER_mpeg1video
|
select FFMPEG_CUSTOM_DECODER_mpeg1video
|
||||||
select FFMPEG_DECODER_mpeg2video
|
select FFMPEG_CUSTOM_DECODER_mpeg2video
|
||||||
select FFMPEG_DECODER_mpeg4
|
select FFMPEG_CUSTOM_DECODER_mpeg4
|
||||||
select FFMPEG_DECODER_mpegvideo
|
select FFMPEG_CUSTOM_DECODER_mpegvideo
|
||||||
select FFMPEG_DECODER_wmav1
|
select FFMPEG_CUSTOM_DECODER_wmav1
|
||||||
select FFMPEG_DECODER_wmav2
|
select FFMPEG_CUSTOM_DECODER_wmav2
|
||||||
select FFMPEG_DECODER_png
|
select FFMPEG_CUSTOM_DECODER_png
|
||||||
select FFMPEG_DEMUXER_ac3
|
select FFMPEG_CUSTOM_DEMUXER_ac3
|
||||||
select FFMPEG_DEMUXER_h264
|
select FFMPEG_CUSTOM_DEMUXER_h264
|
||||||
select FFMPEG_DEMUXER_mp3
|
select FFMPEG_CUSTOM_DEMUXER_mp3
|
||||||
select FFMPEG_DEMUXER_mpegvideo
|
select FFMPEG_CUSTOM_DEMUXER_mpegvideo
|
||||||
|
|
||||||
config FFMPEG_MINIDLNA_SUPPORT
|
config FFMPEG_CUSTOM_MINIDLNA_SUPPORT
|
||||||
bool "Include support for minidlna"
|
bool "Include support for minidlna"
|
||||||
depends FFMPEG_PATENTED
|
depends FFMPEG_CUSTOM_PATENTED
|
||||||
select FFMPEG_DECODER_aac
|
select FFMPEG_CUSTOM_DECODER_aac
|
||||||
select FFMPEG_DECODER_ac3
|
select FFMPEG_CUSTOM_DECODER_ac3
|
||||||
select FFMPEG_DECODER_flac
|
select FFMPEG_CUSTOM_DECODER_flac
|
||||||
select FFMPEG_DECODER_h264
|
select FFMPEG_CUSTOM_DECODER_h264
|
||||||
select FFMPEG_DECODER_jpegls
|
select FFMPEG_CUSTOM_DECODER_jpegls
|
||||||
select FFMPEG_DECODER_mp3
|
select FFMPEG_CUSTOM_DECODER_mp3
|
||||||
select FFMPEG_DECODER_mpeg1video
|
select FFMPEG_CUSTOM_DECODER_mpeg1video
|
||||||
select FFMPEG_DECODER_mpeg2video
|
select FFMPEG_CUSTOM_DECODER_mpeg2video
|
||||||
select FFMPEG_DECODER_mpeg4
|
select FFMPEG_CUSTOM_DECODER_mpeg4
|
||||||
select FFMPEG_DECODER_mpegvideo
|
select FFMPEG_CUSTOM_DECODER_mpegvideo
|
||||||
select FFMPEG_DECODER_wmav1
|
select FFMPEG_CUSTOM_DECODER_wmav1
|
||||||
select FFMPEG_DECODER_wmav2
|
select FFMPEG_CUSTOM_DECODER_wmav2
|
||||||
select FFMPEG_DECODER_png
|
select FFMPEG_CUSTOM_DECODER_png
|
||||||
select FFMPEG_DEMUXER_aac
|
select FFMPEG_CUSTOM_DEMUXER_aac
|
||||||
select FFMPEG_DEMUXER_ac3
|
select FFMPEG_CUSTOM_DEMUXER_ac3
|
||||||
select FFMPEG_DEMUXER_avi
|
select FFMPEG_CUSTOM_DEMUXER_avi
|
||||||
select FFMPEG_DEMUXER_flac
|
select FFMPEG_CUSTOM_DEMUXER_flac
|
||||||
select FFMPEG_DEMUXER_h264
|
select FFMPEG_CUSTOM_DEMUXER_h264
|
||||||
select FFMPEG_DEMUXER_matroska
|
select FFMPEG_CUSTOM_DEMUXER_matroska
|
||||||
select FFMPEG_DEMUXER_mov
|
select FFMPEG_CUSTOM_DEMUXER_mov
|
||||||
select FFMPEG_DEMUXER_mp3
|
select FFMPEG_CUSTOM_DEMUXER_mp3
|
||||||
select FFMPEG_DEMUXER_mpegvideo
|
select FFMPEG_CUSTOM_DEMUXER_mpegvideo
|
||||||
select FFMPEG_PROTOCOL_file
|
select FFMPEG_CUSTOM_PROTOCOL_file
|
||||||
|
|
||||||
comment "Encoders ---"
|
comment "Encoders ---"
|
||||||
|
|
||||||
config FFMPEG_ENCODER_ac3
|
config FFMPEG_CUSTOM_ENCODER_ac3
|
||||||
bool "AC3"
|
bool "AC3"
|
||||||
depends FFMPEG_PATENTED
|
depends FFMPEG_CUSTOM_PATENTED
|
||||||
select FFMPEG_PARSER_ac3
|
select FFMPEG_CUSTOM_PARSER_ac3
|
||||||
|
|
||||||
config FFMPEG_ENCODER_jpegls
|
config FFMPEG_CUSTOM_ENCODER_jpegls
|
||||||
bool "JPEG-LS"
|
bool "JPEG-LS"
|
||||||
|
|
||||||
config FFMPEG_ENCODER_mpeg1video
|
config FFMPEG_CUSTOM_ENCODER_mpeg1video
|
||||||
bool "MPEG-1 Video"
|
bool "MPEG-1 Video"
|
||||||
|
|
||||||
config FFMPEG_ENCODER_mpeg2video
|
config FFMPEG_CUSTOM_ENCODER_mpeg2video
|
||||||
bool "MPEG-2 Video"
|
bool "MPEG-2 Video"
|
||||||
depends FFMPEG_PATENTED
|
depends FFMPEG_CUSTOM_PATENTED
|
||||||
|
|
||||||
config FFMPEG_ENCODER_mpeg4
|
config FFMPEG_CUSTOM_ENCODER_mpeg4
|
||||||
bool "MPEG-4"
|
bool "MPEG-4"
|
||||||
depends FFMPEG_PATENTED
|
depends FFMPEG_CUSTOM_PATENTED
|
||||||
|
|
||||||
config FFMPEG_ENCODER_pcm_s16be
|
config FFMPEG_CUSTOM_ENCODER_pcm_s16be
|
||||||
bool "PCM signed 16-bit big-endian"
|
bool "PCM signed 16-bit big-endian"
|
||||||
|
|
||||||
config FFMPEG_ENCODER_pcm_s16le
|
config FFMPEG_CUSTOM_ENCODER_pcm_s16le
|
||||||
bool "PCM signed 16-bit little-endian"
|
bool "PCM signed 16-bit little-endian"
|
||||||
|
|
||||||
config FFMPEG_ENCODER_png
|
config FFMPEG_CUSTOM_ENCODER_png
|
||||||
bool "PNG"
|
bool "PNG"
|
||||||
select FFMPEG_ENCODER_zlib
|
select FFMPEG_CUSTOM_ENCODER_zlib
|
||||||
|
|
||||||
config FFMPEG_ENCODER_vorbis
|
config FFMPEG_CUSTOM_ENCODER_vorbis
|
||||||
bool "Vorbis"
|
bool "Vorbis"
|
||||||
|
|
||||||
config FFMPEG_ENCODER_zlib
|
config FFMPEG_CUSTOM_ENCODER_zlib
|
||||||
bool "Zlib"
|
bool "Zlib"
|
||||||
|
|
||||||
comment "Decoders ---"
|
comment "Decoders ---"
|
||||||
|
|
||||||
config FFMPEG_DECODER_aac
|
config FFMPEG_CUSTOM_DECODER_aac
|
||||||
bool "AAC (Advanced Audio Coding)"
|
bool "AAC (Advanced Audio Coding)"
|
||||||
depends FFMPEG_PATENTED
|
depends FFMPEG_CUSTOM_PATENTED
|
||||||
select FFMPEG_PARSER_aac
|
select FFMPEG_CUSTOM_PARSER_aac
|
||||||
|
|
||||||
config FFMPEG_DECODER_ac3
|
config FFMPEG_CUSTOM_DECODER_ac3
|
||||||
bool "AC3"
|
bool "AC3"
|
||||||
depends FFMPEG_PATENTED
|
depends FFMPEG_CUSTOM_PATENTED
|
||||||
select FFMPEG_PARSER_ac3
|
select FFMPEG_CUSTOM_PARSER_ac3
|
||||||
|
|
||||||
config FFMPEG_DECODER_atrac3
|
config FFMPEG_CUSTOM_DECODER_atrac3
|
||||||
bool "ATRAC3"
|
bool "ATRAC3"
|
||||||
depends FFMPEG_PATENTED
|
depends FFMPEG_CUSTOM_PATENTED
|
||||||
|
|
||||||
config FFMPEG_DECODER_flac
|
config FFMPEG_CUSTOM_DECODER_flac
|
||||||
bool "FLAC"
|
bool "FLAC"
|
||||||
|
|
||||||
config FFMPEG_DECODER_gif
|
config FFMPEG_CUSTOM_DECODER_gif
|
||||||
bool "GIF"
|
bool "GIF"
|
||||||
|
|
||||||
config FFMPEG_DECODER_h264
|
config FFMPEG_CUSTOM_DECODER_h264
|
||||||
bool "H.264"
|
bool "H.264"
|
||||||
depends FFMPEG_PATENTED
|
depends FFMPEG_CUSTOM_PATENTED
|
||||||
|
|
||||||
config FFMPEG_DECODER_jpegls
|
config FFMPEG_CUSTOM_DECODER_jpegls
|
||||||
bool "JPEG-LS"
|
bool "JPEG-LS"
|
||||||
|
|
||||||
config FFMPEG_DECODER_mp2
|
config FFMPEG_CUSTOM_DECODER_mp2
|
||||||
bool "MP2 (MPEG Audio Layer 2)"
|
bool "MP2 (MPEG Audio Layer 2)"
|
||||||
depends FFMPEG_PATENTED
|
depends FFMPEG_CUSTOM_PATENTED
|
||||||
|
|
||||||
config FFMPEG_DECODER_mp3
|
config FFMPEG_CUSTOM_DECODER_mp3
|
||||||
bool "MP3 (MPEG Audio Layer 2)"
|
bool "MP3 (MPEG Audio Layer 2)"
|
||||||
depends FFMPEG_PATENTED
|
depends FFMPEG_CUSTOM_PATENTED
|
||||||
|
|
||||||
config FFMPEG_DECODER_mpegvideo
|
config FFMPEG_CUSTOM_DECODER_mpegvideo
|
||||||
bool "MPEG Video"
|
bool "MPEG Video"
|
||||||
|
|
||||||
config FFMPEG_DECODER_mpeg1video
|
config FFMPEG_CUSTOM_DECODER_mpeg1video
|
||||||
bool "MPEG-1 Video"
|
bool "MPEG-1 Video"
|
||||||
|
|
||||||
config FFMPEG_DECODER_mpeg2video
|
config FFMPEG_CUSTOM_DECODER_mpeg2video
|
||||||
bool "MPEG-2 Video"
|
bool "MPEG-2 Video"
|
||||||
depends FFMPEG_PATENTED
|
depends FFMPEG_CUSTOM_PATENTED
|
||||||
|
|
||||||
config FFMPEG_DECODER_mpeg4
|
config FFMPEG_CUSTOM_DECODER_mpeg4
|
||||||
bool "MPEG-4"
|
bool "MPEG-4"
|
||||||
depends FFMPEG_PATENTED
|
depends FFMPEG_CUSTOM_PATENTED
|
||||||
|
|
||||||
config FFMPEG_DECODER_pcm_s16be
|
config FFMPEG_CUSTOM_DECODER_pcm_s16be
|
||||||
bool "PCM signed 16-bit big-endian"
|
bool "PCM signed 16-bit big-endian"
|
||||||
|
|
||||||
config FFMPEG_DECODER_pcm_s16le
|
config FFMPEG_CUSTOM_DECODER_pcm_s16le
|
||||||
bool "PCM signed 16-bit little-endian"
|
bool "PCM signed 16-bit little-endian"
|
||||||
|
|
||||||
config FFMPEG_DECODER_png
|
config FFMPEG_CUSTOM_DECODER_png
|
||||||
bool "PNG"
|
bool "PNG"
|
||||||
select FFMPEG_DECODER_zlib
|
select FFMPEG_CUSTOM_DECODER_zlib
|
||||||
|
|
||||||
config FFMPEG_DECODER_vorbis
|
config FFMPEG_CUSTOM_DECODER_vorbis
|
||||||
bool "Vorbis"
|
bool "Vorbis"
|
||||||
|
|
||||||
config FFMPEG_DECODER_wmav1
|
config FFMPEG_CUSTOM_DECODER_wmav1
|
||||||
bool "WMAv1"
|
bool "WMAv1"
|
||||||
depends FFMPEG_PATENTED
|
depends FFMPEG_CUSTOM_PATENTED
|
||||||
|
|
||||||
config FFMPEG_DECODER_wmav2
|
config FFMPEG_CUSTOM_DECODER_wmav2
|
||||||
bool "WMAv2"
|
bool "WMAv2"
|
||||||
depends FFMPEG_PATENTED
|
depends FFMPEG_CUSTOM_PATENTED
|
||||||
|
|
||||||
config FFMPEG_DECODER_zlib
|
config FFMPEG_CUSTOM_DECODER_zlib
|
||||||
bool "Zlib"
|
bool "Zlib"
|
||||||
|
|
||||||
comment "Muxers ---"
|
comment "Muxers ---"
|
||||||
|
|
||||||
config FFMPEG_MUXER_ac3
|
config FFMPEG_CUSTOM_MUXER_ac3
|
||||||
bool "AC3"
|
bool "AC3"
|
||||||
depends FFMPEG_PATENTED
|
depends FFMPEG_CUSTOM_PATENTED
|
||||||
|
|
||||||
config FFMPEG_MUXER_ffm
|
config FFMPEG_CUSTOM_MUXER_ffm
|
||||||
bool "FFM (ffserver live feed)"
|
bool "FFM (ffserver live feed)"
|
||||||
|
|
||||||
config FFMPEG_MUXER_h264
|
config FFMPEG_CUSTOM_MUXER_h264
|
||||||
bool "H.264"
|
bool "H.264"
|
||||||
depends FFMPEG_PATENTED
|
depends FFMPEG_CUSTOM_PATENTED
|
||||||
|
|
||||||
config FFMPEG_MUXER_mp3
|
config FFMPEG_CUSTOM_MUXER_mp3
|
||||||
bool "MP3 (MPEG Audio Layer 3)"
|
bool "MP3 (MPEG Audio Layer 3)"
|
||||||
|
|
||||||
config FFMPEG_MUXER_mp4
|
config FFMPEG_CUSTOM_MUXER_mp4
|
||||||
bool "MP4"
|
bool "MP4"
|
||||||
|
|
||||||
config FFMPEG_MUXER_mpeg1video
|
config FFMPEG_CUSTOM_MUXER_mpeg1video
|
||||||
bool "MPEG-1 Video"
|
bool "MPEG-1 Video"
|
||||||
|
|
||||||
config FFMPEG_MUXER_mpeg2video
|
config FFMPEG_CUSTOM_MUXER_mpeg2video
|
||||||
bool "MPEG-2 Video"
|
bool "MPEG-2 Video"
|
||||||
|
|
||||||
config FFMPEG_MUXER_mpegts
|
config FFMPEG_CUSTOM_MUXER_mpegts
|
||||||
bool "MPEG-2 (TS)"
|
bool "MPEG-2 (TS)"
|
||||||
|
|
||||||
config FFMPEG_MUXER_ogg
|
config FFMPEG_CUSTOM_MUXER_ogg
|
||||||
bool "Ogg"
|
bool "Ogg"
|
||||||
|
|
||||||
config FFMPEG_MUXER_rtp
|
config FFMPEG_CUSTOM_MUXER_rtp
|
||||||
bool "RTP"
|
bool "RTP"
|
||||||
|
|
||||||
comment "Demuxers ---"
|
comment "Demuxers ---"
|
||||||
|
|
||||||
config FFMPEG_DEMUXER_aac
|
config FFMPEG_CUSTOM_DEMUXER_aac
|
||||||
bool "AAC"
|
bool "AAC"
|
||||||
|
|
||||||
config FFMPEG_DEMUXER_avi
|
config FFMPEG_CUSTOM_DEMUXER_avi
|
||||||
bool "AVI (Audio Video Interleave)"
|
bool "AVI (Audio Video Interleave)"
|
||||||
|
|
||||||
config FFMPEG_DEMUXER_ac3
|
config FFMPEG_CUSTOM_DEMUXER_ac3
|
||||||
bool "AC3"
|
bool "AC3"
|
||||||
|
|
||||||
config FFMPEG_DEMUXER_flac
|
config FFMPEG_CUSTOM_DEMUXER_flac
|
||||||
bool "FLAC"
|
bool "FLAC"
|
||||||
|
|
||||||
config FFMPEG_DEMUXER_ffm
|
config FFMPEG_CUSTOM_DEMUXER_ffm
|
||||||
bool "FFM (ffserver live feed)"
|
bool "FFM (ffserver live feed)"
|
||||||
|
|
||||||
config FFMPEG_DEMUXER_h264
|
config FFMPEG_CUSTOM_DEMUXER_h264
|
||||||
bool "H.264"
|
bool "H.264"
|
||||||
depends FFMPEG_PATENTED
|
depends FFMPEG_CUSTOM_PATENTED
|
||||||
|
|
||||||
config FFMPEG_DEMUXER_matroska
|
config FFMPEG_CUSTOM_DEMUXER_matroska
|
||||||
bool "Matroska (MKA,MKV)"
|
bool "Matroska (MKA,MKV)"
|
||||||
select FFMPEG_DECODER_zlib
|
select FFMPEG_CUSTOM_DECODER_zlib
|
||||||
|
|
||||||
config FFMPEG_DEMUXER_mov
|
config FFMPEG_CUSTOM_DEMUXER_mov
|
||||||
bool "MOV/MP4/M4A/3GP/3G2/MJ2"
|
bool "MOV/MP4/M4A/3GP/3G2/MJ2"
|
||||||
select FFMPEG_DECODER_zlib
|
select FFMPEG_CUSTOM_DECODER_zlib
|
||||||
|
|
||||||
config FFMPEG_DEMUXER_mp3
|
config FFMPEG_CUSTOM_DEMUXER_mp3
|
||||||
bool "MP3 (MPEG Audio Layer 3)"
|
bool "MP3 (MPEG Audio Layer 3)"
|
||||||
select FFMPEG_PARSER_mpegaudio
|
select FFMPEG_CUSTOM_PARSER_mpegaudio
|
||||||
|
|
||||||
config FFMPEG_DEMUXER_mpegvideo
|
config FFMPEG_CUSTOM_DEMUXER_mpegvideo
|
||||||
bool "MPEG Video"
|
bool "MPEG Video"
|
||||||
|
|
||||||
config FFMPEG_DEMUXER_mpegps
|
config FFMPEG_CUSTOM_DEMUXER_mpegps
|
||||||
bool "MPEG-2 (PS)"
|
bool "MPEG-2 (PS)"
|
||||||
|
|
||||||
config FFMPEG_DEMUXER_mpegts
|
config FFMPEG_CUSTOM_DEMUXER_mpegts
|
||||||
bool "MPEG-2 (TS)"
|
bool "MPEG-2 (TS)"
|
||||||
|
|
||||||
config FFMPEG_DEMUXER_ogg
|
config FFMPEG_CUSTOM_DEMUXER_ogg
|
||||||
bool "Ogg"
|
bool "Ogg"
|
||||||
|
|
||||||
config FFMPEG_DEMUXER_rm
|
config FFMPEG_CUSTOM_DEMUXER_rm
|
||||||
bool "RM"
|
bool "RM"
|
||||||
help
|
help
|
||||||
RealMedia format demuxer
|
RealMedia format demuxer
|
||||||
|
|
||||||
config FFMPEG_DEMUXER_rtsp
|
config FFMPEG_CUSTOM_DEMUXER_rtsp
|
||||||
bool "RTSP"
|
bool "RTSP"
|
||||||
select FFMPEG_DEMUXER_rm
|
select FFMPEG_CUSTOM_DEMUXER_rm
|
||||||
select FFMPEG_DEMUXER_sdp
|
select FFMPEG_CUSTOM_DEMUXER_sdp
|
||||||
|
|
||||||
config FFMPEG_DEMUXER_sdp
|
config FFMPEG_CUSTOM_DEMUXER_sdp
|
||||||
bool "SDP"
|
bool "SDP"
|
||||||
select FFMPEG_DEMUXER_mpegts
|
select FFMPEG_CUSTOM_DEMUXER_mpegts
|
||||||
|
|
||||||
comment "Parsers ---"
|
comment "Parsers ---"
|
||||||
|
|
||||||
config FFMPEG_PARSER_aac
|
config FFMPEG_CUSTOM_PARSER_aac
|
||||||
bool "AAC (Advanced Audio Coding)"
|
bool "AAC (Advanced Audio Coding)"
|
||||||
depends FFMPEG_PATENTED
|
depends FFMPEG_CUSTOM_PATENTED
|
||||||
|
|
||||||
config FFMPEG_PARSER_ac3
|
config FFMPEG_CUSTOM_PARSER_ac3
|
||||||
bool "AC3"
|
bool "AC3"
|
||||||
|
|
||||||
config FFMPEG_PARSER_h264
|
config FFMPEG_CUSTOM_PARSER_h264
|
||||||
bool "H.264"
|
bool "H.264"
|
||||||
depends FFMPEG_PATENTED
|
depends FFMPEG_CUSTOM_PATENTED
|
||||||
select FFMPEG_DECODER_h264
|
select FFMPEG_CUSTOM_DECODER_h264
|
||||||
|
|
||||||
config FFMPEG_PARSER_mpegaudio
|
config FFMPEG_CUSTOM_PARSER_mpegaudio
|
||||||
bool "MPEG Audio"
|
bool "MPEG Audio"
|
||||||
|
|
||||||
config FFMPEG_PARSER_mpegvideo
|
config FFMPEG_CUSTOM_PARSER_mpegvideo
|
||||||
bool "MPEG Video"
|
bool "MPEG Video"
|
||||||
|
|
||||||
config FFMPEG_PARSER_mpeg4video
|
config FFMPEG_CUSTOM_PARSER_mpeg4video
|
||||||
bool "MPEG-4 Video"
|
bool "MPEG-4 Video"
|
||||||
|
|
||||||
comment "Protocols ---"
|
comment "Protocols ---"
|
||||||
|
|
||||||
config FFMPEG_PROTOCOL_file
|
config FFMPEG_CUSTOM_PROTOCOL_file
|
||||||
bool "file:"
|
bool "file:"
|
||||||
|
|
||||||
config FFMPEG_PROTOCOL_http
|
config FFMPEG_CUSTOM_PROTOCOL_http
|
||||||
bool "http:"
|
bool "http:"
|
||||||
|
|
||||||
config FFMPEG_PROTOCOL_pipe
|
config FFMPEG_CUSTOM_PROTOCOL_pipe
|
||||||
bool "pipe:"
|
bool "pipe:"
|
||||||
|
|
||||||
config FFMPEG_PROTOCOL_rtp
|
config FFMPEG_CUSTOM_PROTOCOL_rtp
|
||||||
bool "rtp:"
|
bool "rtp:"
|
||||||
select FFMPEG_PROTOCOL_udp
|
select FFMPEG_CUSTOM_PROTOCOL_udp
|
||||||
|
|
||||||
config FFMPEG_PROTOCOL_tcp
|
config FFMPEG_CUSTOM_PROTOCOL_tcp
|
||||||
bool "tcp:"
|
bool "tcp:"
|
||||||
|
|
||||||
config FFMPEG_PROTOCOL_udp
|
config FFMPEG_CUSTOM_PROTOCOL_udp
|
||||||
bool "udp:"
|
bool "udp:"
|
||||||
|
|
||||||
endmenu
|
endmenu
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
|||||||
PKG_SOURCE_URL:=http://ffmpeg.org/releases/
|
PKG_SOURCE_URL:=http://ffmpeg.org/releases/
|
||||||
PKG_MD5SUM:=967d481c98161582d149aced6e3b2f31
|
PKG_MD5SUM:=967d481c98161582d149aced6e3b2f31
|
||||||
|
|
||||||
FFMPEG_ENCODERS:= \
|
FFMPEG_CUSTOM_ENCODERS:= \
|
||||||
ac3 \
|
ac3 \
|
||||||
jpegls \
|
jpegls \
|
||||||
mpeg1video \
|
mpeg1video \
|
||||||
@ -27,7 +27,7 @@ FFMPEG_ENCODERS:= \
|
|||||||
vorbis \
|
vorbis \
|
||||||
zlib \
|
zlib \
|
||||||
|
|
||||||
FFMPEG_DECODERS:= \
|
FFMPEG_CUSTOM_DECODERS:= \
|
||||||
aac \
|
aac \
|
||||||
ac3 \
|
ac3 \
|
||||||
atrac3 \
|
atrac3 \
|
||||||
@ -49,7 +49,7 @@ FFMPEG_DECODERS:= \
|
|||||||
wmav2 \
|
wmav2 \
|
||||||
zlib \
|
zlib \
|
||||||
|
|
||||||
FFMPEG_MUXERS:= \
|
FFMPEG_CUSTOM_MUXERS:= \
|
||||||
ac3 \
|
ac3 \
|
||||||
ffm \
|
ffm \
|
||||||
h264 \
|
h264 \
|
||||||
@ -61,7 +61,7 @@ FFMPEG_MUXERS:= \
|
|||||||
ogg \
|
ogg \
|
||||||
rtp \
|
rtp \
|
||||||
|
|
||||||
FFMPEG_DEMUXERS:= \
|
FFMPEG_CUSTOM_DEMUXERS:= \
|
||||||
aac \
|
aac \
|
||||||
ac3 \
|
ac3 \
|
||||||
avi \
|
avi \
|
||||||
@ -80,7 +80,7 @@ FFMPEG_DEMUXERS:= \
|
|||||||
sdp \
|
sdp \
|
||||||
v4l2 \
|
v4l2 \
|
||||||
|
|
||||||
FFMPEG_PARSERS:= \
|
FFMPEG_CUSTOM_PARSERS:= \
|
||||||
aac \
|
aac \
|
||||||
ac3 \
|
ac3 \
|
||||||
h264 \
|
h264 \
|
||||||
@ -88,16 +88,66 @@ FFMPEG_PARSERS:= \
|
|||||||
mpeg4video \
|
mpeg4video \
|
||||||
mpegvideo \
|
mpegvideo \
|
||||||
|
|
||||||
FFMPEG_PROTOCOLS:= \
|
FFMPEG_CUSTOM_PROTOCOLS:= \
|
||||||
file http pipe rtp tcp udp
|
file http pipe rtp tcp udp
|
||||||
|
|
||||||
|
FFMPEG_MINI_ENCODERS:= \
|
||||||
|
|
||||||
|
FFMPEG_MINI_DECODERS:= \
|
||||||
|
aac \
|
||||||
|
ac3 \
|
||||||
|
atrac3 \
|
||||||
|
flac \
|
||||||
|
h263 \
|
||||||
|
h264 \
|
||||||
|
jpegls \
|
||||||
|
mp3 \
|
||||||
|
mpeg1video \
|
||||||
|
mpeg2video \
|
||||||
|
mpeg4 \
|
||||||
|
mpegvideo \
|
||||||
|
png \
|
||||||
|
wmav1 \
|
||||||
|
wmav2 \
|
||||||
|
|
||||||
|
FFMPEG_MINI_MUXERS:= \
|
||||||
|
ffm \
|
||||||
|
|
||||||
|
FFMPEG_MINI_DEMUXERS := \
|
||||||
|
aac \
|
||||||
|
ac3 \
|
||||||
|
asf \
|
||||||
|
avi \
|
||||||
|
ffm \
|
||||||
|
flac \
|
||||||
|
h264 \
|
||||||
|
matroska \
|
||||||
|
mov \
|
||||||
|
mp3 \
|
||||||
|
mpegts \
|
||||||
|
mpegvideo \
|
||||||
|
rtsp \
|
||||||
|
|
||||||
|
FFMPEG_MINI_PARSERS:= \
|
||||||
|
ac3 \
|
||||||
|
flac \
|
||||||
|
h263 \
|
||||||
|
h264 \
|
||||||
|
mpeg4video \
|
||||||
|
mpegaudio \
|
||||||
|
|
||||||
|
FFMPEG_MINI_PROTOCOLS := \
|
||||||
|
file http rtp tcp udp \
|
||||||
|
|
||||||
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(BUILD_VARIANT)/$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
|
||||||
PKG_CONFIG_DEPENDS:= \
|
PKG_CONFIG_DEPENDS:= \
|
||||||
$(patsubst %,CONFIG_FFMPEG_ENCODER_%,$(FFMPEG_ENCODERS)) \
|
$(patsubst %,CONFIG_FFMPEG_CUSTOM_ENCODER_%,$(FFMPEG_CUSTOM_ENCODERS)) \
|
||||||
$(patsubst %,CONFIG_FFMPEG_DECODER_%,$(FFMPEG_DECODERS)) \
|
$(patsubst %,CONFIG_FFMPEG_CUSTOM_DECODER_%,$(FFMPEG_CUSTOM_DECODERS)) \
|
||||||
$(patsubst %,CONFIG_FFMPEG_MUXER_%,$(FFMPEG_DEMUXERS)) \
|
$(patsubst %,CONFIG_FFMPEG_CUSTOM_MUXER_%,$(FFMPEG_CUSTOM_DEMUXERS)) \
|
||||||
$(patsubst %,CONFIG_FFMPEG_DEMUXER_%,$(FFMPEG_DEMUXERS)) \
|
$(patsubst %,CONFIG_FFMPEG_CUSTOM_DEMUXER_%,$(FFMPEG_CUSTOM_DEMUXERS)) \
|
||||||
$(patsubst %,CONFIG_FFMPEG_PARSER_%,$(FFMPEG_PARSERS)) \
|
$(patsubst %,CONFIG_FFMPEG_CUSTOM_PARSER_%,$(FFMPEG_CUSTOM_PARSERS)) \
|
||||||
$(patsubst %,CONFIG_FFMPEG_PROTOCOL_%,$(FFMPEG_PROTOCOLS))
|
$(patsubst %,CONFIG_FFMPEG_CUSTOM_PROTOCOL_%,$(FFMPEG_CUSTOM_PROTOCOLS))
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
@ -111,12 +161,14 @@ define Package/ffmpeg/Default/description
|
|||||||
audio and video in numerous formats.
|
audio and video in numerous formats.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
define Package/ffmpeg
|
define Package/ffmpeg
|
||||||
$(call Package/ffmpeg/Default)
|
$(call Package/ffmpeg/Default)
|
||||||
SECTION:=multimedia
|
SECTION:=multimedia
|
||||||
CATEGORY:=Multimedia
|
CATEGORY:=Multimedia
|
||||||
TITLE+= program
|
TITLE+= program
|
||||||
DEPENDS+= +libpthread +libffmpeg +libpostproc +libswscale
|
DEPENDS+= +libpthread +libffmpeg
|
||||||
|
VARIANT:=full
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/ffmpeg/description
|
define Package/ffmpeg/description
|
||||||
@ -125,12 +177,14 @@ $(call Package/ffmpeg/Default/description)
|
|||||||
This package contains the FFmpeg command line tool.
|
This package contains the FFmpeg command line tool.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
define Package/ffprobe
|
define Package/ffprobe
|
||||||
$(call Package/ffmpeg/Default)
|
$(call Package/ffmpeg/Default)
|
||||||
SECTION:=multimedia
|
SECTION:=multimedia
|
||||||
CATEGORY:=Multimedia
|
CATEGORY:=Multimedia
|
||||||
TITLE+= CLI media identifier
|
TITLE+= CLI media identifier
|
||||||
DEPENDS+= +libffmpeg
|
DEPENDS+= +libffmpeg
|
||||||
|
VARIANT:=full
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/ffprobe/description
|
define Package/ffprobe/description
|
||||||
@ -139,12 +193,14 @@ $(call Package/ffmpeg/Default/description)
|
|||||||
This package contains the FFprobe command line tool.
|
This package contains the FFprobe command line tool.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
|
||||||
define Package/ffserver
|
define Package/ffserver
|
||||||
$(call Package/ffserver/Default)
|
$(call Package/ffserver/Default)
|
||||||
SECTION:=multimedia
|
SECTION:=multimedia
|
||||||
CATEGORY:=Multimedia
|
CATEGORY:=Multimedia
|
||||||
TITLE+= streaming server
|
TITLE+= streaming server
|
||||||
DEPENDS+= +libpthread +libffmpeg +@FFMPEG_FFSERVER_SUPPORT
|
DEPENDS+= +libpthread +libffmpeg
|
||||||
|
VARIANT:=full
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/ffserver/description
|
define Package/ffserver/description
|
||||||
@ -153,114 +209,152 @@ $(call Package/ffmpeg/Default/description)
|
|||||||
This package contains the FFmpeg streaming server.
|
This package contains the FFmpeg streaming server.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/libffmpeg
|
|
||||||
|
define Package/libffmpeg/Default
|
||||||
$(call Package/ffmpeg/Default)
|
$(call Package/ffmpeg/Default)
|
||||||
SECTION:=libs
|
SECTION:=libs
|
||||||
CATEGORY:=Libraries
|
CATEGORY:=Libraries
|
||||||
TITLE+= libraries
|
TITLE+= libraries
|
||||||
DEPENDS+= +libpthread +zlib
|
DEPENDS+= +libpthread +zlib
|
||||||
|
PROVIDES:= libffmpeg
|
||||||
|
endef
|
||||||
|
|
||||||
|
|
||||||
|
define Package/libffmpeg-custom
|
||||||
|
$(call Package/libffmpeg/Default)
|
||||||
|
TITLE+= (mini)
|
||||||
|
DEPENDS+= @DEVEL
|
||||||
|
VARIANT:=custom
|
||||||
MENU:=1
|
MENU:=1
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/libffmpeg/config
|
define Package/libffmpeg-custom/config
|
||||||
source "$(SOURCE)/Config.in"
|
source "$(SOURCE)/Config.in"
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/libffmpeg/description
|
define Package/libffmpeg-custom/description
|
||||||
$(call Package/ffmpeg/Default/description)
|
$(call Package/ffmpeg/Default/description)
|
||||||
.
|
.
|
||||||
This package contains FFmpeg shared libraries.
|
This package contains customized FFmpeg shared libraries.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/libpostproc
|
|
||||||
$(call Package/ffmpeg/Default)
|
define Package/libffmpeg-full
|
||||||
SECTION:=libs
|
$(call Package/libffmpeg/Default)
|
||||||
CATEGORY:=Libraries
|
TITLE+= (full)
|
||||||
TITLE:=libpostproc
|
DEPENDS+= @BUILD_PATENTED +alsa-libs
|
||||||
DEPENDS+= +libffmpeg
|
VARIANT:=full
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/libswscale
|
define Package/libffmpeg-full/description
|
||||||
$(call Package/ffmpeg/Default)
|
$(call Package/ffmpeg/Default/description)
|
||||||
SECTION:=libs
|
.
|
||||||
CATEGORY:=Libraries
|
This package contains full-featured FFmpeg shared libraries.
|
||||||
TITLE:=libswscale
|
|
||||||
DEPENDS+= +libffmpeg
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
FILTER_CONFIG= \
|
|
||||||
$(foreach c, $(3), \
|
|
||||||
$(if $(CONFIG_FFMPEG_$(1)_$(c)),--enable-$(2)="$(c)") \
|
|
||||||
)
|
|
||||||
|
|
||||||
FFMPEG_CONFIGURE_ENCODERS:=$(call FILTER_CONFIG,ENCODER,encoder,$(FFMPEG_ENCODERS))
|
define Package/libffmpeg-mini
|
||||||
FFMPEG_CONFIGURE_DECODERS:=$(call FILTER_CONFIG,DECODER,decoder,$(FFMPEG_DECODERS))
|
$(call Package/libffmpeg/Default)
|
||||||
FFMPEG_CONFIGURE_MUXERS:=$(call FILTER_CONFIG,MUXER,muxer,$(FFMPEG_MUXERS))
|
TITLE+= (mini)
|
||||||
FFMPEG_CONFIGURE_DEMUXERS:=$(call FILTER_CONFIG,DEMUXER,demuxer,$(FFMPEG_DEMUXERS))
|
DEPENDS+= @BUILD_PATENTED
|
||||||
FFMPEG_CONFIGURE_PARSERS:=$(call FILTER_CONFIG,PARSER,parser,$(FFMPEG_PARSERS))
|
VARIANT:=mini
|
||||||
FFMPEG_CONFIGURE_PROTOCOLS:=$(call FILTER_CONFIG,PROTOCOL,protocol,$(FFMPEG_PROTOCOLS))
|
endef
|
||||||
|
|
||||||
|
define Package/libffmpeg-mini/description
|
||||||
|
$(call Package/ffmpeg/Default/description)
|
||||||
|
.
|
||||||
|
This package contains minimal-featured FFmpeg shared libraries.
|
||||||
|
endef
|
||||||
|
|
||||||
ifneq ($(CONFIG_TARGET_x86),)
|
|
||||||
TARGET_CFLAGS += -fomit-frame-pointer
|
|
||||||
endif
|
|
||||||
|
|
||||||
# XXX: add --disable-mmx & --disable-mmx2 to fix build failure on x86
|
# XXX: add --disable-mmx & --disable-mmx2 to fix build failure on x86
|
||||||
# libpostproc/postprocess_template.c:2195: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
|
# libpostproc/postprocess_template.c:2195: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
|
||||||
# libpostproc/postprocess_template.c:3124: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
|
# libpostproc/postprocess_template.c:3124: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
|
||||||
# libpostproc/postprocess_template.c:3207: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
|
# libpostproc/postprocess_template.c:3207: error: can't find a register in class 'GENERAL_REGS' while reloading 'asm'
|
||||||
|
|
||||||
define Build/Configure
|
FFMPEG_CONFIGURE:= \
|
||||||
# this is *NOT* GNU configure
|
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(FPIC)" \
|
||||||
( cd $(PKG_BUILD_DIR); \
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
||||||
CFLAGS="$(TARGET_CFLAGS) $(TARGET_CPPFLAGS) $(FPIC)" \
|
PKG_CONFIG="pkg-config" \
|
||||||
LDFLAGS="$(TARGET_LDFLAGS)" \
|
./configure \
|
||||||
./configure \
|
--enable-cross-compile \
|
||||||
--enable-cross-compile \
|
--cross-prefix="$(TARGET_CROSS)" \
|
||||||
--cross-prefix="$(TARGET_CROSS)" \
|
--arch="$(ARCH)" \
|
||||||
--arch="$(ARCH)" \
|
--target-os=linux \
|
||||||
--target-os=linux \
|
--prefix="/usr" \
|
||||||
--prefix="/usr" \
|
--enable-shared \
|
||||||
--enable-shared \
|
--enable-static \
|
||||||
--enable-static \
|
--disable-debug \
|
||||||
--disable-debug \
|
\
|
||||||
\
|
--enable-gpl \
|
||||||
--enable-gpl \
|
--enable-version3 \
|
||||||
--enable-version3 \
|
\
|
||||||
\
|
--disable-doc \
|
||||||
--disable-doc \
|
--disable-dxva2 \
|
||||||
--disable-dxva2 \
|
--disable-mmx \
|
||||||
--disable-mmx \
|
--disable-mmx2 \
|
||||||
--disable-mmx2 \
|
--enable-pthreads \
|
||||||
--enable-pthreads \
|
--disable-optimizations \
|
||||||
--disable-optimizations \
|
--enable-small \
|
||||||
--enable-small \
|
--disable-stripping \
|
||||||
--disable-stripping \
|
--enable-zlib \
|
||||||
--enable-zlib \
|
|
||||||
--enable-postproc \
|
ifeq ($(BUILD_VARIANT),custom)
|
||||||
--enable-swscale \
|
|
||||||
\
|
FFMPEG_ENABLE= \
|
||||||
$(if $(CONFIG_FFMPEG_BSFS),,--disable-bsfs) \
|
$(foreach c, $(2), \
|
||||||
$(if $(CONFIG_FFMPEG_OUTDEVS),,--disable-outdevs) \
|
$(if $($(3)_$(c)),--enable-$(1)="$(c)") \
|
||||||
$(if $(CONFIG_FFMPEG_INDEVS),,--disable-indevs) \
|
|
||||||
$(if $(CONFIG_FFMPEG_FILTERS),,--disable-filters) \
|
|
||||||
$(if $(CONFIG_FFMPEG_HWACCELS),,--disable-hwaccels) \
|
|
||||||
$(if $(CONFIG_FFMPEG_PARSERS),,--disable-parsers) \
|
|
||||||
$(if $(CONFIG_FFMPEG_PROTOCOLS),,--disable-protocols) \
|
|
||||||
$(if $(CONFIG_FFMPEG_ENCODE),,--disable-encoders --disable-muxers) \
|
|
||||||
$(if $(CONFIG_FFMPEG_DECODE),,--disable-decoders --disable-demuxers) \
|
|
||||||
$(FFMPEG_CONFIGURE_ENCODERS) \
|
|
||||||
$(FFMPEG_CONFIGURE_DECODERS) \
|
|
||||||
$(FFMPEG_CONFIGURE_MUXERS) \
|
|
||||||
$(FFMPEG_CONFIGURE_DEMUXERS) \
|
|
||||||
$(FFMPEG_CONFIGURE_PARSERS) \
|
|
||||||
$(FFMPEG_CONFIGURE_PROTOCOLS) \
|
|
||||||
\
|
|
||||||
$(if $(CONFIG_PACKAGE_ffmpeg),,--disable-ffmpeg) \
|
|
||||||
--disable-ffplay \
|
|
||||||
$(if $(CONFIG_PACKAGE_ffprobe),,--disable-ffprobe) \
|
|
||||||
$(if $(CONFIG_PACKAGE_ffserver),,--disable-ffserver) \
|
|
||||||
\
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
FFMPEG_CONFIGURE+= \
|
||||||
|
--disable-ffmpeg \
|
||||||
|
--disable-ffplay \
|
||||||
|
--disable-ffprobe \
|
||||||
|
--disable-ffserver \
|
||||||
|
--disable-avfilter \
|
||||||
|
--disable-postproc \
|
||||||
|
--disable-swscale \
|
||||||
|
--disable-everything \
|
||||||
|
$(call FFMPEG_ENABLE,encoder,$(FFMPEG_CUSTOM_ENCODERS),CONFIG_FFMPEG_ENCODER) \
|
||||||
|
$(call FFMPEG_ENABLE,decoder,$(FFMPEG_CUSTOM_DECODERS),CONFIG_FFMPEG_DECODER) \
|
||||||
|
$(call FFMPEG_ENABLE,muxer,$(FFMPEG_CUSTOM_MUXERS),CONFIG_FFMPEG_MUXER) \
|
||||||
|
$(call FFMPEG_ENABLE,demuxer,$(FFMPEG_CUSTOM_DEMUXERS),CONFIG_FFMPEG_DEMUXER) \
|
||||||
|
$(call FFMPEG_ENABLE,parser,$(FFMPEG_CUSTOM_PARSERS),CONFIG_FFMPEG_PARSER) \
|
||||||
|
$(call FFMPEG_ENABLE,protocol,$(FFMPEG_CUSTOM_PROTOCOLS),CONFIG_FFMPEG_PROTOCOL) \
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(BUILD_VARIANT),mini)
|
||||||
|
|
||||||
|
FFMPEG_ENABLE= \
|
||||||
|
$(foreach c, $(2), \
|
||||||
|
--enable-$(1)="$(c)" \
|
||||||
|
)
|
||||||
|
|
||||||
|
FFMPEG_CONFIGURE+= \
|
||||||
|
--disable-ffmpeg \
|
||||||
|
--disable-ffplay \
|
||||||
|
--disable-ffprobe \
|
||||||
|
--disable-ffserver \
|
||||||
|
--disable-avfilter \
|
||||||
|
--disable-postproc \
|
||||||
|
--disable-swscale \
|
||||||
|
--disable-everything \
|
||||||
|
$(call FFMPEG_ENABLE,encoder,$(FFMPEG_MINI_ENCODERS)) \
|
||||||
|
$(call FFMPEG_ENABLE,decoder,$(FFMPEG_MINI_DECODERS)) \
|
||||||
|
$(call FFMPEG_ENABLE,muxer,$(FFMPEG_MINI_MUXERS)) \
|
||||||
|
$(call FFMPEG_ENABLE,demuxer,$(FFMPEG_MINI_DEMUXERS)) \
|
||||||
|
$(call FFMPEG_ENABLE,parser,$(FFMPEG_MINI_PARSERS)) \
|
||||||
|
$(call FFMPEG_ENABLE,protocol,$(FFMPEG_MINI_PROTOCOLS)) \
|
||||||
|
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifneq ($(CONFIG_TARGET_x86),)
|
||||||
|
TARGET_CFLAGS += -fomit-frame-pointer
|
||||||
|
endif
|
||||||
|
|
||||||
|
define Build/Configure
|
||||||
|
( cd $(PKG_BUILD_DIR); $(FFMPEG_CONFIGURE) )
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
@ -269,20 +363,16 @@ define Build/Compile
|
|||||||
all install
|
all install
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/InstallDev
|
ifeq ($(BUILD_VARIANT),full)
|
||||||
|
define Build/InstallDev
|
||||||
$(INSTALL_DIR) $(1)/usr/include
|
$(INSTALL_DIR) $(1)/usr/include
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/libav{codec,device,format,util} $(1)/usr/include/
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/lib{avcodec,avdevice,avfilter,avformat,avutil,postproc,swscale} $(1)/usr/include/
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/libpostproc $(1)/usr/include/
|
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/include/libswscale $(1)/usr/include/
|
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libav{codec,device,format,util}.{a,so*} $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{avcodec,avdevice,avfilter,avformat,avutil,postproc,swscale}.{a,so*} $(1)/usr/lib/
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpostproc.{a,so*} $(1)/usr/lib/
|
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libswscale.{a,so*} $(1)/usr/lib/
|
|
||||||
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libav{codec,device,format,util}.pc $(1)/usr/lib/pkgconfig/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/lib{avcodec,avdevice,avfilter,avformat,avutil,postproc,swscale}.pc $(1)/usr/lib/pkgconfig/
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libpostproc.pc $(1)/usr/lib/pkgconfig/
|
endef
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libswscale.pc $(1)/usr/lib/pkgconfig/
|
endif
|
||||||
endef
|
|
||||||
|
|
||||||
define Package/ffmpeg/install
|
define Package/ffmpeg/install
|
||||||
$(INSTALL_DIR) $(1)/usr/bin
|
$(INSTALL_DIR) $(1)/usr/bin
|
||||||
@ -299,24 +389,24 @@ define Package/ffserver/install
|
|||||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/ffserver $(1)/usr/bin/
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/ffserver $(1)/usr/bin/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/libffmpeg/install
|
define Package/libffmpeg-custom/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libav{codec,device,format,util}.so.* $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{avcodec,avdevice,avformat,avutil}.so.* $(1)/usr/lib/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/libpostproc/install
|
define Package/libffmpeg-full/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libpostproc.so.* $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{avcodec,avdevice,avfilter,avformat,avutil,postproc,swscale}.so.* $(1)/usr/lib/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/libswscale/install
|
define Package/libffmpeg-mini/install
|
||||||
$(INSTALL_DIR) $(1)/usr/lib
|
$(INSTALL_DIR) $(1)/usr/lib
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libswscale.so.* $(1)/usr/lib/
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/lib{avcodec,avdevice,avformat,avutil}.so.* $(1)/usr/lib/
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,ffmpeg))
|
$(eval $(call BuildPackage,ffmpeg))
|
||||||
$(eval $(call BuildPackage,ffprobe))
|
$(eval $(call BuildPackage,ffprobe))
|
||||||
$(eval $(call BuildPackage,ffserver))
|
$(eval $(call BuildPackage,ffserver))
|
||||||
$(eval $(call BuildPackage,libffmpeg))
|
$(eval $(call BuildPackage,libffmpeg-custom))
|
||||||
$(eval $(call BuildPackage,libpostproc))
|
$(eval $(call BuildPackage,libffmpeg-full))
|
||||||
$(eval $(call BuildPackage,libswscale))
|
$(eval $(call BuildPackage,libffmpeg-mini))
|
||||||
|
@ -30,7 +30,7 @@ define Package/minidlna
|
|||||||
TITLE:=UPnP A/V & DLNA Media Server
|
TITLE:=UPnP A/V & DLNA Media Server
|
||||||
URL:=http://minidlna.sourceforge.net/
|
URL:=http://minidlna.sourceforge.net/
|
||||||
DEPENDS:= +libpthread +libexif +libjpeg +libsqlite3 +libffmpeg \
|
DEPENDS:= +libpthread +libexif +libjpeg +libsqlite3 +libffmpeg \
|
||||||
+@FFMPEG_MINIDLNA_SUPPORT +libid3tag +libflac +libvorbis +libuuid \
|
+libid3tag +libflac +libvorbis +libuuid \
|
||||||
$(ICONV_DEPENDS) $(INTL_DEPENDS)
|
$(ICONV_DEPENDS) $(INTL_DEPENDS)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user