Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 3/4] ffmpeg: allow customization of codecs, (de)muxers and other components
@ 2010-06-14 10:00 Luca Ceresoli
  2010-06-14 11:25 ` Peter Korsgaard
  0 siblings, 1 reply; 6+ messages in thread
From: Luca Ceresoli @ 2010-06-14 10:00 UTC (permalink / raw)
  To: buildroot

Peter Korsgaard wrote:
> >>>>> "Luca" == Luca Ceresoli <luca@lucaceresoli.net> writes:
> 
> Hi,
> 
>  Luca> +ifneq ($(BR2_PACKAGE_FFMPEG_DECODERS),"all")
>  >> 
>  >> I would suggest you use qstrip + strip here as well, so it doesn't break if the
>  >> user accidently added extra spaces or so.
> 
>  Luca> How can foreach break with extra spaces? I've been trying things as:
>  >> BR2_PACKAGE_FFMPEG_ENCODERS="   vorbis    flac  "
>  Luca> and they work ok.
> 
> Not the foreach, but the ifneq (....,"all") would break if the user
> ended up setting it to "all " or " all" or similar.

Sorry, now I got what you mean.

Why do you say qstrip+strip anyway? qstrip does strip itself:

> # Strip quotes and then whitespaces                                                                    
> qstrip=$(strip $(subst ",,$(1)))                                                                       
> #"))

So I would do:
-ifneq ($(BR2_PACKAGE_FFMPEG_ENCODERS),"all")
+ifneq ($(call qstrip,$(BR2_PACKAGE_FFMPEG_ENCODERS)),all)

If that's ok, it will be in the re-submitted patches.

> 
> -- 
> Bye, Peter Korsgaard
> 

Luca

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 3/4] ffmpeg: allow customization of codecs, (de)muxers and other components
@ 2010-06-14  8:50 Luca Ceresoli
  2010-06-14  9:26 ` Peter Korsgaard
  0 siblings, 1 reply; 6+ messages in thread
From: Luca Ceresoli @ 2010-06-14  8:50 UTC (permalink / raw)
  To: buildroot

Peter Korsgaard wrote:
> >>>>> "Luca" == Luca Ceresoli <luca@lucaceresoli.net> writes:
> 
>  Luca> Add the option to customize the list of decoders, encoders,
>  Luca> muxers, demuxers, parsers, protocols, bsfs and filters to be
>  Luca> built into ffmpeg, and to compile or exclude input and output
>  Luca> devices.
> 
>  Luca> +++ b/package/multimedia/ffmpeg/ffmpeg.mk
>  Luca> @@ -49,6 +49,58 @@ else
>  Luca>  FFMPEG_CONF_OPT += --disable-ffserver
>  Luca>  endif
>  
>  Luca> +ifneq ($(BR2_PACKAGE_FFMPEG_ENCODERS),"all")
>  Luca> +FFMPEG_CONF_OPT += --disable-encoders \
>  Luca> +	$(foreach x,$(call qstrip,$(BR2_PACKAGE_FFMPEG_ENCODERS)),--enable-encoder=$(x))
>  Luca> +endif
>  Luca> +
>  Luca> +ifneq ($(BR2_PACKAGE_FFMPEG_DECODERS),"all")
> 
> I would suggest you use qstrip + strip here as well, so it doesn't break if the
> user accidently added extra spaces or so.

How can foreach break with extra spaces? I've been trying things as:
> BR2_PACKAGE_FFMPEG_ENCODERS="   vorbis    flac  "
and they work ok.

BTW, that was with GNU make. Relevant?

> 
> -- 
> Bye, Peter Korsgaard
> 

Luca

^ permalink raw reply	[flat|nested] 6+ messages in thread
* [Buildroot] Add ffmpeg support
@ 2010-06-12 16:22 Luca Ceresoli
  2010-06-12 16:22 ` [Buildroot] [PATCH 3/4] ffmpeg: allow customization of codecs, (de)muxers and other components Luca Ceresoli
  0 siblings, 1 reply; 6+ messages in thread
From: Luca Ceresoli @ 2010-06-12 16:22 UTC (permalink / raw)
  To: buildroot

FFmpeg is a complete, cross-platform solution to record, convert and stream
audio and video. It includes libavcodec - the leading audio/video codec library.

This patchset adds support for building ffmpeg in buildroot.

Most high-level options are provided via kconfig options, and there is a hook
in the last commit to allow passing .configure any parameters not directly
supported (very handy for machine support, for example).

Note that this support is much more complete than the one in bug 401
(https://bugs.busybox.net/show_bug.cgi?id=401).

Thanks,
Luca

ffmpeg: add new package
ffmpeg: add commandline programs
ffmpeg: allow customization of codecs, (de)muxers and other components
ffmpeg: add user-defined configure parameters

 CHANGES                                            |    2 +-
 package/multimedia/Config.in                       |    1 +
 package/multimedia/ffmpeg/Config.in                |  145 +++++++++++++++++++
 .../ffmpeg-0.5.2-fix-sdl-config-search.patch       |   17 +++
 package/multimedia/ffmpeg/ffmpeg.mk                |  150 ++++++++++++++++++++
 5 files changed, 314 insertions(+), 1 deletions(-)

Luca

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-06-14 11:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-14 10:00 [Buildroot] [PATCH 3/4] ffmpeg: allow customization of codecs, (de)muxers and other components Luca Ceresoli
2010-06-14 11:25 ` Peter Korsgaard
  -- strict thread matches above, loose matches on Subject: below --
2010-06-14  8:50 Luca Ceresoli
2010-06-14  9:26 ` Peter Korsgaard
2010-06-12 16:22 [Buildroot] Add ffmpeg support Luca Ceresoli
2010-06-12 16:22 ` [Buildroot] [PATCH 3/4] ffmpeg: allow customization of codecs, (de)muxers and other components Luca Ceresoli
2010-06-13 12:01   ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox