aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples
Commit message (Collapse)AuthorAgeFilesLines
* doc/examples/qsv_decode: use av_err2strTristan Matthews2025-05-221-5/+2
| | | | Signed-off-by: Marvin Scholz <epirat07@gmail.com>
* doc/examples/filter_audio: use av_err2strTristan Matthews2025-05-221-3/+1
| | | | Signed-off-by: Marvin Scholz <epirat07@gmail.com>
* doc/examples/decode_filter_video: switch to new buffersink optionsAnton Khirnov2024-09-301-3/+2
|
* doc/examples/decode_filter_audio: switch to new buffersink optionsAnton Khirnov2024-09-301-8/+7
| | | | | Use a mix of av_opt_set() and av_opt_set_array() to demonstrate different ways the options can be set.
* doc/examples/transcode: handle audio encoder frame size restrictionsAnton Khirnov2024-09-281-0/+3
|
* doc/examples/transcode: switch to avcodec_get_supported_config()Anton Khirnov2024-09-281-5/+20
|
* doc/examples/transcode: stop using avfilter_graph_create_filter() incorrectlyAnton Khirnov2024-09-281-6/+18
| | | | See previous commits for details.
* doc/examples/decode_filter_video: stop using avfilter_graph_create_filter() ↵Anton Khirnov2024-09-281-3/+9
| | | | | | incorrectly See previous commits for details.
* doc/examples/decode_filter_audio: stop using avfilter_graph_create_filter() ↵Anton Khirnov2024-09-281-3/+9
| | | | | | incorrectly See previous commit for details.
* doc/examples/mux: remove nopMichael Niedermayer2024-07-121-2/+1
| | | | | | | Found through code review related to CID1604493 Overflowed constant Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* doc/examples/vaapi_encode: Try to check fwrite() for failureMichael Niedermayer2024-07-101-0/+4
| | | | | | | | Fixes: CID1604548 Unused value Sponsored-by: Sovereign Tech Fund Reviewed-by: "Xiang, Haihao" <haihao.xiang-at-intel.com@ffmpeg.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* doc/examples/demux_decode: Simplify loopMichael Niedermayer2024-05-091-3/+1
| | | | | | | Fixes: CID1463550 Logically dead code Sponsored-by: Sovereign Tech Fund Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* doc/examples/qsv_transcode: Initialize pointer before freeMichael Niedermayer2024-04-251-1/+1
| | | | | | | | Fixees: CID1517023 Uninitialized pointer read Sponsored-by: Sovereign Tech Fund Reviewed-by: "Xiang, Haihao" <haihao.xiang@intel.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* doc/examples/qsv_transcode: Simplify str_to_dict() loopMichael Niedermayer2024-04-251-2/+1
| | | | | | | | Fixes: CID1517022 Logically dead code Sponsored-by: Sovereign Tech Fund Reviewed-by: "Xiang, Haihao" <haihao.xiang@intel.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* doc/examples/vaapi_transcode: Simplify loopMichael Niedermayer2024-04-251-3/+1
| | | | | | | | Fixes: CID1428858(1/2) Logically dead code Sponsored-by: Sovereign Tech Fund Reviewed-by: "mypopy@gmail.com" <mypopy@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* doc/examples/qsv_transcode: Simplify loopMichael Niedermayer2024-04-251-3/+1
| | | | | | | | Fixes: CID1428858(2/2) Logically dead code Sponsored-by: Sovereign Tech Fund Reviewed-by: "Xiang, Haihao" <haihao.xiang@intel.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avutil/common: Don't auto-include mem.hAndreas Rheinhardt2024-03-318-0/+8
| | | | | | | | | | | There are lots of files that don't need it: The number of object files that actually need it went down from 2011 to 884 here. Keep it for external users in order to not cause breakages. Also improve the other headers a bit while just at it. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* examples/decode_filter_video: Add loop for draining the filtergraphTobias Rapp2024-03-281-0/+19
| | | | | | | | | Depending on the filters used, the filtergraph may produce trailing data after feeding it the last input frame. Update the example to include the necessary loop for draining the filtergraph. Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* examples/decode_filter_audio: Add loop for draining the filtergraphTobias Rapp2024-03-281-0/+19
| | | | | | | | | Depending on the filters used, the filtergraph may produce trailing data after feeding it the last input frame. Update the example to include the necessary loop for draining the filtergraph. Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* doc/examples: Always use <> includesAndreas Rheinhardt2024-03-273-27/+27
| | | | | Reviewed-by: Stefano Sabatini <stefasab@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* doc/examples/qsv_decode: remove unused config.h header filehung kuishing2024-03-121-2/+0
| | | | Signed-off-by: clarkh <hungkuishing@outlook.com>
* doc/examples/qsv_transcode: EINVAL is more appropriate and ENAVAIL will fail ↵hung kuishing2023-12-181-4/+4
| | | | | | build with visual studio Signed-off-by: clarkh <hungkuishing@outlook.com>
* examples/transcode: fix log messageZhao Zhili2023-12-121-1/+1
| | | | 'encoder' can be audio or video encoder.
* avutil/imgutils: Add wrapper for av_image_copy() to avoid castsAndreas Rheinhardt2023-09-121-3/+3
| | | | | | | | | | | | av_image_copy() accepts const uint8_t* const * as source; lots of user have uint8_t* const * and therefore either cast (the majority) or copy the array of pointers. This commit changes this by adding a static inline wrapper for av_image_copy() that casts between the two types so that we do not need to add casts everywhere else. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* examples/transcode: flush decoder on EOFZhao Zhili2023-08-261-2/+29
| | | | Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
* examples: fix build of mux and resample_audioSebastian Ramacher2023-07-281-2/+2
| | | | | | | | | The commits eac4324bfbe452f0292b48b2f1dc37b5052ec0be and cd8211527efbb9cad19db1c0d033da0749836e43 renamed the examples, but the targets were not updated. Hence, the builds are missing -lm. Signed-off-by: Sebastian Ramacher <sramacher@debian.org> Signed-off-by: James Almer <jamrial@gmail.com>
* doc/examples/transcode: convert timestamps between filtering and encodingAnton Khirnov2023-06-031-0/+5
| | | | The timebases do not have to match.
* doc/examples/transcode: stop using decoder's AVCodecContext.time_baseAnton Khirnov2023-06-031-5/+2
| | | | | | | | The contents of this field are not defined for decoding. Use pkt_timebase, which is the timebase of demuxed packets. Drop a tautological av_packet_rescale_ts() call, as the stream and decoder timebases are the same.
* doc/examples/transcode: set packet timebase for decodingAnton Khirnov2023-06-031-0/+5
| | | | It is recommended for callers to set it, though not required.
* doc/examples/transcode_aac: use av_samples_alloc_array_and_samples to ↵James Almer2023-05-051-15/+5
| | | | | | | | allocate the input samples buffer and pointers Fixes -Wuse-after-free warnings and simplifies code. Signed-off-by: James Almer <jamrial@gmail.com>
* doc/examples/qsv_transcode: Fix a bug when use more than one parameter setWenbin Chen2023-03-171-1/+1
| | | | Signed-off-by: Wenbin Chen <wenbin.chen@intel.com>
* doc/examples/mux: rename alloc_picture to alloc_frameStefano Sabatini2023-03-121-12/+12
| | | | The new name is consistent with the updated API.
* avutil/frame: deprecate AVFrame.coded_picture_number and display_picture_numberMarton Balint2023-02-131-2/+2
| | | | | | | | Their usefulness is questionable, very few decoders set them, and their type should have been int64_t. A replacement field can be added later if a valid use case is found. Signed-off-by: Marton Balint <cus@passwd.hu>
* avcodec: add AVCodecContext.frame_num as 64 bit variant to frame_numberMarton Balint2023-02-131-2/+2
| | | | | | | | | | Frame counters can overflow relatively easily (INT_MAX number of frames is slightly more than 1 year for 60 fps content), so make sure we use 64 bit values for them. Also deprecate the old 32 bit frame_number attribute. Signed-off-by: Marton Balint <cus@passwd.hu>
* doc/examples: fix make command, reference Makefile.exampleStefano Sabatini2023-02-111-3/+5
| | | | Fix regression since b25d6290c67e193.
* examples/Makefile.example: add note about missing entriesStefano Sabatini2023-02-111-1/+7
|
* examples: apply doxy entries consistency fixesStefano Sabatini2023-02-1123-84/+95
| | | | Use consistent format for the @file field and file description.
* examples: rename transcoding to transcodeStefano Sabatini2023-02-113-3/+3
|
* examples: rename scaling_video to scale_videoStefano Sabatini2023-02-113-3/+3
|
* examples: rename resampling audio to resample_audioStefano Sabatini2023-02-113-3/+3
|
* examples: rename remuxing to remuxStefano Sabatini2023-02-113-3/+3
|
* examples: rename qsvdec to qsv_decodeStefano Sabatini2023-02-112-2/+2
|
* examples: rename muxing to muxStefano Sabatini2023-02-114-4/+4
|
* examples: rename metadata to show_metadataStefano Sabatini2023-02-113-3/+3
|
* examples: rename http_multiclient to avio_http_serve_filesStefano Sabatini2023-02-113-4/+5
|
* examples: rename filtering_video to decode_filter_videoStefano Sabatini2023-02-113-3/+3
|
* examples: rename filtering_audio to decode_filter_audioStefano Sabatini2023-02-113-3/+3
|
* examples: rename demuxing_decoding to demux_decodeStefano Sabatini2023-02-113-4/+4
| | | | Follow general scheme VERB_OBJECT.
* examples: rename avio_reading to avio_read_callbackStefano Sabatini2023-02-113-3/+3
| | | | Adopt general scheme VERB_OBJECT.
* doc/examples/metadata: use av_dict_iterateMarvin Scholz2022-12-011-1/+1
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>