Anton Khirnov
c255f0b001
avconv: initialize hwaccel_pix_fmt
...
Fixes an assertion failure in vdpau_get_buffer() when -hwaccel auto is
used, but hwaccel init fails.
11 years ago
Anton Khirnov
7671dd7cd7
avconv: add support for VDPAU decoding
11 years ago
Anton Khirnov
07fd0a2219
avconv: add infrastructure for using hwaccels
11 years ago
Luca Barbato
f825d42bcc
avplay: Accept cpuflags option
...
Quite useful for debugging.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
11 years ago
Anton Khirnov
488a0fa689
avconv: support -t as an input option.
...
It limits the duration of the data read from a given input.
11 years ago
Anton Khirnov
811bd07846
avconv: make input -ss accurate when transcoding
...
Insert (a)trim filters on the corresponding inputs, so the extra frames
are decoded and discarded.
11 years ago
Anton Khirnov
56ee3f9de7
avconv: distinguish between -ss 0 and -ss not being used
...
Using -ss 0 to drop frames with negative timestamps is a perfectly valid
use case.
11 years ago
Vittorio Giovara
7748dd41be
avconv: add -n option to immediately exit when output files already exist
...
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Martin Storsjö
b85dbe68e2
avconv: Call exit_program instead of exit in avconv_opt as well
...
This seems to have been missed in 636ced8e1d
.
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Anton Khirnov
538bf76737
avconv: make -aspect work with streamcopy
12 years ago
Anton Khirnov
481575d255
avconv: remove -deinterlace
...
It is incompatible with refcounted frames and since it's been deprecated
for a long time now, fixing it is not worth the effort.
12 years ago
Anton Khirnov
76d23f4031
avconv: do not send non-monotonous DTS to the muxers.
...
Hack partially based on a commit by Michael Niedermayer <michaelni@gmx.at>
Should fix (or work around) bug 458.
12 years ago
Anton Khirnov
3d62442008
avconv_opt: allocate an OutputFile before the streams.
...
This way OutputFile variables like recording time can be used when
creating the streams.
12 years ago
Anton Khirnov
dc574658d1
avconv: print filter options in -h full output.
12 years ago
Anton Khirnov
38f0c0781a
lavfi: merge avfiltergraph.h into avfilter.h
...
We do not support using filters without AVFilterGraph in practice
anyway, so there is no point in pretending we do.
12 years ago
Anton Khirnov
a4208b9b7d
avconv: add options for reading filtergraphs from a file.
12 years ago
Anton Khirnov
3e175a2a55
avconv: mark attachment streams as immediately finished
...
There are never any packets for those streams.
Fixes an infinite loop with -attach.
12 years ago
Anton Khirnov
e7553f4c78
avconv: do not silently ignore unused codec AVOptions.
...
Print an error and abort when the option is of the wrong type (decoding
for output file or vice versa), since this could never be correct for
any input or output configuration.
Print a warning and continue when the option is of the correct type,
just unused, so same commandlines can be reused for different kinds of
input or output files.
12 years ago
Anton Khirnov
db2d65ce1e
avconv: fix a typo
12 years ago
Anton Khirnov
41d2008b15
avconv: use a local variable for InputFile in open_input_file().
...
This is shorter and more readable.
12 years ago
Anton Khirnov
1da54e908e
avconv: use a local variable for OutputFile in open_output_file().
...
This is shorter and more readable.
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
Ronald S. Bultje
54b298fe56
lavc: Deprecate the deinterlace functions in libavcodec
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
df0229a7ca
avconv: Apply codec options to streams that are copied as well
...
This allows setting/overriding e.g. the bitrate parameter, which
is required for the smoothstreaming muxer. Normally, the bitrate
is set by the demuxer in these cases, but not all demuxers can
provide it. This allows stream copy of data to the smoothstreaming
muxer from such inputs.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Justin Ruggles
5c7db097eb
avconv: pass libavresample options to AVFilterGraph
12 years ago
Luca Barbato
bff3607547
lavc: set the default rc_initial_buffer_occupancy
...
rc_buffer_size is not set before.
Solve the initial the rate control underflow issue reported in
bug 222.
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years ago
Anton Khirnov
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.
12 years ago
Anton Khirnov
e82cb79adf
avconv: pass the actually selected decoder to filter_codec_opts().
12 years ago
Anton Khirnov
77bd1bc73a
avconv: use new options parser.
12 years ago
Anton Khirnov
10bca66101
cmdutils: add a macro to simplify grow_array() calls.
12 years ago
Anton Khirnov
4632abc7a3
avconv: fix copying per-stream metadata.
...
It is handled separately from other types because it uses stream
specifiers and currently that triggers an assert in SET_DICT.
CC:libav-stable@libav.org
12 years ago
Justin Ruggles
a903f8f087
Include libavutil/channel_layout.h instead of libavutil/audioconvert.h
...
Also reorder some other #include when applicable.
12 years ago
Diego Biurrun
02e4275180
avconv_opt, cmdutils: Add missing function parameter Doxygen
12 years ago
Anton Khirnov
4e61a38aa0
avconv: only apply presets when we have an encoder.
...
Fixes a crash when using a preset with stream copy.
CC: libav-stable@libav.org
12 years ago
Anton Khirnov
a119c64e38
avconv: fix disabling auto mappings with -map_metadata
...
CC: libav-stable@libav.org
12 years ago
Diego Biurrun
c1ef30a6ba
De-doxygenize some top-level files
12 years ago
Janne Grunau
8d09d39a4b
avconv: remove bogus warning when using avconv -h without parameter
12 years ago
Anton Khirnov
fb722a900f
avconv: remove -same_quant
...
It has not worked for anything other than fringe codecs (asv1/2, mdec,
mjpeg[b]) since about 2003 and nobody ever noticed or complained. This
sufficiently proves that there are no users of this option who have a
clue of what they are doing, so it is completely useless.
12 years ago
Janne Grunau
18ff4d2020
avconv: simplify memory allocation in copy_chapters
...
Make just a single reallocation per call instead of one reallocation
per copied chapters. This fixes possible memory leaks on realloc
failures. Also correct the allocation since it needs multiples of
sizeof(AVChapter*) and not sizeof(AVChapter).
Fixes CID700633 and CID700719.
12 years ago
Anton Khirnov
716d413c13
Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat
12 years ago
Diego Elio Pettenò
5e3f9979fa
Use atexit() instead of defining a custom exit_program() interface.
12 years ago
Anton Khirnov
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).
12 years ago
Anton Khirnov
bbcedade00
avconv: make the -passlogfile option per-stream.
12 years ago
Anton Khirnov
038c0b1e06
avconv: make the -pass option per-stream.
12 years ago
Mans Rullgard
cba79d2123
avconv: remove unused variable opt_shortest
...
This was replaced with a per-file value in 3c0df90
.
Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years ago
Anton Khirnov
602b1898e5
avconv: mark more options as expert.
12 years ago
Anton Khirnov
f9fada2704
avconv: split printing "main options" into global and per-file.
12 years ago
Anton Khirnov
6e3857fa8c
avconv: refactor help printing.
...
By default don't dump every single option on the user, but print only
the basic options.
Add -h long/full to print more options.
12 years ago
Anton Khirnov
f8b1e66553
avconv: print info/capabilities options in a separate help group.
12 years ago
Anton Khirnov
a3ad68d36c
cmdutils: extend -h to allow printing codec details.
12 years ago