aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples
Commit message (Collapse)AuthorAgeFilesLines
* doc/examples/extract_mvs: Explicitly free optionsAndreas Rheinhardt2021-06-081-1/+3
| | | | | | | 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-081-2/+1
| | | | Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avformat/avformat, utils: Make av_find_best_stream const-correctAndreas Rheinhardt2021-04-275-5/+5
| | | | | 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-276-12/+14
| | | | | 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-272-2/+2
| | | | | | | 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-171-20/+22
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* doc/examples/vaapi_encode: use av_packet_alloc() to allocate packetsJames Almer2021-03-171-8/+8
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* doc/examples/transcoding: use av_packet_alloc() to allocate packetsJames Almer2021-03-171-20/+28
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* doc/examples/transcode_aac: use av_packet_alloc() to allocate packetsJames Almer2021-03-171-19/+27
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* doc/examples/demuxing_decoding: use av_packet_alloc() to allocate packetsJames Almer2021-03-171-11/+14
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* doc/examples/transcoding: switch to the new encoding APIAnton Khirnov2020-11-201-42/+33
|
* doc/examples/transcoding: stop constantly allocating AVFramesAnton Khirnov2020-11-201-29/+31
| | | | Allocate just one and reuse it.
* examples/muxing: misc style fixesJun Zhao2020-09-281-24/+23
| | | | | | | 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-252-2/+2
| | | | Fixes ticket #8638.
* Stop hardcoding align=32 in av_frame_get_buffer() calls.Anton Khirnov2020-05-223-3/+3
| | | | Use 0, which selects the alignment automatically.
* doc/examples/muxing: convert to new encoding APIAnton Khirnov2020-05-121-56/+39
|
* doc/examples/demuxing_decoding: convert to new decoding APIAnton Khirnov2020-05-121-86/+91
|
* doc/examples/demuxing_decoding: drop -refcountAnton Khirnov2020-05-121-22/+6
| | | | | 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-164-55/+7
| | | | | | | | 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-291-2/+2
| | | | | | Now they are exactly 10 seconds long. Fixes #5684.
* doc/examples/decode_audio: Fix "warning: ISO C90 forbids mixed declarations ↵Michael Niedermayer2019-09-161-3/+4
| | | | | | and code" Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* doc/examples/decode_video: add input file format information for usageSteven Liu2019-08-261-1/+2
| | | | Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* doc/examples/decode_audio: print message about how to play the output fileSteven Liu2019-08-261-0/+51
| | | | Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* examples/encode_video: only add sequence end code for mpeg1/2 videoJun Zhao2019-08-081-1/+2
| | | | | | | | 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-231-3/+4
| | | | Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* doc/examples/metadata: fix the example can't dump FLV metadataJun Zhao2019-04-071-0/+5
| | | | | | fix the example can't dump FLV metadata. Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* Merge commit '7e5bde93a1e7641e1622814dafac0be3f413d79b'James Almer2019-03-101-1/+1
|\ | | | | | | | | | | | | * commit '7e5bde93a1e7641e1622814dafac0be3f413d79b': build: Rename OBJDIRS variable to OUTDIRS Merged-by: James Almer <jamrial@gmail.com>
| * build: Rename OBJDIRS variable to OUTDIRSDiego Biurrun2019-02-161-1/+1
| | | | | | | | These directories are not just for object files.
* | doc/examples/vaapi_transcode: Fix the typoMichael Niedermayer2018-09-211-1/+1
| | | | | | | | | | 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-011-2/+3
| | | | | | | | | | | | 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-251-13/+15
| | | | | | | | Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* | doc/examples/vaapi_encode: re-licensed to MIT-license.Jun Zhao2018-08-251-13/+15
| | | | | | | | Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* | doc/examples/hw_decode: re-licensed to MIT-license.Jun Zhao2018-08-251-13/+15
| | | | | | | | Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* | doc/examples: add missing ignore filesZhao Zhili2018-05-161-0/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | examples/filtering_video: fix memory leakZhao Zhili2018-05-161-6/+9
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | examples/filtering_video: add missing headersZhao Zhili2018-05-161-0/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | examples/filtering_video: drop an always true conditionZhao Zhili2018-05-161-18/+16
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | doc/examples/filtering_audio: Remove setting deprecated refcounted_framesJun Zhao2018-04-221-1/+0
| | | | | | | | | | | | | | | | 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-221-1/+0
| | | | | | | | | | | | | | | | 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-221-1/+0
| | | | | | | | | | | | | | | | 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-024-8/+0
| | | | | | | | | | | | | | 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-271-3/+1
| | | | | | | | | | | | | | 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-271-2/+1
| | | | | | | | | | Reviewed-by: Jun Zhao <mypopydev@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit '0711d142997b2662ba9198e607015b06c6eed0d8'James Almer2018-03-151-32/+69
|\| | | | | | | | | | | | | * 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-071-32/+69
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | examples: Don't call deprecated functions which don't do anythingMark Thompson2018-02-0920-40/+0
| |
* | examples: Add a VA-API transcode example.Jun Zhao2018-02-042-0/+307
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Usage is: ./vaapi_transcode input_stream codec output_stream For example: - ./vaapi_transcode input.mp4 h264_vaapi output_h264.mp4 - ./vaapi_transcode input.mp4 vp8_vaapi output_vp8.ivf Does not handle resolution changes on the input stream. Signed-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Liu, Kaixuan <kaixuan.liu@intel.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* | fftools, tools, examples: migrate to AVFormatContext->urlMarton Balint2018-01-281-2/+5
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* | Merge commit '1efbbfedcaf4a3cecab980273ad809ba3ade2f74'Mark Thompson2018-01-161-1/+0
|\| | | | | | | | | | | | | * commit '1efbbfedcaf4a3cecab980273ad809ba3ade2f74': examples/qsvdec: do not set the deprecated field refcounted_frames Merged-by: Mark Thompson <sw@jkqxz.net>
| * examples/qsvdec: do not set the deprecated field refcounted_framesZhong Li2017-12-291-1/+0
| | | | | | | | | | | | | | | | It is used by the deprecated API avcodec_decode_video2 and ignored by the new decode APIs (avcodec_send_packet/avcodec_receive_frame). Signed-off-by: Zhong Li <zhong.li@intel.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>