summaryrefslogtreecommitdiff
path: root/cmdutils.c
Commit message (Collapse)AuthorAge
...
* cmdutils: add support for programs in check_stream_specifier()Anton Khirnov2011-09-11
| | | | Remove now redundant (and broken/undocumented) opt_programid.
* avconv: move audio_sample_fmt to options context.Anton Khirnov2011-09-11
| | | | | Also document it and replace undocumented and inconsistent '-sample_fmt list' syntax with -sample_fmts.
* avconv: move ts scale to options context.Anton Khirnov2011-09-05
|
* avconv: move start_time, recording_time and input_ts_offset to options contextAnton Khirnov2011-09-04
|
* cmdutils: allow storing per-stream/chapter/.... options in a generic wayAnton Khirnov2011-09-04
|
* cmdutils: split per-option code out of parse_options().Anton Khirnov2011-09-04
| | | | | This allows options like -target, which are just shortcuts for other options, to work without dummy function for all options they invoke.
* cmdutils: add support for caller-provided option context.Anton Khirnov2011-09-04
| | | | This is the first step to removing the globals plague from avtools.
* cmdutils: declare only one pointer type in OptionDefAnton Khirnov2011-09-04
| | | | This will be useful in the following commit.
* cmdutils: move grow_array() from avconv to cmdutils.Anton Khirnov2011-09-04
|
* cmdutils: move exit_program() declaration to cmdutils from avconvAnton Khirnov2011-09-04
| | | | Allows cmdutils to call each tool's own cleanup function.
* cmdutils: get rid of dummy contexts for examining AVOptions.Anton Khirnov2011-09-03
| | | | Replace it with newly introduced libavutil API.
* cmdutils: allow precisely specifying a stream for AVOptions.Anton Khirnov2011-08-12
|
* cmdutils: allow ':'-separated modifiers in option names.Anton Khirnov2011-08-12
|
* Make a copy of ffmpeg under a new name -- avconv.Anton Khirnov2011-08-12
| | | | | | | It will be further developed with a few incompatible changes. ffmpeg.c will stay as is for some time, so any scripts using it won't be broken.
* cmdutils: add codec_opts parameter to setup_find_stream_info_opts()Stefano Sabatini2011-07-28
| | | | | | Avoid brittle and obfuscating reference to a global. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* cmdutils: replace opt_default with opt_default2() and remove set_context_optsAnton Khirnov2011-07-13
|
* ffplay: use new avcodec_open2 and avformat_find_stream_info API.Anton Khirnov2011-07-13
|
* cmdutils: store all codec options in one dict instead of video/audio/subAnton Khirnov2011-07-13
| | | | Split them when codec id is known.
* lavc: make avcodec_alloc_context3 officially public.Anton Khirnov2011-07-10
| | | | Deprecate avcodec_alloc_context/2.
* cmdutils: add opt_default2().Anton Khirnov2011-06-16
| | | | | | It stores options in a dictionary to be passed to new open calls. It will replace opt_default once all the pieces are in place.
* AVOptions: add av_opt_find() as a replacement for av_find_opt.Anton Khirnov2011-06-16
|
* cmdutils: add missing NULL check in parse_options()Stefano Sabatini2011-06-12
| | | | | | Fix ffplay -i FILE, which was recently broken. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* cmdutils: add missing const qualifierMans Rullgard2011-06-04
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* cmdutils: remove OPT_FUNC2Stefano Sabatini2011-05-28
| | | | | | | | | Make ff* tools only accept opt_* functions taking two arguments. The distinction between functions with one and two arguments is quite pointless. Simplify parse_options() code. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* cmdutils: use sws_freeContext() instead of av_freep().Ronald S. Bultje2011-05-27
| | | | | av_freep(swsContext) will leak all memory potentially allocated within the swsContext.
* ffplay: add a dummy option -i so that it is easy to switch between ffmpeg -i ↵Benjamin Larsson2011-05-11
| | | | | | "file" and ffplay -i "file". Signed-off-by: Anton Khirnov <anton@khirnov.net>
* cmdutils: add OPT_INT check in parse_number_or_die()Stefano Sabatini2011-05-10
| | | | | | | Check that the value passed for an OPT_INT option is an int, fail otherwise. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* cmdutils: remove list_fmts(), simplifyStefano Sabatini2011-05-10
| | | | | | | | | | | | | The function was only used in opt_sample_fmt() for listing the sample formats. Move list_fmts() functionality directly into opt_sample_fmt(). Also fix the warning: ffmpeg.c: In function ‘opt_audio_sample_fmt’: ffmpeg.c:2877: warning: passing argument 1 of ‘list_fmts’ from incompatible pointer type cmdutils.h:163: note: expected ‘void (*)(char *, int, int)’ but argument is of type ‘char * (*)(char *, int, enum AVSampleFormat)’ Signed-off-by: Anton Khirnov <anton@khirnov.net>
* ffmpeg.c: reset avoptions after each input/output file.Anton Khirnov2011-05-09
| | | | This is consistent with how all the other options work.
* lavfi: add key_frame and pict_type to AVFilterBufferRefVideo.Roger Pau Monné2011-04-26
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* win32: include the correct header in cmdutils.cLuca Barbato2011-04-25
| | | | CommandLineToArgvW requires windows.h, include it directly
* Handle unicode file names on windowsKirill Gavrilov2011-04-24
| | | | | | | | | | | | | 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 internal lavf function. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc: remove the FF_API_SET_STRING_OLD cruft.Anton Khirnov2011-04-19
|
* avio: deprecate av_protocol_next().Anton Khirnov2011-04-08
|
* Replace FFmpeg with Libav in licence headersMans Rullgard2011-03-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* use LIBAV_LICENSE and LIBAV_VERSION instead of FFMPEG_*Janne Grunau2011-03-16
|
* replace FFMPEG with LIBAV in FFMPEG_CONFIGURATIONJanne Grunau2011-03-16
| | | | also update the multiple inclusion guards in config.h|mak
* Deprecate parse_date() in favor of av_parse_time().Stefano Sabatini2011-02-16
| | | | | | | | 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 <mans@mansr.com>
* Merge libavcore into libavutilReinhard Tartler2011-02-15
| | | | | | | | | | | | 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 is helped by having libavutil and libavcore split. In order to ease maintenance inside and around FFmpeg and to reduce confusion where to put common code, avcore's functionality is merged (back) to avutil. Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* cmdutils: fix codec-specific options from presetJames Zern2011-02-05
| | | | | | | | 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 <rsbultje@gmail.com>
* cmdutils: fix opt_values leakJames Zern2011-02-05
| | | | | | Add free to uninit_opts and relocate opt_names to same Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Make this_year static to cmdutils.cDiego Elio Pettenò2011-01-24
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* libavcodec minor version is > 99 so fix the formatingGeorgi Chorbadzhiyski2011-01-20
| | | | | | | | | | | | | | | | | | | | | | | | | 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 libavformat 52. 94. 0 / 52.94. 0 libavdevice 52. 2. 3 / 52. 2. 3 libavfilter 1. 74. 0 / 1.74. 0 libswscale 0. 12. 0 / 0.12. 0 Change the formating to look like this: libavutil 50. 36. 0 / 50. 36. 0 libavcore 0. 16. 1 / 0. 16. 1 libavcodec 52.108. 0 / 52.108. 0 libavformat 52. 94. 0 / 52. 94. 0 libavdevice 52. 2. 3 / 52. 2. 3 libavfilter 1. 74. 0 / 1. 74. 0 libswscale 0. 12. 0 / 0. 12. 0 Signed-off-by: Mans Rullgard <mans@mansr.com>
* Use INFINITY and NAN macros instead of 1/0 and 0/0Mans Rullgard2011-01-18
|
* Disable initialization of the swscale sws_opts context inStefano Sabatini2011-01-04
| | | | | | | | | cmdutils.c:init_opts(), in the case libswscale compilation is not enabled. Fix ffprobe and ffserver compilation with --disable-swscale. Originally committed as revision 26212 to svn://svn.ffmpeg.org/ffmpeg/trunk
* ReindentMartin Storsjö2011-01-03
| | | | Originally committed as revision 26205 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Use AVOption for muxers in ffmpeg.Anssi Hannula2011-01-02
| | | | | | Patch by Anssi Hannula, anssi d hannula d iki d fi Originally committed as revision 26199 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Update current year to 2011. Happy New Year!Justin Ruggles2011-01-01
| | | | Originally committed as revision 26184 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add missing check on the existence of avcodec_opts[AVMEDIA_TYPE_X],Stefano Sabatini2010-11-22
| | | | | | fix crash in ffprobe. Originally committed as revision 25799 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Implement get_preset_file() in cmdutils.h and use it to factorize codeStefano Sabatini2010-11-04
| | | | | | from ffmpeg.c and ffserver.c. Originally committed as revision 25679 to svn://svn.ffmpeg.org/ffmpeg/trunk