aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* tools: add an AV_CODEC_CAP_ENCODER_RECON_FRAME test toolAnton Khirnov2023-03-283-1/+397
|
* tools/decode_simple: initialize decoder parameters with container infoAnton Khirnov2023-03-281-0/+4
|
* tools/decode_simple: always call process_frame(NULL) at the endAnton Khirnov2023-03-281-4/+4
| | | | | | | Currently this would not be done if max_frames is triggered. Makes no difference in either of the tools currently using decode_simple, but may be important in future tools.
* lavfi: add hwdevice flag to hwupload/hwmapU. Artie Eoff2023-03-272-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a regression introduced by: commit 3f63685c3554aea7f72bab1fdbde440820816d37 and commit 632c34993195f716e9fa575af3de80d07fd50991 ...where command-lines like: ffmpeg -v verbose -hwaccel qsv \ -init_hw_device qsv=qsv,child_device=/dev/dri/renderD128 \ -hwaccel_output_format qsv -f rawvideo -pix_fmt yuv420p \ -s:v 352x288 -r:v 25 -i input.yuv \ -vf 'format=nv12,hwupload=extra_hw_frames=120' \ -an -c:v h264_qsv -y output.h264 ffmpeg -v verbose -hwaccel qsv \ -init_hw_device qsv=qsv,child_device=/dev/dri/renderD128 \ -hwaccel_output_format qsv -f rawvideo -pix_fmt nv12 \ -s:v 352x288 -r:v 25 -i input.yuv \ -vf 'format=nv12|qsv,hwupload=extra_hw_frames=16,vpp_qsv=procamp=1:saturation=1.0,hwdownload,format=nv12' \ -pix_fmt nv12 -f rawvideo -fps_mode passthrough -an -y output.yuv ...produced errors like: [hwupload @ 0x55b6171d0dc0] A hardware device reference is required to upload frames to. [Parsed_hwupload_1 @ 0x55b6172053c0] Query format failed for 'Parsed_hwupload_1': Invalid argument Error reinitializing filters! Failed to inject frame into filter network: Invalid argument Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavf: return AVERROR_EOF rather than EIO on EOFAnton Khirnov2023-03-276-6/+7
|
* fate: specify EC-off for damaged inter samplesJ. Dekker2023-03-272-8/+8
| | | | | | | | | The previous commit allowed turning on error correction for interlaced samples. Turning it off amounts to a no-op for FATE. These samples should be tested with EC1-3 (guess_mvs/deblock/favor_inter) additionally. Signed-off-by: J. Dekker <jdek@itanimul.li>
* lavc/vaapi_hevc: Remove duplicate codeFei Wang2023-03-271-6/+0
| | | | Signed-off-by: Fei Wang <fei.w.wang@intel.com>
* lavc/hevcdec: Initialize missed parameters in slice header for IDR frameFei Wang2023-03-271-2/+7
| | | | Signed-off-by: Fei Wang <fei.w.wang@intel.com>
* avcodec/hevcdec: Replace number with enumFei Wang2023-03-271-1/+1
| | | | | | Keep same style with IS_IDR()/IS_BLA(). Signed-off-by: Fei Wang <fei.w.wang@intel.com>
* avcodec/er: remove check for fieldsJ. Dekker2023-03-272-2/+8
| | | | | | | This change on its own is almost certainly not correct; however, in testing, many samples show notable improvement. Signed-off-by: J. Dekker <jdek@itanimul.li>
* configure: add LTO optargJ. Dekker2023-03-271-9/+11
| | | | | | | | This allows users to specify an argument such as './configure --enable-lto=thin' to use ThinLTO with Clang. The old functionality with './configure --enable-lto' is preserved. Signed-off-by: J. Dekker <jdek@itanimul.li>
* lavc/vp9: Add RGB* formats for VAAPI hwaccelFei Wang2023-03-271-0/+7
| | | | Signed-off-by: Fei Wang <fei.w.wang@intel.com>
* avformat/mxfenc: fix stored/sampled/displayed width/heightJerome Martinez2023-03-264-8/+27
| | | | | | | | | | | | | | | | | | | | According to MXF specs the Stored Rectangle corresponds to the data which is passed to the compressor and received from the decompressor, so they should contain the width / height extended to the macroblock boundary. In practice however width and height values rounded to the upper 16 multiples are only seen when muxing MPEG formats. Therefore this patch changes stored width and height values to unrounded for all non-MPEG formats, even macroblock based ones. For DNXHD the specs (ST 2019-4) explicitly indicates to use 1080 for 1088p. For ProRes the specs (RDD 44) only refer to to ST 377-1 without precision but no known commercial implementations are using rounded values. DV is not using 16x16 macroblocks, so 16 rounding makes no sense. The patch also fixes Sampled Width / Display Width to use unrounded values. Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/mxfenc: reindent after last mxfenc commitMarton Balint2023-03-261-36/+36
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* fftools/ffprobe: print crop_* frame fieldsJames Almer2023-03-2619-97/+281
| | | | | Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/mpegts: add support for preserving SMPTE 2038 when transcoding ↵Devin Heitmueller2023-03-263-2/+10
| | | | | | | | | | | | | | | | | MPEG-TS streams Add the appropriate descriptors to the MPEG-TS demux and mux to ensure that SMPTE 2038 VANC streams are properly preserved when using codec copy (including adding the appropriate PMT descriptors). The focus of this patch is TS input to TS output. A separate patch adds support for output of 2038 VANC over decklink SDI. Thanks to Marton Balint for feedback to preserve ABI compatibility. Signed-off-by: Devin Heitmueller <dheitmueller@ltnglobal.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* avcodec: add SMPTE 2038 VANC data codec used in MPEG-TS streamsDevin Heitmueller2023-03-263-2/+9
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* doc/ffmpeg: add vstats format documentationStefano Sabatini2023-03-261-10/+67
| | | | | Address issue: http://trac.ffmpeg.org/ticket/7520
* tests: Fix fate-source after 0fbae2178b4ffda298b10473aa6fe17ef524eff9Martin Storsjö2023-03-261-0/+1
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavfi/dnn: add error info for TF backend filling task failureTing Fu2023-03-261-0/+1
| | | | Signed-off-by: Ting Fu <ting.fu@intel.com>
* lavfi/dnn: fix mem leak in TF backend error handleTing Fu2023-03-261-0/+5
| | | | Signed-off-by: Ting Fu <ting.fu@intel.com>
* lavfi/dnn: fix corruption when TF backend infer failedTing Fu2023-03-261-14/+1
| | | | Signed-off-by: Ting Fu <ting.fu@intel.com>
* avfilter/vf_mcdeint: update to new APIMichael Niedermayer2023-03-263-14/+23
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_uspp: add AV_CODEC_FLAG_RECON_FRAME supportMichael Niedermayer2023-03-261-19/+34
| | | | | | about 50% faster (based on command line fps) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/snowenc: AV_CODEC_CAP_ENCODER_RECON_FRAME supportMichael Niedermayer2023-03-261-1/+9
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/tests/snowenc: Fix 2nd testMichael Niedermayer2023-03-261-2/+2
|
* avcodec/tests/snowenc: return a failure if DWT/IDWT mismatchesMichael Niedermayer2023-03-261-3/+10
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/snowenc: Fix visual weight calculationMichael Niedermayer2023-03-268-40/+44
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/tests/snowenc: unbreak DWT testsMichael Niedermayer2023-03-261-9/+14
| | | | | | the IDWT data type mismatched current code Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* mips: fix build fail on MIPS R6Junxian Zhu2023-03-263-3/+7
| | | | | | | | Add macro define to avoid causing build fail with incompatible assembler code on MIPS R6. Signed-off-by: Junxian Zhu <zhujunxian@oss.cipunited.com> Reviewed-by: Shiyou Yin <yinshiyou-hf@loongson.cn> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fftools/ffmpeg_mux_init: Use all metadata selectors if none is specified.Thilo Borgmann2023-03-251-3/+3
| | | | | Fixes regression from 3c7dd5ed37da6d2de06c4850de5a319ca9cdd47f. Fixes ticket #10157.
* avformat/mxfenc: SMPTE RDD 48:2018 Amd 1:2022 supportJerome Martinez2023-03-255-3/+169
|
* fftools/ffprobe: add support for HDR10+ packet side dataJames Almer2023-03-251-0/+3
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* x86/vf_bwdif_init: limit AVX2 functions using 256bit vectors to cpus known ↵James Almer2023-03-251-2/+2
| | | | | | to be fast with it Signed-off-by: James Almer <jamrial@gmail.com>
* lavf/mpeg: Add G.711 A law supportJun Zhao2023-03-251-0/+3
| | | | | | Add G.711 A law support Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* lavfi/Makefile: fix make checkheaders failJun Zhao2023-03-251-2/+2
| | | | | | | Add stack_internal.h to the list of skipped headers to fix make checkheaders fail, it's introduced by commit 742dfa281 Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* avfilter/bwdif: add avx2 filter_line functionJames Darnley2023-03-252-5/+36
| | | | | | | 8-bit: 2.24x faster (1925±1.3 vs. 859±2.2 decicycles) compared with ssse3 10-bit: 2.00x faster (1703±1.7 vs. 853±2.0 decicycles) compared with ssse3
* tests: add bwdif to fate filter testsJames Darnley2023-03-254-0/+143
|
* checkasm: add test for bwdifJames Darnley2023-03-255-0/+90
|
* avfilter/bwdif: move filter_line init to a dedicated functionJames Darnley2023-03-253-8/+12
|
* avutil/frame: move counters utilized in loops to their scopeJan Ekström2023-03-241-44/+32
| | | | | | This way we can clean up separate definitions in functions with just a single loop, as well as have no reuse between different loops' counters in functions with multiple.
* fftools/ffmpeg: supply hw_device_ctx to filters before initializing themAnton Khirnov2023-03-243-23/+31
| | | | | | | | | | This is more correct, but was not possible before the recently-added filtergraph parsing API. Also, only pass hw devices to filters that are flagged as capable of using them. Tested-by: Niklas Haas
* lavfi: add a flag for filters able to work with hw_device_ctxAnton Khirnov2023-03-2432-13/+55
| | | | | This way the caller can set it just on the filters that can make use of it.
* Revert "avcodec/arm/hevc: remove duplicate mov of deblock neon"Martin Storsjö2023-03-231-0/+2
| | | | | | | | | | This reverts commit 9413bdc381112711a7beb6d6b8d8fc4b4ff6ca01. That commit broke the fate HEVC tests - unfortunately I only tested checkasm for that patch, and that function is still lacking checkasm coverage. Signed-off-by: Martin Storsjö <martin@martin.st>
* avcodec/vorbisdec: export skip_samples instead of dropping framesJames Almer2023-03-221-8/+3
| | | | | | | | | | | | | | pts may not be set on input packets, which could result in the entire stream being discarded. This reverts commit 8fc2dedfe6e8fcc58dd052bf3b85cd4754133b17, reintroducing the behavior it replaced but now allowing the caller to manually drop the preroll samples by looking at the skip_samples side data at the start while ignoring it on seek, by setting the skip_manual avctx flag. Fixes ticket #10251. Suggested-by: Anton Khirnov <anton@khirnov.net> Signed-off-by: James Almer <jamrial@gmail.com>
* lavc/aarch64: add clip N macroJ. Dekker2023-03-222-14/+16
| | | | Signed-off-by: J. Dekker <jdek@itanimul.li>
* avcodec/arm/hevc: remove duplicate mov of deblock neonxufuji4562023-03-221-2/+0
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc/ass: error if not passed exactly 1 rectrcombs2023-03-211-15/+14
| | | | This never produced valid output.
* ffmpeg: send only one rect per packet when encoding ASSrcombs2023-03-211-10/+15
| | | | | The packet and rect formats are identical, so there's no support for multiple rects per packet.
* avutil: add HDR10+ dynamic metadata serialization functionRaphaël Zumer2023-03-214-1/+166
| | | | | | Co-authored-by: Mohammad Izadi <moh.izadi@gmail.com> Signed-off-by: Raphaël Zumer <rzumer@tebako.net> Signed-off-by: James Almer <jamrial@gmail.com>