summaryrefslogtreecommitdiff
path: root/doc/examples
Commit message (Collapse)AuthorAge
* doc/examples/transcode_aac: Bump dateAndreas Unterweger2022-05-02
| | | | Signed-off-by: Andreas Unterweger <dustsigns@gmail.com>
* doc/examples/transcode_aac: AAC encoder is no longer experimentalAndreas Unterweger2022-05-02
| | | | Signed-off-by: Andreas Unterweger <dustsigns@gmail.com>
* doc/examples/transcode_aac: Set decoder packet timebaseAndreas Unterweger2022-05-02
| | | | | | Previously, the default timebase caused two warnings during decoding about not being able to update timestamps for skipped and discarded samples, respectively. Signed-off-by: Andreas Unterweger <dustsigns@gmail.com>
* doc/examples/transcode_aac: Don't ignore last encoded frameAndreas Unterweger2022-05-02
| | | | | | The last encoded frame is now fetched on EOF. It was previously left in the encoder and caused a "1 frame left in queue" warning. Signed-off-by: Andreas Unterweger <dustsigns@gmail.com>
* examples/decode_video: flush parser to fix missing frameZhao Zhili2022-04-22
| | | | Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
* doc/examples/muxing: Remove outdated commentAndreas Rheinhardt2022-03-25
| | | | | | | | | | This comment only applies to the scenario in which one uses the AVCodecContexts embedded in AVStreams. Yet this code sample stopped doing so in 9897d9f4e074cdc6c7f2409885ddefe300f18dc7; and the last major version bump even removed the public AVCodecContexts in AVStreams. So just remove this comment. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* doc/examples: convert to new channel layout-APIJames Almer2022-03-15
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* doc/examples/metadata: Constify values from av_dict_get()Chad Fraleigh2021-11-18
| | | | | | | | Treat values returned from av_dict_get() as const, since they are internal to AVDictionary. Signed-off-by: Chad Fraleigh <chadf@triularity.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* examples/remuxing: Fix use of uninitialized valueAndreas Rheinhardt2021-10-07
| | | | | | | Fixes Coverity ticket 1492326. Regression since 53f374c08d5cc97158c17ea34b1c8ee0116c0578. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* examples/qsvdec: Don't use stack packetAndreas Rheinhardt2021-10-03
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* examples/hw_decode: Don't use stack packetAndreas Rheinhardt2021-10-03
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* examples/filtering_video: Don't use stack packetAndreas Rheinhardt2021-10-03
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* examples/filtering_audio: Don't use stack packetAndreas Rheinhardt2021-10-03
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* examples/extract_mvs: Do not use stack packetAndreas Rheinhardt2021-10-03
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* examples/muxing: Don't use stack packetAndreas Rheinhardt2021-10-03
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* examples/remuxing: Don't use stack packetAndreas Rheinhardt2021-10-03
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* examples/remuxing: Use av_packet_rescale_ts()Andreas Rheinhardt2021-10-03
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* fftools/ffmpeg, doc/examples: Remove redundant av_packet_unrefAndreas Rheinhardt2021-10-03
| | | | | | av_interleaved_write_frame() already returns blank packets. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* Replace all occurences of av_mallocz_array() by av_calloc()Andreas Rheinhardt2021-09-20
| | | | | | | They do the same. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* doc/examples/encode_video: add explanations in comments.Nicolas George2021-08-20
|
* doc/examples/qsvdec: simplify this example via hw_device_ctx interfaceHaihao Xiang2021-08-11
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/avcodec: Stop including channel_layout.h in avcodec.hAndreas Rheinhardt2021-07-22
| | | | | | Also include channel_layout.h directly wherever used. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* examples/muxing: add missing headerJames Almer2021-06-10
| | | | | | Fixed compilation broken by e67e02d15672. Signed-off-by: James Almer <jamrial@gmail.com>
* examples/extract_mvs: add missing headerJames Almer2021-06-10
| | | | | | Fixed compilation broken by e67e02d15672. Signed-off-by: James Almer <jamrial@gmail.com>
* examples/demuxing_decoding: add missing headerJames Almer2021-06-10
| | | | | | Fixed compilation broken by e67e02d15672. Signed-off-by: James Almer <jamrial@gmail.com>
* doc/examples/extract_mvs: Explicitly free optionsAndreas Rheinhardt2021-06-08
| | | | | | | The user should not rely on all options always being recognized (in particular not on error). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* doc/examples/demuxing_decoding: Remove unused optionsAndreas Rheinhardt2021-06-08
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avformat/avformat, utils: Make av_find_best_stream const-correctAndreas Rheinhardt2021-04-27
| | | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/codec, allcodecs: Constify the AVCodec APIAndreas Rheinhardt2021-04-27
| | | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat: Constify the API wrt AV(In|Out)putFormatAndreas Rheinhardt2021-04-27
| | | | | | | Also constify AVProbeData. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* doc/examples/vaapi_transcode: use av_packet_alloc() to allocate packetsJames Almer2021-03-17
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* doc/examples/vaapi_encode: use av_packet_alloc() to allocate packetsJames Almer2021-03-17
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* doc/examples/transcoding: use av_packet_alloc() to allocate packetsJames Almer2021-03-17
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* doc/examples/transcode_aac: use av_packet_alloc() to allocate packetsJames Almer2021-03-17
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* doc/examples/demuxing_decoding: use av_packet_alloc() to allocate packetsJames Almer2021-03-17
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* doc/examples/transcoding: switch to the new encoding APIAnton Khirnov2020-11-20
|
* doc/examples/transcoding: stop constantly allocating AVFramesAnton Khirnov2020-11-20
| | | | Allocate just one and reuse it.
* examples/muxing: misc style fixesJun Zhao2020-09-28
| | | | | | | misc style fixes. Reviewed-by: Steven Liu <liuqi05@kuaishou.com> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* doc/examples: Always open files as "binary", not "text".Carl Eugen Hoyos2020-08-25
| | | | Fixes ticket #8638.
* Stop hardcoding align=32 in av_frame_get_buffer() calls.Anton Khirnov2020-05-22
| | | | Use 0, which selects the alignment automatically.
* doc/examples/muxing: convert to new encoding APIAnton Khirnov2020-05-12
|
* doc/examples/demuxing_decoding: convert to new decoding APIAnton Khirnov2020-05-12
|
* doc/examples/demuxing_decoding: drop -refcountAnton Khirnov2020-05-12
| | | | | Non-refcounted frames are deprecated and there is no good reason to use them.
* examples/avio_dir_cmd: drop support for move/delete operationsAnton Khirnov2020-03-16
| | | | | | | | They use non-public functions, which is unacceptable for a public API example. Rename the example back to avio_list_dir. This effectively reverts c84d208c275d6a43b3c3421d38772179abf8acee and 767d780ec001167b2fd8f6cfe4ef78a3a8b1e34c.
* doc/examples/muxing: fix underflow in duration of encoded streamsPaul B Mahol2019-09-29
| | | | | | Now they are exactly 10 seconds long. Fixes #5684.
* doc/examples/decode_audio: Fix "warning: ISO C90 forbids mixed declarations ↵Michael Niedermayer2019-09-16
| | | | | | and code" Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* doc/examples/decode_video: add input file format information for usageSteven Liu2019-08-26
| | | | Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* doc/examples/decode_audio: print message about how to play the output fileSteven Liu2019-08-26
| | | | Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* examples/encode_video: only add sequence end code for mpeg1/2 videoJun Zhao2019-08-08
| | | | | | | | Only add sequence end code for mpeg1/mpeg2 video, or else use the encoder libx264 or libx265 in this sample, decoding the output file will get unknow NALU type error. Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* examples/avio_reading: Use avio_context_free() to free AVIOContextJun Zhao2019-04-23
| | | | Signed-off-by: Jun Zhao <barryjzhao@tencent.com>