aboutsummaryrefslogtreecommitdiffstats
path: root/avconv.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-09-291-9/+55
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (23 commits) avconv: Reformat s16 volume adjustment. ARM: NEON optimised vector_fmac_scalar() dca: use vector_fmac_scalar from dsputil dsputil: add vector_fmac_scalar() latmenc: Fix private options vf_unsharp: store hsub/vsub in the filter context vf_unsharp: adopt a more natural order of params in apply_unsharp() vf_unsharp: rename method "unsharpen" to "apply_unsharp" vf_scale: apply the same transform to the aspect during init that is applied per frame vf_pad: fix "vsub" variable value computation vf_scale: add a "sar" variable lavfi: fix realloc size computation in avfilter_add_format() vsrc_color: use internal timebase lavfi: fix signature for avfilter_graph_parse() and avfilter_graph_config() graphparser: prefer void * over AVClass * for log contexts avfiltergraph: use meaningful error codes avconv: Initialize return value for codec copy path. fate: use 'run' helper for seek-test fate: remove seek-mpeg2reuse test Fix memory (re)allocation in matroskadec.c, related to MSVR-11-0080. ... Conflicts: doc/filters.texi libavfilter/avfilter.h libavfilter/avfiltergraph.c libavfilter/avfiltergraph.h libavfilter/graphparser.c libavfilter/vf_scale.c libavfilter/vsrc_color.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avconv: Reformat s16 volume adjustment.Alex Converse2011-09-281-7/+6
| |
| * avconv: Initialize return value for codec copy path.Alex Converse2011-09-271-1/+1
| |
| * avconv: Fix volume adjustment for non-s16 sample formatsAlex Converse2011-09-271-0/+47
| |
| * avconv: Make samples void*.Alex Converse2011-09-271-1/+1
| | | | | | | | Different sample formats are different sizes.
| * avconv: Use the size of the decode sample format when allocating the audio ↵Alex Converse2011-09-271-2/+2
| | | | | | | | samples buffer.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-09-281-31/+39
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: avconv: use different variables for decoded and filtered frame. avconv: add support for copying attachments. matroskaenc: write attachments. matroskadec: export mimetype of attachments as metadata. avconv: factorize common code from new_*_stream() doc/avconv: expand documentation for some options. doc/avconv: document -timelimit. Conflicts: avconv.c cmdutils.c tests/codec-regression.sh Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avconv: use different variables for decoded and filtered frame.Anton Khirnov2011-09-271-11/+25
| | | | | | | | | | | | | | | | | | | | | | Makes the code less obfuscated and fixes encoding one video stream to several outputs. Also use avcodec_alloc_frame() instead of allocating AVFrame on stack. Breaks me_threshold in avconv, as motion vectors aren't passed through lavfi. They could be copied manually, but I don't think this misfeature is useful enough to justify ugly hacks.
| * avconv: add support for copying attachments.Anton Khirnov2011-09-271-0/+9
| |
| * avconv: factorize common code from new_*_stream()Anton Khirnov2011-09-271-17/+3
| |
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-09-271-174/+157
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (21 commits) fate: allow testing with libavfilter disabled x86: XOP/FMA4 CPU detection support ws_snd: misc cosmetic clean-ups ws_snd: remove the 2-bit ADPCM table and just subtract 2 instead. ws_snd: use memcpy() and memset() instead of loops ws_snd: use samples pointer for loop termination instead of a separate iterator variable. ws_snd: make sure number of channels is 1 ws_snd: add some checks to prevent buffer overread or overwrite. ws_snd: decode to AV_SAMPLE_FMT_U8 instead of S16. flacdec: fix buffer size checking in get_metadata_size() rtp: Simplify ff_rtp_get_payload_type rtpenc: Add a payload type private option rtp: Correct ff_rtp_get_payload_type documentation avconv: replace all fprintf() by av_log(). avconv: change av_log verbosity from ERROR to FATAL for fatal errors. cmdutils: replace fprintf() by av_log() avtools: parse loglevel before all the other options. oggdec: add support for Xiph's CELT codec sol: return error if av_get_packet() fails. cosmetics: reindent and pretty-print ... Conflicts: avconv.c cmdutils.c libavcodec/avcodec.h libavcodec/version.h libavformat/oggparsecelt.c libavformat/utils.c libavutil/avutil.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avconv: replace all fprintf() by av_log().Anton Khirnov2011-09-261-132/+116
| | | | | | | | Deprecate -v option, now only -loglevel is enough.
| * avconv: change av_log verbosity from ERROR to FATAL for fatal errors.Anton Khirnov2011-09-261-24/+24
| |
| * avtools: parse loglevel before all the other options.Anton Khirnov2011-09-261-0/+1
| | | | | | | | | | This way it can be applied to cmdutils too -- e.g. showing the banner and printing startup messages.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-09-251-7/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: ppc: fix some pointer to integer casts ppc: fix 32-bit PIC build vmdaudio: fix decoding of 16-bit audio format. lavf: do not set codec_tag for rawvideo h264: check for out of bounds reads in ff_h264_decode_extradata(). flvdec: Check for overflow before allocating arrays avconv: use correct output stream index when checking max_frames avconv: remove fake coded_frame on streamcopy hack Conflicts: avconv.c libavcodec/h264.c libavcodec/ppc/asm.S libavcodec/vmdav.c libavformat/flvdec.c libavformat/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avconv: use correct output stream index when checking max_framesAnton Khirnov2011-09-251-2/+2
| |
| * avconv: remove fake coded_frame on streamcopy hackAnton Khirnov2011-09-251-5/+0
| | | | | | | | | | | | Back in 2002 when it was added, some muxers used information from coded_frame. It's not true anymore, so this hack is useless and can be removed.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-09-241-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: rtp: factorize dynamic payload type fallback flvdec: Ignore the index if it's from a creator known to be different cmdutils: move grow_array out of #if CONFIG_AVFILTER avconv: actually set InputFile.rate_emu ratecontrol: update last_qscale_for sooner Fix unnecessary shift with 9/10bit vertical scaling prores: mark prores as intra-only in libavformat/utils.c:is_intra_only() prores: return more meaningful error values prores: improve error message wording prores: cosmetics: prettyprinting, drop useless parentheses prores: lowercase AVCodec name entry Conflicts: cmdutils.c libavcodec/proresdec_lgpl.c tests/ref/lavfi/pixfmts_scale Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avconv: actually set InputFile.rate_emuAnton Khirnov2011-09-231-0/+1
| |
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-09-121-319/+226
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (31 commits) audioconvert: add explanatory comments to channel_names array audioconvert: K&R whitespace cosmetics avconv: use correct index when selecting metadata to write to. avconv: fix inverted variable doc/avconv: document option types (input/output/per-stream/...) doc/avtools-common-opts: write a section about stream specifiers. doc/avconv: remove two pointless paragraphs. doc/avconv: document that global options should be specified first. doc/avconv: remove entries for nonexistent options doc/avconv: remove documentation for removed 'timestamp' option doc: cosmetics, rename fftools-common-opts to avtools-.... avconv: move streamid_map to options context. avconv: extend -vf syntax avconv: move top_field_first to options context. avconv: move inter/intra matrix to options context. avconv: remove -psnr option. avconv: remove me_threshold option. avconv: move video_rc_override_string to options context. avconv: move frame pixel format to the options context. avconv: move frame aspect ratio to the options context. ... Conflicts: avconv.c cmdutils_common_opts.h doc/avconv.texi Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avconv: use correct index when selecting metadata to write to.Anton Khirnov2011-09-111-2/+2
| |
| * avconv: fix inverted variableAnton Khirnov2011-09-111-1/+1
| |
| * avconv: move streamid_map to options context.Anton Khirnov2011-09-111-12/+10
| |
| * avconv: extend -vf syntaxAnton Khirnov2011-09-111-12/+20
| | | | | | | | | | Add a per-stream -filter option, make -vf an alias for -filter:v. Move vfilters to the options context.
| * avconv: move top_field_first to options context.Anton Khirnov2011-09-111-11/+10
| |
| * avconv: move inter/intra matrix to options context.Anton Khirnov2011-09-111-40/+40
| |
| * avconv: remove -psnr option.Anton Khirnov2011-09-111-5/+0
| | | | | | | | It's redundant -- -flags +psnr does the same thing.
| * avconv: remove me_threshold option.Anton Khirnov2011-09-111-12/+4
| | | | | | | | It's only shadowing the AVOption with the same name.
| * avconv: move video_rc_override_string to options context.Anton Khirnov2011-09-111-10/+5
| |
| * avconv: move frame pixel format to the options context.Anton Khirnov2011-09-111-27/+13
| | | | | | | | | | | | Also remove redundant -pix_fmt list syntax, it's inconsistent and only makes the code more complicated. -pix_fmts should be enough for everyone.
| * avconv: move frame aspect ratio to the options context.Anton Khirnov2011-09-111-8/+11
| |
| * avconv: move frame size to the options context.Anton Khirnov2011-09-111-31/+17
| |
| * avconv: move frame_rate to the options context.Anton Khirnov2011-09-111-49/+32
| |
| * avconv: move force_fps to the options context.Anton Khirnov2011-09-111-4/+9
| |
| * avconv: move forced_key_frames to the options context.Anton Khirnov2011-09-111-4/+5
| |
| * avconv: rewrite -qscale and -aq handling.Anton Khirnov2011-09-111-25/+17
| | | | | | | | | | | | 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.
| * avconv: move audio_sample_rate to the options context.Anton Khirnov2011-09-111-18/+10
| |
| * cmdutils: add support for programs in check_stream_specifier()Anton Khirnov2011-09-111-27/+17
| | | | | | | | Remove now redundant (and broken/undocumented) opt_programid.
| * avconv: move audio_sample_fmt to options context.Anton Khirnov2011-09-111-24/+12
| | | | | | | | | | Also document it and replace undocumented and inconsistent '-sample_fmt list' syntax with -sample_fmts.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-09-101-94/+53
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: Fixed segfault with wavpack decoder on corrupted decorrelation terms sub-blocks. avconv: move audio_channels to the options context. avconv: move *_disable to options context. avconv: remove -[vas]lang options. avconv: move codec tags to options context. cljr: init_get_bits size in bits instead of bytes indeo2: fail if input buffer too small indeo2: init_get_bits size in bits instead of bytes ffv1: Fixed size given to init_get_bits() in decoder. Conflicts: avconv.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avconv: move audio_channels to the options context.Anton Khirnov2011-09-101-16/+9
| |
| * avconv: move *_disable to options context.Anton Khirnov2011-09-101-21/+14
| |
| * avconv: remove -[vas]lang options.Anton Khirnov2011-09-101-19/+0
| | | | | | | | They are redundant, the same can be now accomplished with -metadata.
| * avconv: move codec tags to options context.Anton Khirnov2011-09-101-38/+30
| | | | | | | | Add a new -tag option, make -[vas]tag an alias for -tag:[vas]
* | lavfi: rename vsink_buffer.c to sink_buffer.c, and vsink_buffer.h to ↵Stefano Sabatini2011-09-061-1/+1
| | | | | | | | | | | | | | | | buffersink.h This is done in order to clarify the non-video-specific nature of the buffersink code, as the result of the video/audio API unification of the previous commit, and for improving overall consistency.
* | lavfi: unify asink_buffer and vsink_buffer APIStefano Sabatini2011-09-061-1/+9
| | | | | | | | | | | | | | | | | | The new API is more generic (no distinction between audio/video for pulling frames), and avoids code duplication. A backward compatibility layer is kept for avoiding tools ABI breaks (only for the video binary interface, audio interface was never used in the tools).
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2011-09-051-212/+225
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: ac3enc: Add channel coupling support for the fixed-point AC-3 encoder. ac3enc: scale floating-point coupling channel coefficients in scale_coefficients() rather than in apply_channel_coupling() ac3enc: fix encoding of stereo ac3 files when rematrixing is disabled. wavpack: fix wrong return value in wavpack_decode_block() avconv: fix parsing metadata specifiers. fate: use +frame+slice named constants instead of '3' mpeg12: propagate more real return values through chunk decode error return and fix some indentation wavpack: use context reset in appropriate places avconv: move mux_preload and mux_max_delay to options context avconv: move bitstream filters to options context. avconv: move rate_emu to options context. avconv: move max_frames to options context. avconv: move metadata to options context. avconv: move ts scale to options context. avconv: move chapter maps to options context. avconv: move metadata maps to options context. avconv: move codec_names to options context. Conflicts: avconv.c tests/fate-run.sh Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * avconv: fix parsing metadata specifiers.Anton Khirnov2011-09-051-1/+1
| | | | | | | | | | | | After 039267f192f335144d9251e6f05a1513dd1e8ef1, metadata specifiers are passed without the leading ':'. Remove a ++ that didn't take this into account.
| * avconv: move mux_preload and mux_max_delay to options contextAnton Khirnov2011-09-051-8/+9
| |
| * avconv: move bitstream filters to options context.Anton Khirnov2011-09-051-37/+22
| | | | | | | | | | Change syntax -- -[vas]bsf are replaced by -bsf:[stream specifier], the argument is now a comma-separated list of bitstream filters.