Anton Khirnov
91ea4811b3
avconv: move frame_rate to the options context.
13 years ago
Anton Khirnov
bef737a78a
avconv: move force_fps to the options context.
13 years ago
Anton Khirnov
7c0296723c
avconv: move forced_key_frames to the options context.
13 years ago
Anton Khirnov
77d9c4542c
avconv: rewrite -qscale and -aq handling.
...
Merge video_qscale (set by -qscale) and audio_qscale (set by -aq) into
one 'qscale' field in the options context. Add a shortcut -q for -qscale
and make -aq an alias for -q:a.
13 years ago
Anton Khirnov
e2469ccf01
avconv: move audio_sample_rate to the options context.
13 years ago
Anton Khirnov
2c474ddbc5
cmdutils: add support for programs in check_stream_specifier()
...
Remove now redundant (and broken/undocumented) opt_programid.
13 years ago
Anton Khirnov
05bffc12c4
avconv: move audio_sample_fmt to options context.
...
Also document it and replace undocumented and inconsistent
'-sample_fmt list' syntax with -sample_fmts.
13 years ago
Anton Khirnov
6a11686dfc
avconv: move audio_channels to the options context.
13 years ago
Anton Khirnov
2130981af3
avconv: move *_disable to options context.
13 years ago
Anton Khirnov
35c5d7d1ef
avconv: remove -[vas]lang options.
...
They are redundant, the same can be now accomplished with -metadata.
13 years ago
Anton Khirnov
013887ebcd
avconv: move codec tags to options context.
...
Add a new -tag option, make -[vas]tag an alias for -tag:[vas]
13 years ago
Anton Khirnov
a2a38d9665
avconv: fix parsing metadata specifiers.
...
After 039267f192
, metadata specifiers are
passed without the leading ':'. Remove a ++ that didn't take this into
account.
14 years ago
Anton Khirnov
dc26318c2d
avconv: move mux_preload and mux_max_delay to options context
14 years ago
Anton Khirnov
d821cbe2ff
avconv: move bitstream filters to options context.
...
Change syntax -- -[vas]bsf are replaced by -bsf:[stream specifier], the
argument is now a comma-separated list of bitstream filters.
14 years ago
Anton Khirnov
f480532822
avconv: move rate_emu to options context.
...
Make it work properly with multiple input files.
14 years ago
Anton Khirnov
96139b5e32
avconv: move max_frames to options context.
...
Add a -frames option that uses generic stream specifiers, change
-[vad]frames into aliases to it.
14 years ago
Anton Khirnov
039267f192
avconv: move metadata to options context.
...
It is now possible to set metadata on streams and chapters.
14 years ago
Anton Khirnov
33f75d72e6
avconv: move ts scale to options context.
14 years ago
Anton Khirnov
c5bb372e85
avconv: move chapter maps to options context.
14 years ago
Anton Khirnov
847529f84a
avconv: move metadata maps to options context.
14 years ago
Anton Khirnov
35e6f8c174
avconv: move codec_names to options context.
14 years ago
Anton Khirnov
7041bb3b1a
avconv: move format to options context
14 years ago
Anton Khirnov
13ccba50d4
avconv: move limit_filesize to options context
14 years ago
Anton Khirnov
6b779cccaa
avconv: move start_time, recording_time and input_ts_offset to options context
14 years ago
Anton Khirnov
575ec4e17d
avconv: add a context for options.
...
Move stream maps to it.
Eventually all non-global options should be stored in it.
14 years ago
Anton Khirnov
7cc8d6385a
cmdutils: add support for caller-provided option context.
...
This is the first step to removing the globals plague from avtools.
14 years ago
Anton Khirnov
cac651c834
cmdutils: move grow_array() from avconv to cmdutils.
14 years ago
Anton Khirnov
dad09ff93f
cmdutils: move exit_program() declaration to cmdutils from avconv
...
Allows cmdutils to call each tool's own cleanup function.
14 years ago
Anton Khirnov
20c21f8b75
cmdutils: get rid of dummy contexts for examining AVOptions.
...
Replace it with newly introduced libavutil API.
14 years ago
Michael Niedermayer
6248694861
avconv: fix some bugs introduced in 630902a1e1
...
These caused scrambled error messages to be printed and
floating point exceptions.
For example when there was no decoder available for a
stream.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Anton Khirnov
2e2594ca5b
avconv: remove -threads option.
...
It's only shadowing the AVOption with the same name.
14 years ago
Alex Converse
f593628e58
avconv: Replace raw picture frame swapping hack.
14 years ago
Anton Khirnov
c922816d31
avconv: remove stubs of crop* and pad* options
14 years ago
Anton Khirnov
ed5b13265e
avconv: re-add nb_streams to InputFile.
...
It was mistakenly removed in 2cf8355f98
,
not taking into account that new streams might appear in av_read_frame()
that avconv doesn't know about.
Fixes bug 24.
14 years ago
Diego Biurrun
0249478756
doxygen: fix wrong comment syntax, //< vs. ///<
14 years ago
Alex Converse
b9630bcf82
avconv: Replace goto redo on decode fail with continue.
...
This checks for sigterm but otherwise is identical to the previous
behavior.
14 years ago
Alex Converse
389e0a5a24
avconv: Remove dead store.
14 years ago
Alex Converse
6c7ee2f7db
avconv: use av_clip_int16 for audio clipping
14 years ago
Nicolas George
bc8c50512f
avconv: print the codecs names in the stream mapping.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Anton Khirnov
c74b44de08
avconv: move the avcodec_find_decoder() call to add_input_streams().
...
This makes the code simpler to understand, though it results in an
unnecessary call to avcodec_find_decoder() if the stream won't be
decoded.
14 years ago
Alex Converse
eaf2d37acc
avconv: Separate initialization from the main transcode loop.
14 years ago
Anton Khirnov
f60a6b5853
avconv: reset input_ts_offset between files.
...
Signed-off-by: Alex Converse <alex.converse@gmail.com>
14 years ago
Anton Khirnov
b62b5cb6fd
avconv: call flush_encoders() from transcode() directly.
...
And remove now pointless parameter.
Signed-off-by: Alex Converse <alex.converse@gmail.com>
14 years ago
Anton Khirnov
c093150849
avconv: fix broken indentation.
...
Signed-off-by: Alex Converse <alex.converse@gmail.com>
14 years ago
Anton Khirnov
f21f294e05
avconv: rescue poor abused limit_filesize global.
...
Keep a per-OutputFile instance of it, thus making -fs work with multiple
output files.
Signed-off-by: Alex Converse <alex.converse@gmail.com>
14 years ago
Alex Converse
e6d2b73784
avconv: Set error code before before jumping to fail.
14 years ago
Alex Converse
bb337b4fbc
avconv: Fix spelling errors.
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
14 years ago
Anton Khirnov
6f1c66d526
avconv: save two levels of indentation in flush_encoders()
...
By replacing
if (foo)
<do stuff>
with
if (!foo)
continue;
<do stuff>
14 years ago
Anton Khirnov
4a4ce2e743
avconv: factor flushing encoders out of output_packet().
14 years ago
Anton Khirnov
630902a1e1
avconv: factor out initializing input streams.
14 years ago