9d3009c6c4
avconv: print an error on applying options of the wrong type.
...
I.e. input options to output files or vice versa.
2013-03-08 14:12:43 +01:00
354468fc12
avplay: switch to new refcounted frames API
...
Remove now unused cmdutils get_buffer() implementation.
2013-03-08 07:40:59 +01:00
5c7db097eb
avconv: pass libavresample options to AVFilterGraph
2013-02-23 17:07:54 -05:00
c661cb6672
cmdutils: pass number of groups to split_commandline().
...
This makes the code simpler and avoids mixing designated and
non-designated initializers in a potentially unsafe way in avconv.
2012-12-19 22:13:41 +01:00
8c9af5b205
cmdutils: add a commandline pre-parser.
...
It splits the commandline into a more convenient internal representation
for further parsing.
This will allow e.g.
- processing global options first independently of their location on the
commandline, eliminating ugly hacks for processing e.g. cpuflags
first
- better options validation and error reporting. It is now possible for
the parser to know that it's applying an input option to an output
file or vice versa and act accordingly.
2012-12-18 20:13:55 +01:00
10bca66101
cmdutils: add a macro to simplify grow_array() calls.
2012-12-18 20:11:06 +01:00
02e4275180
avconv_opt, cmdutils: Add missing function parameter Doxygen
2012-10-31 18:21:55 +01:00
716d413c13
Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat
2012-10-08 07:13:26 +02:00
e4cbf7529b
Give all anonymously typedeffed structs in headers a name
...
Anonymous structs cannot be forward declared and have no benefit.
2012-10-06 09:27:11 +02:00
5e3f9979fa
Use atexit() instead of defining a custom exit_program() interface.
2012-10-01 17:17:42 -04:00
11d957fbd8
avtools: remove the distinction between func_arg and func2_arg.
...
func2_arg is the same as func_arg, except it has one additional
parameter. Change all func_arg callbacks to take that parameter (and
ignore it).
2012-08-30 13:56:25 +02:00
f9fada2704
avconv: split printing "main options" into global and per-file.
2012-08-19 19:23:43 +02:00
a3ad68d36c
cmdutils: extend -h to allow printing codec details.
2012-08-19 19:22:08 +02:00
7c5012127f
cmdutils: change semantics of show_help_options() and document it.
...
Currently it takes a mask and value, such that options for which
(flags & mask) == value.
Change it to take required flags and forbidden flags instead. This is
shorter and simpler to understand.
2012-08-19 19:21:35 +02:00
79600a8354
avconv: deprecate -isync.
...
This option does not do anything.
Also remove OPT_GRAB, since -isync is the last option using it.
2012-08-19 19:20:14 +02:00
f617135bc9
avtools: fix show_foo() signatures.
...
show_foo() functions are declared as void show_foo(void), but called as
int show_foo(const char*, const char*).
2012-08-19 19:07:43 +02:00
7c10194996
cmdutils: refactor -codecs option.
...
Make it print a list of AVCodecDescriptors.
Add new -decoders and -encoders options that print lists of decoders and
encoders respectively.
2012-08-18 08:48:30 +02:00
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
2012-08-07 16:00:24 +02:00
22662ca560
attributes: add av_noreturn
...
Also use it in the declaration of the various exit_program
implementations in avtools.
inspired by a clang-scan report.
2012-07-03 17:26:51 +02:00
d3ed1c9571
cmdutils: Pass the actual chosen encoder to filter_codec_opts
...
This allows passing the right options to encoders when there's more
than one encoder for a certain codec id.
Signed-off-by: Martin Storsjö <martin@martin.st >
2012-06-30 15:44:10 +03:00
d55c2e05b5
avtools: move buffer management code from avconv to cmdutils.
...
It will be used by avplay.
2012-06-05 09:35:58 +02:00
ac71230902
lavfi: add video buffer sink, and use it in avtools
...
Also add the public interface libavfilter/buffersink.h.
Based on a commit by Stefano Sabatini.
2012-05-09 08:59:37 +02:00
b7327887ea
avconv: get output pixel format from lavfi.
...
This way we don't require a clearly defined corresponding input stream.
The result for the xwd test changes because rgb24 is now chosen instead
of bgra.
2012-04-15 20:22:36 +02:00
050dc12778
Read preset files with suffix .avpreset
...
The preset files have been renamed some time ago.
CC: libav-stable@libav.org
2012-03-18 09:26:32 +01:00
4138cd2907
avconv: add -cpuflags option for setting supported cpuflags.
...
Useful for testing.
2012-03-06 15:03:22 +01:00
abe655a472
Drop unnecessary prefix from *sink* variable and struct names.
2012-01-25 12:28:36 +01:00
45f2908d02
cosmetics: Rename ffsink to avsink.
2012-01-19 00:19:43 +01:00
0184bbe2d1
avprobe, cmdutils: K&R formatting cosmetics
2012-01-18 21:07:25 +01:00
da9cea77e3
Fix a bunch of common typos.
2011-12-11 00:32:25 +01:00
e873c03ac7
misc Doxygen markup improvements
2011-12-05 13:06:58 +01:00
02170990fd
cmdutils: Rename read_file to cmdutils_read_file
...
This symbol name clashes with a symbol in gnutls, if linking
statically to that library.
Signed-off-by: Martin Storsjö <martin@martin.st >
2011-10-31 16:29:29 +02:00
7a6cd9957d
cmdutils/avtools: simplify show_help() by using av_opt_child_class_next()
2011-10-12 16:51:17 +02:00
25c27f379f
doc: fix references to obsolete presets directories for avconv/ffmpeg
2011-10-11 14:31:19 +02:00
182cbe433a
avtools: parse loglevel before all the other options.
...
This way it can be applied to cmdutils too -- e.g. showing the banner
and printing startup messages.
2011-09-26 20:33:50 +02:00
05bffc12c4
avconv: move audio_sample_fmt to options context.
...
Also document it and replace undocumented and inconsistent
'-sample_fmt list' syntax with -sample_fmts.
2011-09-11 17:29:55 +02:00
33f75d72e6
avconv: move ts scale to options context.
2011-09-05 11:15:40 +02:00
6b779cccaa
avconv: move start_time, recording_time and input_ts_offset to options context
2011-09-04 13:12:00 +02:00
6361c5e1e6
cmdutils: allow storing per-stream/chapter/.... options in a generic way
2011-09-04 13:12:00 +02:00
2f8e586df1
cmdutils: split per-option code out of parse_options().
...
This allows options like -target, which are just shortcuts for other
options, to work without dummy function for all options they invoke.
2011-09-04 13:12:00 +02:00
7cc8d6385a
cmdutils: add support for caller-provided option context.
...
This is the first step to removing the globals plague from avtools.
2011-09-04 13:12:00 +02:00
7efe05ab29
cmdutils: declare only one pointer type in OptionDef
...
This will be useful in the following commit.
2011-09-04 13:12:00 +02:00
cac651c834
cmdutils: move grow_array() from avconv to cmdutils.
2011-09-04 13:12:00 +02:00
dad09ff93f
cmdutils: move exit_program() declaration to cmdutils from avconv
...
Allows cmdutils to call each tool's own cleanup function.
2011-09-04 13:12:00 +02:00
d4863fc1a8
cmdutils: allow precisely specifying a stream for AVOptions.
2011-08-12 18:35:12 +02:00
8ec19f84e1
cmdutils: add codec_opts parameter to setup_find_stream_info_opts()
...
Avoid brittle and obfuscating reference to a global.
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-07-28 17:13:14 +02:00
ce23ca814b
cmdutils: clarify documentation for filter_codec_opts()
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-07-28 17:13:14 +02:00
7cea06d135
cmdutils: clarify documentation for setup_find_stream_info_opts()
...
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2011-07-28 17:13:14 +02:00
35d2e4e5c3
cmdutils: replace opt_default with opt_default2() and remove set_context_opts
2011-07-13 23:17:42 +02:00
3009f521f3
ffplay: use new avcodec_open2 and avformat_find_stream_info API.
2011-07-13 23:17:42 +02:00
8c8eab8bfe
cmdutils: store all codec options in one dict instead of video/audio/sub
...
Split them when codec id is known.
2011-07-13 23:17:42 +02:00