summaryrefslogtreecommitdiffstats
path: root/doc
Commit message (Collapse)AuthorAgeFilesLines
* avfilter/af_surround: add support for some upmixing of 3.0, 2.1 and 5.1 ↵Paul B Mahol2017-06-041-1/+7
| | | | | | channel layout Signed-off-by: Paul B Mahol <onemda@gmail.com>
* libavfilter/scale2ref: Add constants for the primary inputKevin Mark2017-06-011-1/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Variables pertaining to the main video are now available when using the scale2ref filter. This allows, as an example, scaling a video with another as a reference point while maintaining the original aspect ratio of the primary/non-reference video. Consider the following graph: scale2ref=iw/6:-1 [main][ref] This will scale [main] to 1/6 the width of [ref] while maintaining the aspect ratio. This works well when the AR of [ref] is equal to the AR of [main] only. What the above filter really does is maintain the AR of [ref] when scaling [main]. So in all non-same-AR situations [main] will appear stretched or compressed to conform to the same AR of the reference video. Without doing this calculation externally there is no way to scale in reference to another input while maintaining AR in libavfilter. To make this possible, we introduce eight new constants to be used in the w and h expressions only in the scale2ref filter: * main_w/main_h: width/height of the main input video * main_a: aspect ratio of the main input video * main_sar: sample aspect ratio of the main input video * main_dar: display aspect ratio of the main input video * main_hsub/main_vsub: horiz/vert chroma subsample vals of main * mdar: a shorthand alias of main_dar Of course, not all of these constants are needed for maintaining the AR, but adding additional constants in line of what is available for in/out allows for other scaling possibilities I have not imagined. So to now scale a video to 1/6 the size of another video using the width and maintaining its own aspect ratio you can do this: scale2ref=iw/6:ow/mdar [main][ref] This is ideal for picture-in-picture configurations where you could have a square or 4:3 video overlaid on a corner of a larger 16:9 feed all while keeping the scaled video in the corner at its correct aspect ratio and always the same size relative to the larger video. I've tried to re-use as much code as possible. I could not find a way to avoid duplication of the var_names array. It must now be kept in sync with the other (the normal one and the scale2ref one) for everything to work which does not seem ideal. For every new variable introduced/removed into/from the normal scale filter one must be added/removed to/from the scale2ref version. Suggestions on how to avoid var_names duplication are welcome. var_values has been increased to always be large enough for the additional scale2ref variables. I do not forsee this being a problem as the names variable will always be the correct size. From my understanding of av_expr_parse_and_eval it will stop processing variables when it runs out of names even though there may be additional (potentially uninitialized) entries in the values array. The ideal solution here would be using a variable-length array but that is unsupported in C90. This patch does not remove any functionality and is strictly a feature patch. There are no API changes. Behavior does not change for any previously valid inputs. The applicable documentation has also been updated. Signed-off-by: Kevin Mark <kmark937@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter: add audio surround upmixerPaul B Mahol2017-06-011-0/+30
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* examples/encode_video: slightly improve error reportingStefano Sabatini2017-05-311-3/+4
|
* examples/encode_video: add logStefano Sabatini2017-05-311-1/+4
| | | | This helps to visualize how the send/receive API works.
* lavc: remove libschroedinger encoding and decoding wrappersRostislav Pehlivanov2017-05-292-2/+2
| | | | | | | | | The library has stopped being developed and Debian has removed it from its repositories citing security issues. The native Dirac decoder supports everything the library has and basic encoding support is still provided via the native vc2 (Dirac Pro, intra only version of Dirac) encoder. Hence, there's no reason to still support linking to the library and potentially leading users into security issues.
* doc/filters: Clarify scale2ref exampleKevin Mark2017-05-281-1/+1
| | | | | Signed-off-by: Kevin Mark <kmark937@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* doc/libav-merge: remove lines about AVFrame crop fieldsJames Almer2017-05-261-5/+0
|
* doc/libav-merge: remove line about aac_adtstoascJames Almer2017-05-241-1/+0
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter/af_sidechaincompress: change default makeup gain to 1Paul B Mahol2017-05-201-4/+4
| | | | | | This avoids producing out of range or clipped samples. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/graphparser: allow specifying filter@id as filter instanceMuhammad Faiz2017-05-191-3/+10
| | | | | | | | | | | | | | See http://lists.ffmpeg.org/pipermail/ffmpeg-user/2017-April/035975.html Parsed_filter_X could remain and user can override it with custom one. Example: ffplay -f lavfi "nullsrc=s=640x360, sendcmd='1 drawtext@top reinit text=Hello; 2 drawtext@bottom reinit text=World', drawtext@top=x=16:y=16:fontsize=20:fontcolor=Red:text='', drawtext@bottom=x=16:y=340:fontsize=16:fontcolor=Blue:text=''" Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* avfilter/af_sofalizer: make lfe gain user configurablePaul B Mahol2017-05-181-0/+3
| | | | | | Default settings have it too low. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* doc/filters: add more ladspa examplesPaul B Mahol2017-05-181-0/+25
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter: add audio crossfeed filterPaul B Mahol2017-05-171-0/+29
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* doc/filters: Added line to the af_bs2b filter docs mentioning --enable-libbs2bLeo Izen2017-05-161-0/+3
| | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_deflicker: add bypass optionPaul B Mahol2017-05-151-0/+3
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_stereotools: introduce different balance modesPaul B Mahol2017-05-151-0/+17
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* videotoolbox: add hwcontext supportwm42017-05-151-0/+8
| | | | | | | | | | | | | | | | | | This adds tons of code for no other benefit than making VideoToolbox support conform with the new hwaccel API (using hw_device_ctx and hw_frames_ctx). Since VideoToolbox decoding does not actually require the user to allocate frames, the new code does mostly nothing. One benefit is that ffmpeg_videotoolbox.c can be dropped once generic hwaccel support for ffmpeg.c is merged from Libav. Does not consider VDA or VideoToolbox encoding. Fun fact: the frame transfer functions are copied from vaapi, as the mapping makes copying generic boilerplate. Mapping itself is not exported by the VT code, because I don't know how to test.
* avfilter/af_compand: fix default companding to avoid clippingPaul B Mahol2017-05-141-1/+1
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_astats: add RMS difference tooPaul B Mahol2017-05-121-0/+5
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter: add acopy filterPaul B Mahol2017-05-121-1/+6
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* doc/libav-merge: mention the skipped AVFrame crop fields usage commitsJames Almer2017-05-111-0/+5
|
* ffmpeg: add enc_time_base optionerankor2017-05-101-0/+24
| | | | | | | | | | | add a per-stream option for setting the encoder timebase. the following values are allowed: 0 - for video, use 1/frame_rate, for audio use 1/sample_rate (this is the default) -1 - match the input timebase (when possible) >0 - set the timebase to provided number Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* doc/codecs: Change common boolean parameters listed to "bool"Michael Niedermayer2017-05-101-1/+1
| | | | | Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* doc/codecs: Add missing documentation for apply_croppingMichael Niedermayer2017-05-101-0/+10
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter: add arbitrary audio FIR filterPaul B Mahol2017-05-091-0/+43
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/vf_histogram: actually add parade display modePaul B Mahol2017-05-091-2/+5
| | | | | | Rename previous parade mode to stack, what it really was from start. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* Merge commit '019ab88a95cb31b698506d90e8ce56695a7f1cc5'James Almer2017-05-081-0/+4
|\ | | | | | | | | | | | | * commit '019ab88a95cb31b698506d90e8ce56695a7f1cc5': lavc: add an option for exporting cropping information to the caller Merged-by: James Almer <jamrial@gmail.com>
| * lavc: add an option for exporting cropping information to the callerAnton Khirnov2017-01-121-0/+4
| | | | | | | | | | Also, add generic code for handling cropping, so the decoders can export just the cropping size and not bother with the rest.
* | Merge commit '52627248e49e58eb4b78e4fcda90a64f4c476ea3'James Almer2017-05-081-0/+4
|\ \ | |/ | | | | | | | | | | * commit '52627248e49e58eb4b78e4fcda90a64f4c476ea3': frame: add a cropping rectangle to AVFrame Merged-by: James Almer <jamrial@gmail.com>
| * frame: add a cropping rectangle to AVFrameAnton Khirnov2017-01-121-0/+4
| | | | | | | | | | Extend the width/height doxy to clarify that it should store coded values.
* | doc/build_system: Document how to build decoder fuzzerMichael Niedermayer2017-05-081-0/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | doc: fix bistream typoMichael Niedermayer2017-05-081-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | doc/libav_merge: remove line about ADVANCED_PARSERJames Almer2017-05-051-1/+0
| | | | | | | | | | | | | | | | It's been addressed. Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com> Reviewed-by: Aaron Levinson <alevinsn@aracnet.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | lavu/sha512: update length argument following sha+md5 changesClément Bœsch2017-05-051-1/+1
| |
* | Merge commit 'e435beb1ea5380a90774dbf51fdc8c941e486551'Clément Bœsch2017-05-051-0/+4
|\ \ | |/ | | | | | | | | | | * commit 'e435beb1ea5380a90774dbf51fdc8c941e486551': crypto: consistently use size_t as type for length parameters Merged-by: Clément Bœsch <cboesch@gopro.com>
| * crypto: consistently use size_t as type for length parametersDiego Biurrun2017-01-091-0/+4
| | | | | | | | size_t is the correct type to use for sizes.
* | Merge commit '35d1f726eb9fdd376ab900587fb02122b72f2b9a'Clément Bœsch2017-05-051-0/+1
|\ \ | |/ | | | | | | | | | | * commit '35d1f726eb9fdd376ab900587fb02122b72f2b9a': fate: Add --ignore-tests configure option for omitting specific FATE tests Merged-by: Clément Bœsch <cboesch@gopro.com>
| * fate: Add --ignore-tests configure option for omitting specific FATE testsJanne Grunau2016-12-281-0/+1
| | | | | | | | | | | | | | | | | | This can be useful to filter out noise in known-broken scenarios like miscompilation by legacy compilers and similar. Originally based on a patch by Diego Biurrun. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | cuvid: support AVCodecContext.hw_device_ctx APIwm42017-05-051-0/+5
| | | | | | | | | | | | | | | | | | | | | | This is a newer API that is intended for decoders like the cuvid wrapper. Until now, the wrapper required to set an awkward "incomplete" hw_frames_ctx to set the device. Now the device can be set directly, and the user can get AV_PIX_FMT_CUDA output for a specific device simply by setting hw_device_ctx. This still does a dummy ff_get_format() call at init time, and should be fully backward compatible.
* | Merge commit '11a9320de54759340531177c9f2b1e31e6112cc2'Clément Bœsch2017-05-032-5/+5
|\ \ | |/ | | | | | | | | | | | | | | * commit '11a9320de54759340531177c9f2b1e31e6112cc2': build: Move build-system-related helper files to a separate subdirectory "ffbuild" directory name is used instead of "avbuild". Merged-by: Clément Bœsch <u@pkh.me>
* | avfilter/interlace: add complex vertical low-pass filterThomas Mundt2017-05-021-4/+23
| | | | | | | | | | | | | | This complex (-1 2 6 2 -1) filter slightly less reduces interlace 'twitter' but better retain detail and subjective sharpness impression compared to the linear (1 2 1) filter. Signed-off-by: Thomas Mundt <tmundt75@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | doc/developer: Add terse documentation of assumed C implementation defined ↵Michael Niedermayer2017-05-011-0/+5
| | | | | | | | | | | | | | behavior Suggested-by: "Ronald S. Bultje" <rsbultje@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avfilter: add video oscilloscope filterPaul B Mahol2017-04-291-0/+78
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avfilter: add pixscope filterPaul B Mahol2017-04-291-0/+23
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | doc/filters: add one lowpass filter examplePaul B Mahol2017-04-291-0/+9
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | libvpxenc: allow aq-mode 4 (equator360)James Zern2017-04-281-1/+1
| | | | | | | | | | | | | | this was added in 1.6.0 Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: James Zern <jzern@google.com>
* | Merge commit 'fa1749dd34c55fb997c97dfc4da9383c9976ab91'Clément Bœsch2017-04-251-0/+1
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | * commit 'fa1749dd34c55fb997c97dfc4da9383c9976ab91': vp9: split superframes in the filtering stage before actual decoding This commit is a noop. 2017-04-24 20:45:04 @ubitux BBB: btw, do you think you can get the bsf thing this week or we should skip it to give you more time and go on with the merges? 2017-04-24 20:45:20 @BBB I’m not sure I’ll finish it that soon 2017-04-24 20:45:26 @BBB I’d skip it and leave it for later 2017-04-24 20:45:35 @BBB I’ll do it, I promise, but I Can’t guarantee it’ll be done by $date Merged-by: Clément Bœsch <u@pkh.me>
* | avfilter/af_biquads: allow filtering only selected channelsPaul B Mahol2017-04-251-0/+26
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avfilter: add lumakey filterPaul B Mahol2017-04-241-0/+20
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
OpenPOWER on IntegriCloud