Paul B Mahol
f4ab723a79
cmdutils: print command support in -filters.
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
11 years ago
Paul B Mahol
48cd1037f6
cmdutils: silence warning about incompatible pointer types
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Michael Niedermayer
70106e73c5
cmdutils: Filter non user AVOptions out from what can be set over the command line.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diogo Franco
e8edf4e1cf
cmdutils: Only do the windows-specific commandline parsing on _WIN32
...
Fixes commandline parsing on Cygwin (on 64 bit, and on very recent
32 bit), where the configure check does find the CommandLineToArgvW
function (since it exists in the link libraries and in the headers),
but whose GetCommandLineW() only returns the application's path.
(This is due to a cygwin internal optimization, see
http://cygwin.com/ml/cygwin/2013-07/msg00538.html for details.)
Arguments are only given through main's argc/argv, and they're already
UTF-8.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Michael Niedermayer
5d3c3035b7
cmdutils: replace exit() by exit_program()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Luca Barbato
636ced8e1d
cmdutils: wrap exit explicitly
...
Some C runtime implementations deadlock when calling threading functions
on the atexit() handler.
Use a simpler wrapper similar to av_log to call the cleanup function
before exit.
Bug-Id: 523
12 years ago
Michael Niedermayer
46312fc2a9
cmdutils: dont change the log level for -report
...
Fixes Ticket2476
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Paul B Mahol
c59c0488ec
cmdutils: print threading capabilities for audio codecs
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Clément Bœsch
9c50e52005
cmdutils: print slice threading flag in -filters.
12 years ago
Anton Khirnov
129bb23843
lavfi: add a slice threading infrastructure
...
Mostly based on libavcodec's
12 years ago
Stefano Sabatini
427b51269e
cmdutils: show timeline support in -filters listing
12 years ago
Anton Khirnov
e6c4ac7b5f
pixdesc: rename PIX_FMT_* flags to AV_PIX_FMT_FLAG_*
12 years ago
Clément Bœsch
fdd93eabfb
lavfi: add timeline support.
...
Flag added in a few simple filters. A bunch of other filters can likely
use the feature as well.
12 years ago
Michael Niedermayer
978e373499
cmdutils: make the "-help filter=" output less confusing
...
Example:
Filter overlay
Overlay a video source on top of the input.
Inputs:
#0 : main (video)
#1 : overlay (video)
Outputs:
#0 : default (video)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Clément Bœsch
a5ebd2d987
cmdutils: slightly better -filters output.
12 years ago
Anton Khirnov
7f1fd97636
cmdutils: Fix build with lavfi disabled
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
12 years ago
Clément Bœsch
2b44195fc9
cmdutils: print if filters are sources or sinks.
12 years ago
Anton Khirnov
921046008f
cmdutils: allow -h filter=<name> to print information about a filter.
12 years ago
Anton Khirnov
e19e8aeeaa
avtools: move media_type_string() from avprobe to cmdutils.
...
It will be useful outside of avprobe.
12 years ago
Anton Khirnov
fa2a34cd40
lavfi: change the filter registering system to match the other libraries
...
Removes an arbitrary hardcoded limit on the number of filters.
12 years ago
highgod0401
d757f7510b
cmdutils: add opencl command line options to ffmpeg
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Stefano Sabatini
495ed19b5b
cmdutils: remove error message from opt_default() in case of missing option
...
A similar error message is generated by the calling function, avoid
duplication and spurious error message occurring with negated boolean
options introduced in 8bb5680
, which can be reproduced for example with
the command:
ffmpeg -f lavfi -i testsrc=d=0.1 -nostdin -f null -
12 years ago
Clément Bœsch
2208a46f8f
cmdutils: fix build with --disable-avfilter.
12 years ago
Clément Bœsch
999a46b12c
cmdutils: support filters in the help topic system.
12 years ago
Michael Niedermayer
5c13ae280f
cmdutils: allow forcing log line repeation
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Clément Bœsch
19c41c6d8e
opt: re-enable memleak fix for duplicated options.
...
The memleak fix in a1bcc76e
was causing problems when the original
string wasn't NULL or av_malloc'ed, thus was disabled. It seems the only
OPT_STRING occurence where it needed to be fixed is in ffserver. This
commit fixes that specific problem and so re-enable the original code.
12 years ago
Stefano Sabatini
8bb5680d90
cmdutils: improve feedback in case of not found option
12 years ago
Clément Bœsch
1123080d2e
cmdutils: remove conditionnal pp include.
...
The definition of the include are needed for builds even without pp.
This should fix FATE with --disable-gpl after 63edd2f9
.
12 years ago
Stefano Sabatini
a2a848406f
cmdutils: clarify log message, in case of option routed to both codec and mux/demux layer
12 years ago
Stefano Sabatini
63edd2f989
cmdutils: remove duplicated check on CONFIG_POSTPROC
...
The check is already performed by the PRINT_LIB_INFO macro.
12 years ago
Stefano Sabatini
475c090af2
cmdutils: make print_all_libs_info() show libavresample version
...
Even if not directly supported by FFmpeg, it is still useful to see the
linked version of libavresample.
12 years ago
Stefano Sabatini
daf6ea5d4e
cmdutils: fix stylenits
12 years ago
Anton Khirnov
9d3009c6c4
avconv: print an error on applying options of the wrong type.
...
I.e. input options to output files or vice versa.
12 years ago
Anton Khirnov
354468fc12
avplay: switch to new refcounted frames API
...
Remove now unused cmdutils get_buffer() implementation.
12 years ago
Reimar Döffinger
efa7f42020
Use the avstring.h locale-independent character type functions
...
Make sure the behavior does not change with the locale.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Reimar Döffinger
88d55b827d
Remove incorrect use of ctype.h functions.
...
As far as I can tell the code should not change behaviour
depending on locale in any of these places.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
12 years ago
Martin Storsjö
cb6f8245ae
cmdutils: Allow calling filter_codec_opts without a set encoder
...
In this case, no encoder specific options are filtered, only
options specific to that codec type in general.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Justin Ruggles
e8da807537
cmdutils: only use libavresample when it is enabled
...
avprobe and avserver use cmdutils and do not strictly require libavresample.
12 years ago
Michael Niedermayer
ad899522ff
ffmpeg: use a AVDictionary instead of the context to move swr parameters around
...
This avoids per parameter changes in ffmpeg at the cost of making access
somewhat more annoying.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
f3abdf4392
cmdutils: fix null pointer dereference
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Justin Ruggles
5c7db097eb
avconv: pass libavresample options to AVFilterGraph
12 years ago
Anton Khirnov
d2a25c4032
get_buffer(): do not initialize the data.
...
There may be more decoders that rely on this. Those should be found and
fixed.
12 years ago
Kostya Shishkov
89f11f498b
qtrle: fix the topmost line for 1bit
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
CC:libav-stable@libav.org
12 years ago
Anton Khirnov
2cd4068071
fraps: fix off-by one bug for version 1.
...
CC:libav-stable@libav.org
12 years ago
Anton Khirnov
da7baaaae7
aasc: fix output for msrle compression.
...
The bottom line was invalid before.
CC:libav-stable@libav.org
12 years ago
Anton Khirnov
238614de67
cdgraphics: do not rely on get_buffer() initializing the frame.
...
Setting it to zero (instead of 128, as the default get_buffer() does)
also produces more correctly-looking output.
12 years ago
Anton Khirnov
6a39985451
cmdutils: remove ansi from the list of broken codecs.
...
It's not relying on get_buffer() initializing the frame since
99e36ddd3e
.
12 years ago
Michael Niedermayer
9381521968
cmdline: fix -- to escape files starting with -
...
Fixes Ticket2127
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Johan Andersson
7768a635c4
cmdutils: update copyright year to 2013
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Michael Niedermayer
9b53306178
cmdutils: we have 2013
...
Found-by: durandal_1707
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago