Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-12-28avcodec/libx26[45]: add udu_sei option to import user data unregistered SEIsLimin Wang
Most of user data unregistered SEIs are privated data which defined by user/ encoder. currently, the user data unregistered SEIs found in input are forwarded as side-data to encoders directly, it'll cause the reencoded output including some useless UDU SEIs. I prefer to add one option to enable/disable it and default is off after I saw the patch by Andreas Rheinhardt: https://patchwork.ffmpeg.org/project/ffmpeg/patch/AM7PR03MB66607C2DB65E1AD49D975CF18F7B9@AM7PR03MB6660.eurprd03.prod.outlook.com/ How to test by cli: ffmpeg -y -f lavfi -i testsrc -c:v libx264 -frames:v 1 a.ts ffmpeg -y -i a.ts -c:v libx264 -udu_sei 1 b.ts ffmpeg -y -i a.ts -c:v libx264 -udu_sei 0 c.ts # check the user data unregistered SEIs, you'll see two UDU SEIs for b.ts. # and mediainfo will show with wrong encoding setting info ffmpeg -i b.ts -vf showinfo -f null - ffmpeg -i c.ts -vf showinfo -f null - This fixes tickets #9500 and #9557. Reviewed-by: "zhilizhao(赵志立)" <quinkblack@foxmail.com> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2021-09-29doc/encoders: add available values for libsvtav1 optionsLimin Wang
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2021-07-12avcodec/qsvenc: clip global_quality for ICQ modes.Gyan Doshi
Allowed range is 1 to 51. Ref: https://software.intel.com/content/www/us/en/develop/articles/advanced-bitrate-control-methods-in-intel-media-sdk.html
2021-05-23doc/encoders: update default coder for aacGyan Doshi
Changed in 660d1d8e3b.
2021-04-02doc/encoders: add entry for a64 encodersGyan Doshi
2021-03-16doc/encoders: Remove text about single bit-depth libx264 supportTobias Rapp
In the meanwhile libx264 allows to be configured for including both 8/10 bit support within a single library. The new libx264 interface was enabled in 2f96190732d15510ba29471fa45d66841c0c3df1. Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
2021-02-25doc/encoders: Add documentation for the GIF encoderDerek Buitenhuis
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2021-02-10avcodec/libaomenc: add support for setting arbitrary libaom optionsBohan Li
A new key & value API lets us gain access to newly added parameters without adding explicit support for them in our wrapper. Add an option utilizing this functionality in a similar manner to other encoder libraries' wrappers. Signed-off-by: Bohan Li <bohanli@google.com>
2021-01-14avcodec/libvpxenc: add a way to set VP9E_SET_SVC_REF_FRAME_CONFIGWonkap Jang
In order to fine-control referencing schemes in VP9 encoding, there is a need to use VP9E_SET_SVC_REF_FRAME_CONFIG method. This commit provides a way to use the API through frame metadata.
2021-01-14ac3enc_fixed: convert to 32-bit sample formatLynne
The AC3 encoder used to be a separate library called "Aften", which got merged into libavcodec (literally, SVN commits and all). The merge preserved as much features from the library as possible. The code had two versions - a fixed point version and a floating point version. FFmpeg had floating point DSP code used by other codecs, the AC3 decoder including, so the floating-point DSP was simply replaced with FFmpeg's own functions. However, FFmpeg had no fixed-point audio code at that point. So the encoder brought along its own fixed-point DSP functions, including a fixed-point MDCT. The fixed-point MDCT itself is trivially just a float MDCT with a different type and each multiply being a fixed-point multiply. So over time, it got refactored, and the FFT used for all other codecs was templated. Due to design decisions at the time, the fixed-point version of the encoder operates at 16-bits of precision. Although convenient, this, even at the time, was inadequate and inefficient. The encoder is noisy, does not produce output comparable to the float encoder, and even rings at higher frequencies due to the badly approximated winow function. Enter MIPS (owned by Imagination Technologies at the time). They wanted quick fixed-point decoding on their FPUless cores. So they contributed patches to template the AC3 decoder so it had both a fixed-point and a floating-point version. They also did the same for the AAC decoder. They however, used 32-bit samples. Not 16-bits. And we did not have 32-bit fixed-point DSP functions, including an MDCT. But instead of templating our MDCT to output 3 versions (float, 32-bit fixed and 16-bit fixed), they simply copy-pasted their own MDCT into ours, and completely ifdeffed our own MDCT code out if a 32-bit fixed point MDCT was selected. This is also the status quo nowadays - 2 separate MDCTs, one which produces floating point and 16-bit fixed point versions, and one sort-of integrated which produces 32-bit MDCT. MIPS weren't all that interested in encoding, so they left the encoder as-is, and they didn't care much about the ifdeffery, mess or quality - it's not their problem. So the MDCT/FFT code has always been a thorn in anyone looking to clean up code's eye. Backstory over. Internally AC3 operates on 25-bit fixed-point coefficients. So for the floating point version, the encoder simply runs the float MDCT, and converts the resulting coefficients to 25-bit fixed-point, as AC3 is inherently a fixed-point codec. For the fixed-point version, the input is 16-bit samples, so to maximize precision the frame samples are analyzed and the highest set bit is detected via ac3_max_msb_abs_int16(), and the coefficients are then scaled up via ac3_lshift_int16(), so the input for the FFT is always at least 14 bits, computed in normalize_samples(). After FFT, the coefficients are scaled up to 25 bits. This patch simply changes the encoder to accept 32-bit samples, reusing the already well-optimized 32-bit MDCT code, allowing us to clean up and drop a large part of a very messy code of ours, as well as prepare for the future lavu/tx conversion. The coefficients are simply scaled down to 25 bits during windowing, skipping 2 separate scalings, as the hacks to extend precision are simply no longer necessary. There's no point in running the MDCT always at 32 bits when you're going to drop 6 bits off anyway, the headroom is plenty, and the MDCT rounds properly. This also makes the encoder even slightly more accurate over the float version, as there's no coefficient conversion step necessary. SIZE SAVINGS: ARM32: HARDCODED TABLES: BASE - 10709590 DROP DSP - 10702872 - diff: -6.56KiB DROP MDCT - 10667932 - diff: -34.12KiB - both: -40.68KiB DROP FFT - 10336652 - diff: -323.52KiB - all: -364.20KiB SOFTCODED TABLES: BASE - 9685096 DROP DSP - 9678378 - diff: -6.56KiB DROP MDCT - 9643466 - diff: -34.09KiB - both: -40.65KiB DROP FFT - 9573918 - diff: -67.92KiB - all: -108.57KiB ARM64: HARDCODED TABLES: BASE - 14641112 DROP DSP - 14633806 - diff: -7.13KiB DROP MDCT - 14604812 - diff: -28.31KiB - both: -35.45KiB DROP FFT - 14286826 - diff: -310.53KiB - all: -345.98KiB SOFTCODED TABLES: BASE - 13636238 DROP DSP - 13628932 - diff: -7.13KiB DROP MDCT - 13599866 - diff: -28.38KiB - both: -35.52KiB DROP FFT - 13542080 - diff: -56.43KiB - all: -91.95KiB x86: HARDCODED TABLES: BASE - 12367336 DROP DSP - 12354698 - diff: -12.34KiB DROP MDCT - 12331024 - diff: -23.12KiB - both: -35.46KiB DROP FFT - 12029788 - diff: -294.18KiB - all: -329.64KiB SOFTCODED TABLES: BASE - 11358094 DROP DSP - 11345456 - diff: -12.34KiB DROP MDCT - 11321742 - diff: -23.16KiB - both: -35.50KiB DROP FFT - 11276946 - diff: -43.75KiB - all: -79.25KiB PERFORMANCE (10min random s32le): ARM32 - before - 39.9x - 0m15.046s ARM32 - after - 28.2x - 0m21.525s Speed: -30% ARM64 - before - 36.1x - 0m16.637s ARM64 - after - 36.0x - 0m16.727s Speed: -0.5% x86 - before - 184x - 0m3.277s x86 - after - 190x - 0m3.187s Speed: +3%
2020-10-02libwavpackenc: remove libwavpackenc wrapperLynne
The manual states "there is virtually no reason to use that encoder.". It supports less sample formats than the native encoder, is less efficient than the native encoder and is also slower and pretty much remains untested. libwavpack also isn't being fuzzed, which given that we plug the parameters without any sanitizing them looks concerning.
2020-09-09avcodec/libopusenc: add option to set inband FECGyan Doshi
2020-08-30libavcodec/j2kenc: Support for multiple layersGautam Ramakrishnan
This patch allows setting a compression ratio and to set multiple layers. The user has to input a compression ratio for each layer. The per layer compression ration can be set as follows: -layer_rates "r1,r2,...rn" for to create 'n' layers. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-08-17doc/encoders: Add all options for JPEG2000 encoderGautam Ramakrishnan
This patch updates the documentation by adding all options for JPEG2000 encoder. Revised-by: Gyan Doshi <ffmpeg@gyani.pro>
2020-08-14avcodec/mpeg12enc: support mpeg2 encoder const levelLimin Wang
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2020-08-01vaapi_encode_h265: Fix ordering of tile dimensionsMark Thompson
Dimensions are normally specified as width x height, and this will match the same option to libaom-av1. Remove the indirection through the private context at the same time.
2020-08-01vaapi_encode_h265: Remove confusing and redundant tile optionsMark Thompson
The tile_rows/cols options currently do a confusingly different thing to the options of the same name on other encoders like libvpx and libaom. There is no backward-compatibility reason to implement the log2 behaviour as there was for libaom, so just get rid of them entirely.
2020-08-01libsvtav1: Fix the documentation to match the actual optionsMark Thompson
2020-07-29avcodec: Add an SVT-AV1 encoder wrapperDaryl Seah
Signed-off-by: Daryl Seah <daryl.seah@intel.com> Signed-off-by: Jing SUN <jing.a.sun@intel.com> Signed-off-by: ZhiZhen Tang <zhizhen.tang@intel.com> Signed-off-by: Zhong Li <zhong.li@intel.com> Signed-off-by: Xu Guangxin <guangxin.xu@intel.com> Signed-off-by: James Almer <jamrial@gmail.com>
2020-07-25libavcodec/libaomenc.c: Add command-line options for inter-coding toolsWang Cao
Signed-off-by: Wang Cao <wangcao@google.com> Signed-off-by: James Zern <jzern@google.com>
2020-07-25libavcodec/libaomenc.c: Add command-line options for tx tools.Wang Cao
Signed-off-by: Wang Cao <wangcao@google.com> Signed-off-by: James Zern <jzern@google.com>
2020-07-20lavc/vaapi_encode_h265: add h265 tile encoding supportLinjie Fu
Default to enable uniform_spacing_flag. Guess level by the tile rows/cols. Supported for ICL+ platforms. Also add documentations. To encode with 4 rows 2 columns: ffmpeg ... -c:v hevc_vaapi -tiles 4x2 ... ffmpeg ... -c:v hevc_vaapi -tile_rows 4 -tile_cols 2 ... Suggested-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: Linjie Fu <linjie.justin.fu@gmail.com>
2020-07-08avcodec/libaomenc: fix build w/libaom v1.0.0James Zern
broken since: aa5c6f382b avcodec/libaomenc: Add command-line options to control the use of partition tools Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: James Zern <jzern@google.com>
2020-07-01avcodec/libaomenc: Add command-line options for intra-coding toolsWang Cao
Signed-off-by: Wang Cao <wangcao@google.com> Signed-off-by: James Zern <jzern@google.com>
2020-07-01avcodec/libaomenc: Add command-line options to control the use of partition ↵Wang Cao
tools This patch adds the control for enabling rectangular partitions, 1:4/4:1 partitions and AB shape partitions. Signed-off-by: Wang Cao <wangcao@google.com> Signed-off-by: James Zern <jzern@google.com>
2020-06-20doc/encoders: fix the misleading usage of profileLimin Wang
users are getting mislead by the integer, although profile can support both const string and integer. http://ffmpeg.org/pipermail/ffmpeg-user/2020-June/049025.html Also fix the order of high and main, it's not my intention. Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2020-06-01avcodec/mpeg12enc: support mpeg2 encoder const profileLimin Wang
Reviewed-by: Marton Balint <cus@passwd.hu> Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
2020-05-19avcodec: Add MediaFoundation encoder wrapperwm4
This contains encoder wrappers for H264, HEVC, AAC, AC3 and MP3. This is based on top of an original patch by wm4 <nfxjfg@googlemail.com>. The original patch supported both encoding and decoding, but this patch only includes encoding. The patch contains further changes by Paweł Wegner <pawel.wegner95@gmail.com> (primarily for splitting out the encoding parts of the original patch) and further cleanup, build compatibility fixes and tweaks for use with Qualcomm encoders by Martin Storsjö. Signed-off-by: Martin Storsjö <martin@martin.st>
2020-05-08doc/encoders: remove unsubstantiated ffaacenc > fdk-aac claimLou Logan
After this claim was made in e34e361 kamedo2 did an in-depth ABX test comparing these encoders: https://hydrogenaud.io/index.php?topic=111085.0 Result: FFmpeg AAC wasn't as good as libfdk_aac on average. I know some things have changed since then such as, "use the fast coder as the default" (fcb681ac) for example, so maybe the situation is different now. However, I am unaware of any recent comparison. So without any substantiation we shouldn't make such a blantant claim. Signed-off-by: Lou Logan <lou@lrcd.com> Signed-off-by: Gyan Doshi <ffmpeg@gyani.pro>
2020-04-12avcodec/libaomenc.c: Add a libaom command-line option 'tune'Wang Cao
Signed-off-by: Wang Cao <wangcao@google.com> Signed-off-by: James Zern <jzern@google.com>
2020-02-11avcodec/libvpxenc: add a way to explicitly set temporal layer idWonkap Jang
In order for rate control to correctly allocate bitrate to each temporal layer, correct temporal layer id has to be set to each frame. This commit provides the ability to set correct temporal layer id for each frame. Signed-off-by: James Zern <jzern@google.com>
2020-02-05lavc/dvdsubenc: accept palette from optionsMichael Kuron
Previously, the default palette would always be used. Now, we can accept a custom palette, just like dvdsubdec does. Signed-off-by: Michael Kuron <michael.kuron@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2020-02-03avcodec/libvpxenc: add VP9 temporal scalability encoding optionWonkap Jang
This commit reuses the configuration options for VP8 that enables temporal scalability for VP9. It also adds a way to enable three preset temporal structures (refer to the documentation for more detail) that can be used in offline encoding. Signed-off-by: James Zern <jzern@google.com>
2020-01-18Add a commandline option to control loop restoration for libaomWang Cao
Signed-off-by: Wang Cao <wangcao@google.com> Signed-off-by: James Zern <jzern@google.com>
2020-01-01avcodec/libx265: add a qp option and apply the relevant global ↵James Almer
AVCodecContext settings to the encoder context Signed-off-by: James Almer <jamrial@gmail.com>
2020-01-01avcodec/libx265: apply some global AVCodecContext settings to the encoder ↵James Almer
context There's no reason to ignore them if set. Signed-off-by: James Almer <jamrial@gmail.com>
2019-12-20doc/encoders: correct the description for ts_target_bitrateWonkap Jang
ts_target_bitrate is in kbps, not bps. This commit clarifies the unit and modifies the example to match the description. Signed-off-by: James Zern <jzern@google.com>
2019-11-28doc/encoder: add the missing qsv encodersZhong Li
Reviewed-by: Gyan Doshi <ffmpeg@gyani.pro> Signed-off-by: Zhong Li <zhongli_dev@126.com>
2019-11-28lavc/rav1e: log and doc updated for const quantizer modeZhong Li
Signed-off-by: Zhong Li <zhongli_dev@126.com>
2019-11-10avcodec: Add librav1e encoderDerek Buitenhuis
Port to the new send/receive API by: James Almer <jamrial@gmail.com>. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2019-05-28doc/encoders: Document eld_v2 option for libfdk_aac encoder.Jun Zhao
Document eld_v2 option for libfdk_aac encoder. Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2019-04-18doc/encoders: Fix libvpx option name arnr-maxframes.Carl Eugen Hoyos
Fixes ticket #7856.
2019-04-18Updated documentation for libaom encoder options.Sam John
Signed-off-by: Gyan Doshi <ffmpeg@gyani.pro>
2019-03-16mpeg12enc: Use Closed Captions if availableMathieu Duponchelle
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-02-26vaapi_encode: Support more RC modesMark Thompson
Allow setting the mode explicitly, and try to make a sensible choice given the available parameters if not.
2019-01-24vaapi_encode: Convert to send/receive APIMark Thompson
This attaches the logic of picking the mode of for the next picture to the output, which simplifies some choices by removing the concept of the picture for which input is not yet available. At the same time, we allow more complex reference structures and track more reference metadata (particularly the contents of the DPB) for use in the codec-specific code. It also adds flags to explicitly track the available features of the different codecs. The new structure also allows open-GOP support, so that is now available for codecs which can do it.
2019-01-04doc/encoders: Update docs for libxavs2Jun Zhao
Update standard libavcodec options for libxavs2 Signed-off-by: Jun Zhao <mypopydev@gmail.com>
2018-12-25avcodec/libvpxenc: add VP8/9 sharpness config optionRene Claus
This commit adds configuration options to libvpxenc.c that can be used to tune the sharpness parameter for VP8 and VP9. Signed-off-by: Rene Claus <rclaus@google.com> Signed-off-by: James Zern <jzern@google.com>
2018-12-19doc/encoders: Fix colums typoMichael Niedermayer
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2018-12-09avcodec/libaomenc: add row-mt optionJames Almer
Default to disable, same as aomenc. Fixes ticket #7598 Signed-off-by: James Almer <jamrial@gmail.com>