Changeset 28323


Ignore:
Timestamp:
2011-09-30T14:48:57+02:00 (5 years ago)
Author:
florian
Message:

[package] ffmpeg: Allow for more configurable FFmpeg build options (#7837, #8465)

This patch allows broad control over FFmpeg's libav* build configuration
and fixes a typo in ffprobe's install section.

The patch resolves #7837 as the choice of building a full libav* is available.
This should also resolve #8465 as input devices such as cameras can be enabled.

The files created by a full libav* build will be large (several megabytes) and
not recommended for end users. Its use could help debugging other issues to
learn whether the problem is the openwrt build configuration or another cause.

Signed-off-by: Ian Leonard <antonlacon@…>

Location:
packages/multimedia/ffmpeg
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • packages/multimedia/ffmpeg/Config.in

    r28063 r28323  
    22        depends PACKAGE_libffmpeg 
    33 
     4comment "Libav* build options ---" 
     5 
     6config FFMPEG_LIBAV_FULL 
     7        bool "Toggle for full libav* support" 
     8        select FFMPEG_BSFS 
     9        select FFMPEG_DECODE 
     10        select FFMPEG_ENCODE 
     11        select FFMPEG_FILTERS 
     12        select FFMPEG_INDEVS 
     13        select FFMPEG_OUTDEVS 
     14        select FFMPEG_HWACCELS 
     15        select FFMPEG_PARSERS 
     16        select FFMPEG_PROTOCOLS 
     17        depends FFMPEG_PATENTED 
     18        help 
     19          This options selects each of the FFmpeg's toggles to create a full build 
     20          of the libav* libraries. Note: This is a large binary and not suitable 
     21          for most users. 
     22 
     23config FFMPEG_BSFS 
     24        bool "Toggle for FFmpeg's bitstream filter support" 
     25 
     26config FFMPEG_DECODE 
     27        bool "Toggle for FFmpeg's decoder/demuxer support" 
     28        depends FFMPEG_PATENTED 
     29 
    430config FFMPEG_ENCODE 
    5         bool "Big Toggle for FFmpeg's encoder/muxer support" 
    6         depends FFMPEG_PATENTED 
    7  
    8 config FFMPEG_DECODE 
    9         bool "Big Toggle for FFmpeg's decoder/demuxer support" 
    10         depends FFMPEG_PATENTED 
     31        bool "Toggle for FFmpeg's encoder/muxer support" 
     32        depends FFMPEG_PATENTED 
     33 
     34config FFMPEG_FILTERS 
     35        bool "Toggle for FFmpeg's video processing filter support" 
     36 
     37config FFMPEG_INDEVS 
     38        bool "Toggle for FFmpeg's input device (camera, etc) support" 
     39 
     40config FFMPEG_OUTDEVS 
     41        bool "Toggle for FFmpeg's output device support" 
     42 
     43config FFMPEG_HWACCELS 
     44        bool "Toggle for FFmpeg's video hardware acceleration support" 
     45 
     46config FFMPEG_PARSERS 
     47        bool "Toggle for FFmpeg's stream parsing support" 
     48 
     49config FFMPEG_PROTOCOLS 
     50        bool "Toggle for FFmpeg's protocol support" 
    1151 
    1252config FFMPEG_PATENTED 
    1353        bool "Include patented codecs and technologies" 
    1454        default BUILD_PATENTED 
     55 
     56comment "Package Profiles ---" 
    1557 
    1658config FFMPEG_FFSERVER_SUPPORT 
  • packages/multimedia/ffmpeg/Makefile

    r28101 r28323  
    1010PKG_NAME:=ffmpeg 
    1111PKG_VERSION:=0.8.2 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 
     
    240240                --enable-swscale \ 
    241241                \ 
    242                 --disable-bsfs \ 
    243                 --disable-devices \ 
    244                 --disable-filters \ 
    245                 --disable-hwaccels \ 
    246                 --disable-parsers \ 
    247                 --disable-protocols \ 
     242                $(if $(CONFIG_FFMPEG_BSFS),,--disable-bsfs) \ 
     243                $(if $(CONFIG_FFMPEG_OUTDEVS),,--disable-outdevs) \ 
     244                $(if $(CONFIG_FFMPEG_INDEVS),,--disable-indevs) \ 
     245                $(if $(CONFIG_FFMPEG_FILTERS),,--disable-filters) \ 
     246                $(if $(CONFIG_FFMPEG_HWACCELS),,--disable-hwaccels) \ 
     247                $(if $(CONFIG_FFMPEG_PARSERS),,--disable-parsers) \ 
     248                $(if $(CONFIG_FFMPEG_PROTOCOLS),,--disable-protocols) \ 
    248249                $(if $(CONFIG_FFMPEG_ENCODE),,--disable-encoders --disable-muxers) \ 
    249250                $(if $(CONFIG_FFMPEG_DECODE),,--disable-decoders --disable-demuxers) \ 
Note: See TracChangeset for help on using the changeset viewer.