summaryrefslogtreecommitdiff
path: root/doc/examples
Commit message (Collapse)AuthorAge
* 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>
* doc/examples/metadata: fix the example can't dump FLV metadataJun Zhao2019-04-07
| | | | | | fix the example can't dump FLV metadata. Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* Merge commit '7e5bde93a1e7641e1622814dafac0be3f413d79b'James Almer2019-03-10
|\ | | | | | | | | | | | | * commit '7e5bde93a1e7641e1622814dafac0be3f413d79b': build: Rename OBJDIRS variable to OUTDIRS Merged-by: James Almer <jamrial@gmail.com>
| * build: Rename OBJDIRS variable to OUTDIRSDiego Biurrun2019-02-16
| | | | | | | | These directories are not just for object files.
* | doc/examples/vaapi_transcode: Fix the typoMichael Niedermayer2018-09-21
| | | | | | | | | | Reviewed-by: "mypopy@gmail.com" <mypopy@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | examples: Fix use of AV_CODEC_FLAG_GLOBAL_HEADERMichael Bunk2018-09-01
| | | | | | | | | | | | AV_CODEC_FLAG_GLOBAL_HEADER should be set before calling avcodec_open2() to have any effect. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | doc/examples/vaapi_transcode: re-licensed to MIT-license.Jun Zhao2018-08-25
| | | | | | | | Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* | doc/examples/vaapi_encode: re-licensed to MIT-license.Jun Zhao2018-08-25
| | | | | | | | Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* | doc/examples/hw_decode: re-licensed to MIT-license.Jun Zhao2018-08-25
| | | | | | | | Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* | doc/examples: add missing ignore filesZhao Zhili2018-05-16
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | examples/filtering_video: fix memory leakZhao Zhili2018-05-16
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | examples/filtering_video: add missing headersZhao Zhili2018-05-16
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | examples/filtering_video: drop an always true conditionZhao Zhili2018-05-16
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | doc/examples/filtering_audio: Remove setting deprecated refcounted_framesJun Zhao2018-04-22
| | | | | | | | | | | | | | | | When use new decode APIs(avcodec_send_packet/avcodec_receive_frame), don't need to setting the deprecated field refcounted_frames. Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* | doc/examples/filtering_video: Remove setting deprecated refcounted_framesJun Zhao2018-04-22
| | | | | | | | | | | | | | | | When use new decode APIs(avcodec_send_packet/avcodec_receive_frame), don't need to setting the deprecated field refcounted_frames. Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* | doc/examples/hw_decode: Remove setting deprecated refcounted_framesJun Zhao2018-04-22
| | | | | | | | | | | | | | | | When use new decode APIs(avcodec_send_packet/avcodec_receive_frame), don't need to setting the deprecated field refcounted_frames. Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* | lav*,tests: remove several register_all callsJosh de Kock2018-04-02
| | | | | | | | | | | | | | avdevice_register_all() is still required to register devices into lavf (this is required due to lavd being somewhat of a hack). Signed-off-by: Josh de Kock <josh@itanimul.li>
* | doc/examples/hw_decode: Remove logically dead code in decode_write()Michael Niedermayer2018-03-27
| | | | | | | | | | | | | | Fixes CID1415951 Reviewed-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | doc/examples/hw_decode: Remove useless NULL checkMichael Niedermayer2018-03-27
| | | | | | | | | | Reviewed-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit '0711d142997b2662ba9198e607015b06c6eed0d8'James Almer2018-03-15
|\| | | | | | | | | | | | | * commit '0711d142997b2662ba9198e607015b06c6eed0d8': examples: Use new API for transcoding example Merged-by: James Almer <jamrial@gmail.com>
| * examples: Use new API for transcoding exampleAndreas Unterweger2018-03-07
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | examples: Don't call deprecated functions which don't do anythingMark Thompson2018-02-09
| |