| Branch: | Revision:

ffmpeg / cmdutils.c @ e73127a4

History | View | Annotate | Download (30.8 KB)

# Date Author Comment
10d39405 04/26/2011 05:42 AM Roger Pau Monné

lavfi: add key_frame and pict_type to AVFilterBufferRefVideo.

Signed-off-by: Anton Khirnov <>

ba9327ea 04/25/2011 07:57 PM Luca Barbato

win32: include the correct header in cmdutils.c

CommandLineToArgvW requires windows.h, include it directly

b1ac139d 04/23/2011 09:05 PM Kirill Gavrilov

Handle unicode file names on windows

All file names should be in UTF-8 within libavformat.

This is handled by mapping the open() function to an internal one
in os_support.h for windows.

fopen() could be overridden in the same way, but if that would be
used from ffmpeg.c, it would add a dependency on an ff prefixed...

41d0eb1c 04/19/2011 04:41 PM Anton Khirnov

lavc: remove the FF_API_SET_STRING_OLD cruft.

cdc6a87f 04/08/2011 03:48 PM Anton Khirnov

avio: deprecate av_protocol_next().

2912e87a 03/19/2011 01:33 PM Mans Rullgard

Replace FFmpeg with Libav in licence headers

Signed-off-by: Mans Rullgard <>

a03be6e1 03/16/2011 08:54 PM Janne Grunau


29ba0911 03/16/2011 08:54 PM Janne Grunau


also update the multiple inclusion guards in config.h|mak

f6c7375a 02/16/2011 11:39 PM Stefano Sabatini

Deprecate parse_date() in favor of av_parse_time().

The new av_parse_time() is created in libavutil/parseutils.h, all the
internal functions used by parse_date are moved to
libavutil/parseutils.c and made static.

Signed-off-by: Mans Rullgard <>

737eb597 02/15/2011 03:18 PM Reinhard Tartler

Merge libavcore into libavutil

It is pretty hopeless that other considerable projects will adopt
libavutil alone in other projects. Projects that need small footprint
are better off with more specialized libraries such as gnulib or rather
just copy the necessary parts that they need. With this in mind, nobody...

60ff9de6 02/05/2011 11:34 PM James Zern

cmdutils: fix codec-specific options from preset

Using a preset file caused the address of a stack variable to be stored
in opt_names/values. This change causes the strings to be dup'd then
freed in uninit_opts.

Signed-off-by: Ronald S. Bultje <>

3a6a9cdf 02/05/2011 10:18 PM James Zern

cmdutils: fix opt_values leak

Add free to uninit_opts and relocate opt_names to same

Signed-off-by: Ronald S. Bultje <>

3568853f 01/24/2011 11:44 PM Diego Elio Pettenò

Make this_year static to cmdutils.c

Signed-off-by: Mans Rullgard <>

c0dd5653 01/20/2011 11:34 AM Georgi Chorbadzhiyski

libavcodec minor version is > 99 so fix the formating

libavcodec minor version is > 99 so when printing the library versions
the output is a little bit broken:

libavutil    50. 36. 0 / 50.36. 0
libavcore 0. 16. 1 / 0.16. 1
libavcodec 52.108. 0 / 52.108. 0...
324e7ee2 01/18/2011 08:48 PM Mans Rullgard

Use INFINITY and NAN macros instead of 1/0 and 0/0

be4876ea 01/04/2011 02:00 PM Stefano Sabatini

Disable initialization of the swscale sws_opts context in
cmdutils.c:init_opts(), in the case libswscale compilation is not

Fix ffprobe and ffserver compilation with --disable-swscale.

Originally committed as revision 26212 to svn://

f03424a7 01/03/2011 12:43 PM Martin Storsjö


Originally committed as revision 26205 to svn://

ef2b2243 01/02/2011 04:00 PM Anssi Hannula

Use AVOption for muxers in ffmpeg.

Patch by Anssi Hannula, anssi d hannula d iki d fi

Originally committed as revision 26199 to svn://

391fa56d 01/01/2011 06:49 PM Justin Ruggles

Update current year to 2011. Happy New Year!

Originally committed as revision 26184 to svn://

819e2ab0 11/22/2010 10:03 PM Stefano Sabatini

Add missing check on the existence of avcodec_opts[AVMEDIA_TYPE_X],
fix crash in ffprobe.

Originally committed as revision 25799 to svn://

6e872935 11/04/2010 11:07 PM Stefano Sabatini

Implement get_preset_file() in cmdutils.h and use it to factorize code
from ffmpeg.c and ffserver.c.

Originally committed as revision 25679 to svn://

ff0652e5 10/18/2010 01:57 PM Stefano Sabatini

Implement a common get_filtered_video_frame(), shared between ffplay.c
and ffmpeg.c.

Originally committed as revision 25520 to svn://

f7ead94c 10/12/2010 06:40 PM Stefano Sabatini

Factorize definition of the output_filter defined in both ffplay.c and
Replace it with a more generic definition which can be shared.

Originally committed as revision 25453 to svn://

a5c33faa 10/02/2010 08:44 AM Reimar Döffinger

Add init and uninit functions to cmdutils, reduces code duplication
between ffmpeg and ffplay and avoids a valgrind error by freeing

Originally committed as revision 25309 to svn://

0093ebc2 09/29/2010 11:06 PM Michael Niedermayer

User application side of Codec specific parameters.

Originally committed as revision 25266 to svn://

01d46198 09/28/2010 03:45 AM Alexander Strange

All else being equal, prefer PTS over DTS in timestamp correction

Because DTS values aren't passed through decoders, they tend to be
inaccurate if decoder delay doesn't match what was expected by the encoder.

In particular this improves timestamps for H.264 without num_reorder_frames...

7a8bfa5d 09/28/2010 02:05 AM Alexander Strange

Extract timestamp correction code from ffplay.c to cmdutils.c

Originally committed as revision 25241 to svn://

20e021c7 09/25/2010 01:31 AM Stefano Sabatini

Add more missing checks in opt_default(), prevent a crash if
avcodec_opts0 or avformat_opts is not set.

Originally committed as revision 25186 to svn://

d860aaf8 09/24/2010 04:32 PM Stefano Sabatini

Add missing existence checks in opt_default().

Originally committed as revision 25179 to svn://

1790d3b3 09/20/2010 09:48 PM Stefano Sabatini

Move log_callback_help to cmdutils.[hc], for allowing sharing.

Originally committed as revision 25149 to svn://

2ee5c789 07/29/2010 10:38 PM Stefano Sabatini

Extend show_protocols() to make it print information about input,
output, seek support.

Originally committed as revision 24581 to svn://

65dd2ded 07/22/2010 01:05 PM Stefano Sabatini

Factorize indent definition in PRINT_LIB_INFO().

Originally committed as revision 24435 to svn://

d101e731 07/22/2010 01:05 PM Stefano Sabatini

Merge maybe_print_config() and PRINT_LIB_CONFIG() in PRINT_LIB_INFO().

Originally committed as revision 24434 to svn://

1044a92a 07/22/2010 01:05 PM Stefano Sabatini

print_all_lib_versions() -> print_all_libs_info()

Originally committed as revision 24433 to svn://

b6525b4b 07/22/2010 01:05 PM Stefano Sabatini


Originally committed as revision 24432 to svn://

208749a0 07/22/2010 01:04 PM Stefano Sabatini

Increase flexibility of PRINT_LIB_VERSION(), make it accept a flags
parameter. Allow a pending factorization.

Originally committed as revision 24431 to svn://

aac6ca69 07/21/2010 06:28 PM Stefano Sabatini

Add libavcore.

The new library is meant to contain the core multimedia utilities for
FFmpeg, to make them shareable between more libav* libraries.

See thread:
Subject: [FFmpeg-devel] [RFC] New library for shared non-generic libav* utils
Date: Fri, 9 Jul 2010 01:07:40 +0200...

25e25617 06/09/2010 09:28 PM Stefano Sabatini

Make all the numeric options accept in input an expression which is
evaluated through av_strtod().

Fix roundup issue #551.

Originally committed as revision 23556 to svn://

c56e9e05 05/22/2010 09:32 PM Ramiro Polla

Open 2-pass logfile in binary mode for both reading and writing.
This fixes a regression on Windows introduced by r22769 in which the data read
from the file was not properly zero terminated. The file was read as text,
which caused the \r characters to be suppressed. Since the zero termination...

e24db3e3 05/09/2010 12:04 PM Måns Rullgård

Fix build with swscale disabled

Originally committed as revision 23062 to svn://

9e94bd3e 05/05/2010 09:45 PM Stefano Sabatini

Reindent after the last commit.

Originally committed as revision 23034 to svn://

10173c0e 05/05/2010 09:44 PM Stefano Sabatini

Simplify print_error(), directly use av_strerror()/strerror() for
printing the error code associated to FF_NETERROR(EPROTONOSUPPORT).

Originally committed as revision 23033 to svn://

735ef67b 05/05/2010 09:44 PM Stefano Sabatini

Make print_error() use strerror() in case av_strerror() fails.

Should provide a meaningful error message for systems which do not
support strerror_r().

Fix roundup issue #1894.

Originally committed as revision 23032 to svn://

adef229e 04/16/2010 12:20 AM Ramiro Polla

FF_NETERROR is implicitly an AVERROR.

Originally committed as revision 22888 to svn://

458b062d 04/01/2010 10:34 PM Stefano Sabatini

Implement cmdutils.c:read_file(), and use it in ffmpeg.c for reading
the second pass encoding log file.

Originally committed as revision 22769 to svn://

330d86f5 03/30/2010 11:46 PM Stefano Sabatini

Issue a more general message when the function which sets an option

It may fail not only because of an invalid value for the option, but
also for other reasons, e.g. memory problems etc.

Originally committed as revision 22738 to svn://

72415b2a 03/30/2010 11:30 PM Stefano Sabatini

Define AVMediaType enum, and use it instead of enum CodecType, which
is deprecated and will be dropped at the next major bump.

Originally committed as revision 22735 to svn://

7a5bdd79 03/26/2010 10:46 PM Stefano Sabatini

Use av_strerror() in print_error().

Originally committed as revision 22696 to svn://

8bab85e5 03/17/2010 11:51 PM Stefano Sabatini

Remove printing of frame sizes and frame rate abbreviations from

The list of abbreviations is both outdated and out of context.

Originally committed as revision 22589 to svn://

6580d5e3 03/07/2010 10:18 PM Måns Rullgård

Remove hacks not required since HAVE_AV_CONFIG_H was unset for the apps

Originally committed as revision 22295 to svn://

da033b05 03/06/2010 02:09 PM Stefano Sabatini

Make opt_default() look for options in sws_opts only if sws_opts is
defined, fix crash.

Originally committed as revision 22232 to svn://

33bc7947 02/22/2010 12:28 PM Stefano Sabatini

Make opt_default() print an error message and exit if the option
supplied is not recognized.

Originally committed as revision 21960 to svn://

13887093 02/18/2010 08:47 PM Stefano Sabatini

FFmpeg is a collective effort so allowing a single name in a banner is
not nice/fair towards the community of developers.

Also this looks like the best way for resolving the debate about which
is the one person name to be put in the banner.

See the thread:...

9cb5c760 02/10/2010 11:36 PM Stefano Sabatini

Extend show_pix_fmts(), make it show input/output support for
conversion and other information exposed by the pixdesc API.

Originally committed as revision 21751 to svn://

0104b608 02/09/2010 10:55 PM Måns Rullgård

Check for setrlimit()

Originally committed as revision 21733 to svn://

9e5381a2 02/07/2010 03:46 PM Stefano Sabatini

Make parse_options() explicitely handle the case where an opt_func2
function returns a negative value, rather than erroneously trigger the
code which manages the case of unknown option.

Originally committed as revision 21670 to svn://

695f7de6 01/27/2010 11:08 PM Stefano Sabatini

Declare variable "version" in the PRINT_LIB_VERSION() macro if block,
slightly simpler and more robust.

Originally committed as revision 21492 to svn://

5116571d 01/27/2010 12:58 PM Måns Rullgård

Prettify PRINT_LIB_VERSION macro

Originally committed as revision 21477 to svn://

58fe804a 01/27/2010 12:58 PM Måns Rullgård

Get rid of ifdeffery for printing library versions and configurations

Originally committed as revision 21476 to svn://

9120e2cd 01/25/2010 03:48 AM Måns Rullgård

Print config of each lib if different from that of ffmpeg/ffplay/ffserver

Originally committed as revision 21448 to svn://

ffcc6e24 01/20/2010 06:42 AM Måns Rullgård

Add -timelimit option

This option limits the CPU time used by ffmpeg to the number of seconds
specified. After this time, the OS sends a SIGXCPU signal, which we
handle and attempt to exit cleanly. If the process is stuck, the OS
will deliver a SIGKILL one second later, forcibly terminating the...

7a78bc85 01/01/2010 03:07 PM Stefano Sabatini

Update this_year value.

Originally committed as revision 20995 to svn://

78638628 12/28/2009 12:01 PM Diego Biurrun

Mark conditionally used variable as av_unused, fixes the warning:
cmdutils.c:576: warning: unused variable ‘filter’

Originally committed as revision 20943 to svn://

3f7bb426 12/21/2009 09:53 PM Stefano Sabatini

Implement a -pix_fmts option for listing all the supported pixel

Originally committed as revision 20909 to svn://

c3c78324 12/14/2009 11:47 PM Stefano Sabatini

Factorize opt+1 out in parse_options(), simplify.

Originally committed as revision 20872 to svn://

663c2edf 12/12/2009 07:15 PM Stefano Sabatini

Only list libavfilter filters if libavfilter has been enabled during
Fix compilation if FFmpeg is not configured with --enable-avfilter.

Originally committed as revision 20813 to svn://

c5dc6026 12/12/2009 05:45 PM Stefano Sabatini

Move list_fmts() from ffmpeg.c to cmdutils.{h,c}, so that it can be
shared by the other ff* tools code.

Originally committed as revision 20812 to svn://

62d75662 12/12/2009 04:18 PM Stefano Sabatini

Implement a -filters option, listing all the available libavfilter
Currently filters are not registered, so the option will show none.

Originally committed as revision 20807 to svn://

2cb2d6f0 11/21/2009 12:22 AM Stefano Sabatini

Make show_protocols() print one protocol per line.

Originally committed as revision 20568 to svn://

8447f0bd 11/19/2009 04:35 PM Michael Niedermayer

Split show_formats().

Originally committed as revision 20553 to svn://

2091b27b 11/18/2009 10:27 PM Stefano Sabatini

Make show_formats() print each bitstream filter on a separate line.
Improve readability of the output.

Originally committed as revision 20549 to svn://

a3d7c197 09/22/2009 12:23 PM Diego Biurrun

Improve compiler information code to print to the console on program startup.
Remove gcc-specific hacks and allow filling relevant information for non-gcc
compilers in configure.

Originally committed as revision 19963 to svn://

5c1f57ff 09/22/2009 12:21 PM Diego Biurrun

Print compiler version and build date before configuration in console output.

Originally committed as revision 19962 to svn://

5a8597a0 08/09/2009 10:42 AM William R. Zwicky

Document the output of ffmpeg -formats.

Patch by William R. Zwicky, wrzwicky pobox com

Originally committed as revision 19610 to svn://

b1d6e5e8 08/03/2009 09:24 AM Benoit Fouet

Handle noX for OPT_BOOL X.

Originally committed as revision 19572 to svn://

da4c2dab 06/27/2009 10:26 AM Carl Eugen Hoyos

Remove superfluous const.

Originally committed as revision 19284 to svn://

4c97a6fa 06/16/2009 11:09 PM Stefano Sabatini

Move opt_loglevel() from ffmpeg.c to cmdutils.c.

Originally committed as revision 19209 to svn://

9cad0e4e 06/05/2009 11:04 AM Diego Biurrun

Add configure option to upgrade (L)GPL to version 3.

Originally committed as revision 19116 to svn://

3bf28f9d 05/25/2009 10:22 PM Stefano Sabatini

Factorize initial "printf(" and ");" in show_license().

Originally committed as revision 18950 to svn://

090b61b2 03/18/2009 09:35 PM Stefano Sabatini

Implement read_yesno().

Originally committed as revision 18037 to svn://

636f1c4c 03/03/2009 11:32 PM Stefano Sabatini

Rename avctx_opts to avcodec_opts.

The new name is more meaningful and consistent with avformat_opts
and sws_opts.

Originally committed as revision 17789 to svn://

6d4f53cb 03/03/2009 10:51 PM Michael Niedermayer

Remove old scaler.

Originally committed as revision 17786 to svn://

da2dc39e 02/05/2009 06:51 PM Ramiro Polla

Revert part of r16593.
network.h should only be included when CONFIG_NETWORK is set.

Originally committed as revision 17009 to svn://

ef4c0bb1 01/18/2009 09:40 PM Stefano Sabatini

Implement a var for containing the current year number rather than
hardcode it in the banner string.

Originally committed as revision 16678 to svn://

ddda628e 01/14/2009 12:45 AM Diego Biurrun

Remove pointless #if around header #includes.

Originally committed as revision 16593 to svn://

b250f9c6 01/13/2009 11:44 PM Aurelien Jacobs

Change semantic of CONFIG_*, HAVE_* and ARCH_*.
They are now always defined to either 0 or 1.

Originally committed as revision 16590 to svn://

e329b6ec 01/02/2009 11:09 AM Stefano Sabatini

Bump year number.

Originally committed as revision 16406 to svn://

f16dd7e6 12/19/2008 10:29 PM Stefano Sabatini

Remove calls to deprecated av_set_string2() with calls to

Originally committed as revision 16241 to svn://

3749076c 12/18/2008 12:13 AM Stefano Sabatini

Fix weird indent.

Originally committed as revision 16200 to svn://

5c3383e5 12/17/2008 11:21 PM Stefano Sabatini

Fix opt_default(), making it exit immediately in case of an invalid
See the thread: "[PATCH] Fix opt_default()".

Originally committed as revision 16196 to svn://

2cd39dbf 10/22/2008 10:36 AM Diego Pettenò

Include headers for optional libraries only when enabled.

Include the headers for libavfilter, libswscale and libpostproc when
they are enabled (and thus linked in).

Without this change, Sun Studio will fail to link FFmpeg since two
inline functions defined in avfilter.h will have undefined references...

a14b362f 10/16/2008 11:46 AM Diego Pettenò

Use CONFIG_* macros in cmdutils.c for consistency.

Originally committed as revision 15626 to svn://

88b77ef1 10/04/2008 09:25 AM Diego Pettenò

Mark print_all_lib_versions() static in cmdutils.c . Patch by Diego Pettenò

Originally committed as revision 15547 to svn://

85663ef3 09/28/2008 07:35 PM Michael Niedermayer

Move opt_default() and set_context_opts() to cmdutils so it can be used from
the other tools as well.

Originally committed as revision 15450 to svn://

1981deaf 09/01/2008 06:02 PM Stefano Sabatini

Make show_banner()/show_version() print the libpostproc version
numbers if enabled.

Originally committed as revision 15149 to svn://

e9df66a7 08/29/2008 06:29 PM Stefano Sabatini

Cosmetics: vertical align in print_all_lib_versions().

Originally committed as revision 15032 to svn://

db6d50c7 08/29/2008 06:25 PM Stefano Sabatini

Make show_version()/show_banner() print the libswscale versions if

Originally committed as revision 15031 to svn://

9a109272 08/13/2008 08:08 PM Stefano Sabatini

Make show_banner() and show_version() print both the compile-time and the
link-time/run-time libav* version numbers.

Originally committed as revision 14737 to svn://

7254edb5 08/03/2008 02:37 PM Diego Biurrun

Replace call to deprecated avcodec_build() with avcodec_version().

Originally committed as revision 14521 to svn://

304ba23a 07/09/2008 06:45 PM Stefano Sabatini

Print the program_name rather than always "FFmpeg" when showing the
commandline tools license.

Originally committed as revision 14141 to svn://