summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* avcodec/amfenc: HDR metadata.nyanmisaka2024-09-041-0/+83
| | | | | v2: fixes for indentation Signed-off-by: Dmitrii Ovchinnikov <[email protected]>
* avcodec/amfenc: Fixes the color information in the output.Michael Fabian 'Xaymar' Dirks2024-09-044-5/+90
| | | | | | | | | | | | | | | | | | | | | | | | | | | added 10 bit support for amf hevc. before: command - ffmpeg.exe -hide_banner -y -hwaccel d3d11va -hwaccel_output_format d3d11 -i test_10bit_file.mkv -an -c:v h264_amf res.dx11_hw_h264.mkv output - Format of input frames context (p010le) is not supported by AMF. command - ffmpeg.exe -hide_banner -y -hwaccel d3d11va -hwaccel_output_format d3d11 -i test_10bit_file -an -c:v hevc_amf res.dx11_hw_hevc.mkv output - Format of input frames context (p010le) is not supported by AMF. after: command - ffmpeg.exe -hide_banner -y -hwaccel d3d11va -hwaccel_output_format d3d11 -i test_10bit_file -an -c:v h264_amf res.dx11_hw_h264.mkv output - 10-bit input video is not supported by AMF H264 encoder command - ffmpeg.exe -hide_banner -y -hwaccel d3d11va -hwaccel_output_format d3d11 -i test_10bit_file -an -c:v hevc_amf res.dx11_hw_hevc.mkv output - 10bit file v2 - lost line returned in ff_amf_pix_fmts v3 - fixes after review v4 - extract duplicated code, fix incorrect processing of 10-bit input for h264 v5 - non-functional changes after review Co-authored-by: Evgeny Pavlov <[email protected]> Co-authored-by: Araz Iusubov <[email protected]> Signed-off-by: Dmitrii Ovchinnikov <[email protected]>
* fftools/ffmpeg: Fix honor -r output option with streamcopyNicolas Gaullier2024-09-042-2/+1
| | | | | | | | | | | | | | | Fix "ost->st->avg_frame_rate = ost->frame_rate" in streamcopy_init() being reset to input's frame rate a few lines below. Note that in current code, there are some discrepancies amongst the muxers. For example, avienc relies on time_base, so it is not affected by this patch, whereas mxfenc and matroskaenc do use avg_frame_rate, so this patch fixes -r being honored. In the updated fate test, the input is (wrongly) probed as 50fps. With this patch, the correct value (25fps) is successfully forced with -r. Signed-off-by: Nicolas Gaullier <[email protected]> Signed-off-by: Anton Khirnov <[email protected]>
* tests: Remove void -time_base overrides when streamcopying to mxfNicolas Gaullier2024-09-041-2/+2
| | | | | Signed-off-by: Nicolas Gaullier <[email protected]> Signed-off-by: Anton Khirnov <[email protected]>
* avformat/mxfenc: Fix guess frame_rateNicolas Gaullier2024-09-042-3/+7
| | | | | | | | | | | | | | | | | | | The time_base was a bad guess. Currently, fate-time_base test data assumed that overriding the input time_base would affect the frame_rate, but this behaviour is not documented, so just fix the fate data now that this is fixed. Fix regression since 10185e2d4c1e9839bc58a1d6a63c861677b13fd0: previously, when streamcopying, the time_base was guessed from the frame_rate considering it is often constant, so guessing the frame_rate back from the time_base was often not a problem. To reproduce: ffmpeg -i fate-suite/mpeg2/dvd_still_frame.vob -an -c copy out.mxf Signed-off-by: Nicolas Gaullier <[email protected]> Signed-off-by: Anton Khirnov <[email protected]>
* lavc/qsvenc: Remove duplicate include header fileFei Wang2024-09-042-4/+0
| | | | Signed-off-by: Fei Wang <[email protected]>
* doc/av1_qsv: Add missed optionsFei Wang2024-09-041-0/+8
| | | | Signed-off-by: Fei Wang <[email protected]>
* doc/av1_qsv: Fix typoFei Wang2024-09-041-1/+1
| | | | Signed-off-by: Fei Wang <[email protected]>
* avcodec/dnxhdenc: use BlockDSPContext from MpegEncContextRamiro Polla2024-09-032-6/+5
| | | | | MpegEncContext already has a BlockDSPContext, so we don't need another one for DNXHDEncContext (which has an MpegEncContext).
* avcodec/mpegvideo: remove redundant workaround to recalculate last nonzero ↵Ramiro Polla2024-09-032-10/+5
| | | | | | | | | | | | | | | | | coefficient The x86 optimized dct_quantize only calculates the last nonzero coefficient correctly if the zigzag scan order is used. For the alternate scan order, this value is incorrect. To work around this, the dct_unquantize functions process the entire block if the alternate scan order is used. But a second workaround (bb198e198ab) was added that recalculates the last nonzero coefficient after dct_quantize is called if the alternate scan order is used. This commit removes the first workaround, which became redundant.
* avcodec/x86/mpegvideoenc: remove av_assert2() for variable alignmentRamiro Polla2024-09-031-2/+0
| | | | | | | It's safe to assume that LOCAL_ALIGNED_16 does indeed align. Otherwise we would have many more problems... This assert was added in f8188626 all the way back in 2003.
* avcodec/vvcdec: fix potential deadlock in report_frame_progressNuo Mi2024-09-032-8/+13
| | | | | | | | | | | | | | Fixes: https://fate.ffmpeg.org/report.cgi?slot=x86_64-archlinux-gcc-tsan&time=20240823175808 Reproduction steps: ./configure --enable-memory-poisoning --toolchain=gcc-tsan --disable-stripping && make fate-vvc Root cause: We hold the current frame's lock while updating progress for other frames, which also requires acquiring other frame locks. This could potentially lead to a deadlock. However, I don't think this will happen in practice because progress updates are one-way, with no cyclic dependencies. But we need this patch to make FATE happy.
* lavc/vvc: Fix assertion bound on qPy_{a,b}Frank Plowman2024-09-031-2/+2
| | | | Signed-off-by: Frank Plowman <[email protected]>
* cbs_av1: Copy loop filter and segment parameters of repeat frame from its ↵Fei Wang2024-09-032-8/+33
| | | | | | | | | | | mapped frame Implement load/save loop filter and segment parameters defined in section 7.20 and 7.21 in spec for show_existing_frame frames. Fixes ticket #11151. Signed-off-by: Fei Wang <[email protected]>
* avformat/libzmq: fix check for zmq protocol prefixMarton Balint2024-09-021-1/+1
| | | | | | Fixes ticket #11134. Signed-off-by: Marton Balint <[email protected]>
* avformat/mxfdec: disallow generic seek searchMarton Balint2024-09-021-1/+1
| | | | | | | | | | If the demuxer does not provide per-stream indexes, the generic seek search can attempt to read the whole media file from the beginning when seeking. For large MXF files this can cause huge lockups for a seek after the last timestamp, which will eventually fail. So let's disable the generic seek for mxf, the demuxer's own seek code should handle seeking just fine. Signed-off-by: Marton Balint <[email protected]>
* avformat/rtsp: extend the PATH buffer to 2048Stefano Mandelli2024-09-021-1/+1
| | | | | | | | | | | | | | | | Recently, I have been experiencing an increasing number of user that use ffmpeg to retrive RTSP stream from personal mediaproxies (e.g. MediaMtx) with authorization based on JWT. The current length of PATH does not permit to insert the token in the URL failing the authorization with no possibilities to get the video. VLC has just modified the RSTP max URL length, and it permits to use token inside the URL. For these reasons, I propose this patch to extend the PATH buffer from 1024 to 2048 in order to use tokens and the authorization process based on JWT. Signed-off-by: Marton Balint <[email protected]>
* lavc/opus*: move to opus/ subdirAnton Khirnov2024-09-0231-71/+100
|
* lavfi/af_aformat: convert to query_func2()Anton Khirnov2024-09-021-6/+8
|
* lavfi/af_aformat: change options from strings to arraysAnton Khirnov2024-09-021-98/+64
| | | | | Allows to drop custom parsing code, and also the assumption that query_formats() is not called more than once.
* lavfi/af_afir: convert to query_func2()Anton Khirnov2024-09-021-13/+12
| | | | | | Drop redundant ff_set_common_all_channel_counts() / ff_set_common_all_samplerates() calls, since those happen implicitly in generic code.
* lavfi/af_adynamicequalizer: convert to query_func2()Anton Khirnov2024-09-021-8/+8
| | | | | | Drop redundant ff_set_common_all_channel_counts() / ff_set_common_all_samplerates() calls, since those happen implicitly in generic code.
* lavfi/af_acrossover: convert to query_func2()Anton Khirnov2024-09-021-8/+8
| | | | | | Drop redundant ff_set_common_all_channel_counts() / ff_set_common_all_samplerates() calls, since those happen implicitly in generic code.
* lavfi/af_aap: convert to query_func2()Anton Khirnov2024-09-021-8/+8
| | | | | | Drop redundant ff_set_common_all_channel_counts() / ff_set_common_all_samplerates() calls, since those happen implicitly in generic code.
* lavfi/aeval: convert to query_func2()Anton Khirnov2024-09-021-19/+18
| | | | | | Drop redundant ff_set_common_all_channel_counts() / ff_set_common_all_samplerates() calls, since those happen implicitly in generic code.
* lavfi: add query_func2()Anton Khirnov2024-09-026-36/+347
| | | | | | | | It differs from query_func() in accepting arrays of input/output format configurations to be filled as callback parameters. This allows to mark the filter context as const, ensuring it is not modified by this function, as it is not supposed to have any side effects beyond returning the supported formats.
* x86/h264_weight: don't do arithmetic right shift of a 32bit values in 64bit ↵James Almer2024-09-011-2/+2
| | | | | | registers Signed-off-by: James Almer <[email protected]>
* configure: improve check for POSIX ioctlRamiro Polla2024-09-012-1/+3
| | | | | Instead of relying on system #ifdefs which may or may not be correct, detect the POSIX ioctl signature at configure time.
* avcodec/mpegvideoencdsp: convert stride parameters from int to ptrdiff_tRamiro Polla2024-09-0112-49/+53
|
* lavc: Check codec_whitelist early in avcodec_open2()Dale Curtis2024-09-011-8/+8
| | | | | | | | | This ensures that if a codec isn't on codec_whitelist, trying to open it will not trigger ff_codec_close(), which could invalidate useful information still present in the context. Signed-off-by: Dale Curtis <[email protected]> Signed-off-by: Anton Khirnov <[email protected]>
* avcodec: add Mediacodec audio decoders supportMatthieu Bouron2024-09-016-31/+421
| | | | Signed-off-by: Matthieu Bouron <[email protected]>
* lavc/h264dsp: R-V V loop_filter_chromaRémi Denis-Courmont2024-09-012-15/+99
| | | | | | T-Head C908: h264_v_loop_filter_chroma_8bpp_c: 137.4 h264_v_loop_filter_chroma_8bpp_rvv_i32: 54.2
* lavc/h264dsp: do not write back unmodified rows in R-V V loop filterRémi Denis-Courmont2024-09-011-2/+4
|
* avfilter/formats: correct error messageGyan Doshi2024-09-011-1/+1
| | | | The check is for color space, not range.
* avformat/iamf_parser: use ffio_read_size() where usefulJames Almer2024-08-311-24/+16
| | | | Signed-off-by: James Almer <[email protected]>
* avformat/iamf_parse: Fix return of uninitialized valueMarvin Scholz2024-08-311-1/+2
| | | | | | | | | | | The ret value here is not yet intialized so the return would return uninitialized data. What was probably meant to be checked here was the return value of ffio_read_size, which can return an error. Introduced in 38bcb3ba7b3424abd772c72f8bdf445d75285e88 Fixes: CID1618758 Signed-off-by: James Almer <[email protected]>
* MAINTAINERS: Add webpage link to our mailing list pageMichael Niedermayer2024-08-311-1/+1
| | | | Signed-off-by: Michael Niedermayer <[email protected]>
* MAINTAINERS: Add 2 git repositoriesMichael Niedermayer2024-08-311-2/+2
| | | | Signed-off-by: Michael Niedermayer <[email protected]>
* MAINTAINERS: Add T field based on the linux kernel MAINTAINERsMichael Niedermayer2024-08-311-0/+3
| | | | | | | | | | | Text was stolen from the linux kernel This is thus identical to the kernel just a different more compact format. I am very happy also to switch the file entirely to the format of the linux kernel maintainer list if people prefer This allows specifying a git repository for an area Signed-off-by: Michael Niedermayer <[email protected]>
* MAINTAINERS: Add a profile entry for fateMichael Niedermayer2024-08-311-1/+1
| | | | Signed-off-by: Michael Niedermayer <[email protected]>
* MAINTAINERS: Add P field based on the linux kernel MAINTAINERsMichael Niedermayer2024-08-311-0/+4
| | | | | | | | | | | Text was stolen from the linux kernel This is thus identical to the kernel just a different more compact format. I am very happy also to switch the file entirely to the format of the linux kernel maintainer list if people prefer This allows specifying more details than what fits on a single line Signed-off-by: Michael Niedermayer <[email protected]>
* MAINTAINERS: Add B field based on the linux kernel MAINTAINERsMichael Niedermayer2024-08-311-0/+2
| | | | | | | | | | | | Text was stolen from the linux kernel This is thus identical to the kernel just a different more compact format. I am very happy also to switch the file entirely to the format of the linux kernel maintainer list if people prefer This allows specifying a bug tracker. It would allow a maintainer to use gitlab, github, or something else to keep track of bugs Signed-off-by: Michael Niedermayer <[email protected]>
* MAINTAINERS: Add some webpages to some areasMichael Niedermayer2024-08-311-4/+4
| | | | Signed-off-by: Michael Niedermayer <[email protected]>
* MAINTAINERS: Add W field based on the linux kernel MAINTAINERsMichael Niedermayer2024-08-311-0/+1
| | | | | | | | | | | Text was stolen from the linux kernel This is thus identical to the kernel just a different more compact format. I am very happy also to switch the file entirely to the format of the linux kernel maintainer list if people prefer This allows specifying a webpage for an area Signed-off-by: Michael Niedermayer <[email protected]>
* MAINTAINERS: Add some Mail aliases / mailing lists (aka how to contact the ↵Michael Niedermayer2024-08-311-4/+4
| | | | | | specific maintainers) Signed-off-by: Michael Niedermayer <[email protected]>
* MAINTAINERS: Add L field based on the linux kernel MAINTAINERsMichael Niedermayer2024-08-311-0/+1
| | | | | | | | | | | | Text was stolen from the linux kernel This is thus identical to the kernel just a different more compact format. I am very happy also to switch the file entirely to the format of the linux kernel maintainer list if people prefer This allows specifying a more specific mailing list, if a specific area has such a list. Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/iamf_parse: use get_bits_long() to read the remaining AAC extradata ↵James Almer2024-08-311-2/+2
| | | | | | | | | | | bits The output of put_bits_left() here can be as big as 27, which is a bit count not supported by get_bits(). Fixes fate-iamf-stereo-demux when using --assert-level=2 Signed-off-by: James Almer <[email protected]>
* fate/iamf: add a demuxing test for a stereo AAC IAMF sampleJames Almer2024-08-312-0/+124
| | | | Signed-off-by: James Almer <[email protected]>
* avformat/iamf_parse: fix parsing AAC DecoderConfigDescriptorJames Almer2024-08-311-10/+7
| | | | | | | | | Use ff_mp4_read_descr() to read both the tags and the vlc value that comes after it, which was not being taken into account. Ref: https://github.com/AOMediaCodec/libiamf/issues/119 Signed-off-by: James Almer <[email protected]>
* avformat/isom: make parameters used for loging a pointer to voidJames Almer2024-08-312-11/+11
| | | | Signed-off-by: James Almer <[email protected]>