aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/h264: Fix memleak of a53_captionMichael Niedermayer2016-02-131-0/+3
| | | | | | Fixes Ticket5111 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/rawdec: Print stride and packet size at debug levelMats Peterson2016-02-131-0/+2
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/rawdec: Fix nut pal8 testMats Peterson2016-02-131-1/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/rawdec: Initialize default mono palette only for ↵Mats Peterson2016-02-131-1/+1
| | | | | | bits_per_coded_sample == 1 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* doc/filters: add one more blend examplePaul B Mahol2016-02-121-0/+6
| | | | | | This is faster than geq example below. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* doc/filters: add geq diagonal split screen exampleLou Logan2016-02-121-5/+2
| | | | | | | | | Also remove similar but confusing and less useful example. Based on geq expression by Patrick Race <raceink at gmail>. Signed-off-by: Lou Logan <lou@lrcd.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* aacenc: make a better estimate for the audio bitrate if not providedRostislav Pehlivanov2016-02-121-15/+31
| | | | | | | | | | | | | | Takes into account whether there's pairing and if there's an LFE channel. An SCE has more bits than CPE/2 since IS and M/S save quite a lot of bits when channels are paired. And most of the SCEs we have are in surround layouts which map it to the center channel, which usually carries all of the dialogue and compression artifacts there are easily audiable. Also refactors the init function a little bit and labels some parts of it. Fixes bug #5233 Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* doc/encoders: fix typos in the vc2 encoder documentationRostislav Pehlivanov2016-02-121-2/+2
| | | | | | Thanks to RiCON for pointing these out. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* MAINTAINERS: Remove myself as libutvideo maintainerDerek Buitenhuis2016-02-121-1/+0
| | | | | | I don't want to touch it, ever again. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* doc/encoders: add documentation for the VC-2 encoderRostislav Pehlivanov2016-02-121-0/+65
| | | | Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* avfilter/avf_showspectrum: improve pts handlingPaul B Mahol2016-02-121-3/+7
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_anequalizer: Avoid loss of precision when calculating nyquist ↵Michael Niedermayer2016-02-121-2/+2
| | | | | | | | | | frequency Fixes: CID1351398 Fixes: CID1351400 Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_zoompan: Initialize retMichael Niedermayer2016-02-121-1/+1
| | | | | | | Silences: CID1351394 Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_zoompan: Fix use of uninitialized variablesMichael Niedermayer2016-02-121-1/+1
| | | | | | | | | Fixes: CID1351392 Fixes: CID1351393 Fixes: CID1351395 Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/vc2enc_dwt: add missing headerJames Almer2016-02-121-0/+1
| | | | | | Fixes make checkheaders Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/h264_slice: Fix dequant table init with field picturesMichael Niedermayer2016-02-121-1/+1
| | | | | | Fixes regression of Ticket4389 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/h264_slice: assert relation between current_slice ans slice_ctxMichael Niedermayer2016-02-121-0/+3
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/h264_slice: remove duplicate unconditional picture_structure setting ↵Michael Niedermayer2016-02-121-1/+0
| | | | | | code Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/cfhd: Fix errors with valid files.Kieran Kunhya2016-02-121-3/+3
|
* avcodec/cfhd: Check the number of tag/value pairsMichael Niedermayer2016-02-121-0/+5
| | | | | | | | Fixes potentially long loop Fixes: CID1351382/11 Reviewed-by: Kieran Kunhya <kieran@kunhya.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/avf_ahistogram: assert that variables are initialized by switch()Michael Niedermayer2016-02-121-0/+2
| | | | | | Silences: CID1351397 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/avf_showfreqs: assert that variables are initialized by switch()Michael Niedermayer2016-02-121-0/+2
| | | | | | Silences: CID1351396 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_zoompan: Remove dead storeMichael Niedermayer2016-02-121-1/+0
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/avf_avectorscope: assert that variables are initialized by switch()Michael Niedermayer2016-02-111-0/+2
| | | | | | | Silences: CID1351390 Silences: CID1351391 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vaf_spectrumsynth: assert that variables are initialized by switch()Michael Niedermayer2016-02-111-0/+6
| | | | | | | | Silences: CID1351387 Silences: CID1351388 Silences: CID1351389 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* doc/filters: fix metadata examplePaul B Mahol2016-02-111-1/+1
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/f_metadata: rename "string" into "same_str"Tobias Rapp2016-02-112-24/+17
| | | | | | | Rename function option value "string" into "same_str". Remove obsolete "length" option. Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* avfilter/f_metadata: whitespace clean-upTobias Rapp2016-02-111-8/+8
| | | | Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* avfilter/f_metadata: add starts_with string functionTobias Rapp2016-02-112-0/+14
| | | | Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* avfilter/f_metadata: add support for file outputTobias Rapp2016-02-112-5/+67
| | | | Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* avfilter/f_metadata: avoid float rounding problemsTobias Rapp2016-02-111-3/+5
| | | | Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* avfilter/vf_nnedi: Simplify away some trivial mem*()Michael Niedermayer2016-02-111-7/+2
| | | | | Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fate: Update fate-sub2video for 5486d7fa91f7233e6d9aa9ba8de7fe9287402637Michael Niedermayer2016-02-111-1/+84
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* MAINTAINERS: add my name to the parts I'm maintainingRostislav Pehlivanov2016-02-111-0/+3
| | | | | | Not updated since the AAC Encoder. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* x86/vf_blend: Add SSE2 optimization for screenTimothy Gu2016-02-102-0/+31
| | | | | | 10x faster than C. Reviewed-by: Paul B Mahol <onemda@gmail.com>
* x86/vf_blend: Move multiplying to a macroTimothy Gu2016-02-101-6/+10
| | | | Reviewed-by: Paul B Mahol <onemda@gmail.com>
* avfilter/dualinput: use pts provided by framesyncPaul B Mahol2016-02-101-1/+1
| | | | | | This fixes stalled output pts when main stream ends. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avformat/hlsenc: Fix filename and optionsMichael Niedermayer2016-02-101-1/+1
| | | | | | Regression since bc9a5965c815cf7fd998d8ce14a18b8e861dd9ce Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* vc2enc: use project-standard inclusion guardsRostislav Pehlivanov2016-02-101-3/+3
| | | | | | | This was first reported on the mailing list in an earlier revision of this encoder but was forgotten from the final commit. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* avformat: add vc2 as an allowed rawenc Dirac extensionRostislav Pehlivanov2016-02-101-1/+1
| | | | Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* avcodec: add a native SMPTE VC-2 HQ encoderRostislav Pehlivanov2016-02-106-1/+1482
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds a new encoder capable of creating BBC/SMPTE Dirac/VC-2 HQ profile files. Dirac is a wavelet based codec created by the BBC a little more than 10 years ago. Since then, wavelets have mostly gone out of style as they did not provide adequate encoding gains at lower bitrates. Dirac was a fully featured video codec equipped with perceptual masking, support for most popular pixel formats, interlacing, overlapped-block motion compensation, and other features. It found new life after being stripped of various features and standardized as the VC-2 codec by the SMPTE with an extra profile, the HQ profile that this encoder supports, added. The HQ profile was based off of the Low-Delay profile previously existing in Dirac. The profile forbids DC prediction and arithmetic coding to focus on high performance and low delay at higher bitrates. The standard bitrates for this profile vary but generally 1:4 compression is expected (~525 Mbps vs the 2200 Mbps for uncompressed 1080p50). The codec only supports I-frames, hence the high bitrates. The structure of this encoder is simple: do a DWT transform on the entire image, split it into multiple slices (specified by the user) and encode them in parallel. All of the slices are of the same size, making rate control and threading very trivial. Although only in C, this encoder is capable of 30 frames per second on an 4 core 8 threads Ivy Bridge. A lookup table is used to encode most of the coefficients. No code was used from the GSoC encoder from 2007 except for the 2 transform functions in diracenc_transforms.c. All other code was written from scratch. This encoder outperforms any other encoders in quality, usability and in features. Other existing implementations do not support 4 level transforms or 64x64 blocks (slices), which greatly increase compression. As previously said, the codec is meant for broadcasting, hence support for non-broadcasting image widths, heights, bit depths, aspect ratios, etc. are limited by the "level". Although this codec supports a few chroma subsamplings (420, 422, 444), signalling those is generally outside the specifications of the level used (3) and the reference decoder will outright refuse to read any image with such a flag signalled (it only supports 1920x1080 yuv422p10). However, most implementations will happily read files with alternate dimensions, framerates and formats signalled. Therefore, in order to encode files other than 1080p50 yuv422p10le, you need to provide an "-strict -2" argument to the command line. The FFmpeg decoder will happily read any files made with non-standard parameters, dimensions and subsamplings, and so will other implementations. IMO this should be "-strict -1", but I'll leave that up for discussion. There are still plenty of stuff to implement, for instance 5 more wavelet transforms are still in the specs and supported by the decoder. The encoder can be lossless, given a high enough bitrate. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* options_table: update maximum bitrate limitRostislav Pehlivanov2016-02-101-1/+1
| | | | | | | The type of the option has been changed but the limit was apparently forgotten. Some video codes can handle bitrates of over ~2.2 Gbps (like VC-2). Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* avformat/segment: Fix header_filename handlingMichael Niedermayer2016-02-101-1/+3
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* sws/output: fix ordered dither threshold for mono outputMichael Niedermayer2016-02-1022-53/+53
| | | | | | This makes sure that white stays white and black black Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* Merge commit '9f61abc8111c7c43f49ca012e957a108b9cc7610'Derek Buitenhuis2016-02-1019-132/+177
|\ | | | | | | | | | | | | | | | | This also deprecates our old duplicated callbacks. * commit '9f61abc8111c7c43f49ca012e957a108b9cc7610': lavf: allow custom IO for all files Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * lavf: allow custom IO for all filesAnton Khirnov2016-01-2415-68/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Some (de)muxers open additional files beyond the main IO context. Currently, they call avio_open() directly, which prevents the caller from using custom IO for such streams. This commit adds callbacks to AVFormatContext that default to avio_open2()/avio_close(), but can be overridden by the caller. All muxers and demuxers using AVIO are switched to using those callbacks instead of calling avio_open()/avio_close() directly. (de)muxers that use the URLProtocol layer directly instead of AVIO remain unconverted for now. This should be fixed in later commits.
* | ffmpeg_filter: Factor get_compliance_unofficial_pix_fmts() outMichael Niedermayer2016-02-101-20/+24
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | ffmpeg_filter: Add missing pixel formats to strict_std_compliance case for ljpegMichael Niedermayer2016-02-101-2/+4
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | ffmpeg_filter: Add YUV 444 to strict_std_compliance case for mjpegMichael Niedermayer2016-02-101-1/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avfilter/f_metadata: fix few logic errorsPaul B Mahol2016-02-102-8/+8
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>