summaryrefslogtreecommitdiff
path: root/doc/examples
Commit message (Collapse)AuthorAge
* 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
| |
* | examples: Add a VA-API transcode example.Jun Zhao2018-02-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-28
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* | Merge commit '1efbbfedcaf4a3cecab980273ad809ba3ade2f74'Mark Thompson2018-01-16
|\| | | | | | | | | | | | | * 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-29
| | | | | | | | | | | | | | | | 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>
* | examples/vaapi_encode: Remove redundancy check when free context.Jun Zhao2018-01-12
| | | | | | | | | | | | | | | | | | avcodec_free_context have handle NULL pointer case, so caller doesn't need to check the NULL before call this function. Signe-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | examples/vaapi_encode: Fix leak on hwframe init failureMark Thompson2017-12-01
| | | | | | | | Fixes CID #1424882.
* | examples/hw_decode: Use hw-config information to find pixfmtMark Thompson2017-11-29
| | | | | | | | This removes all remaining device-type specificity.
* | examples: Add a VA-API encode example.Jun Zhao2017-11-28
| | | | | | | | | | | | | | | | | | | | | | Supports only raw NV12 input. Example use: ./vaapi_encode 1920 1080 test.yuv test.h264 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>
* | examples/filtering_audio: suppress the build warning.Jun Zhao2017-11-01
| | | | | | | | | | | | | | | | | | suppress the "warning: assignment discards ‘const’ qualifier from pointer target type" build warning. Signed-off-by: Jun Zhao <jun.zhao@intel.com> Reviewed-by: Steven Liu <lingjiujianke@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | examples/filtering_video: suppress the build warning.Jun Zhao2017-11-01
| | | | | | | | | | | | | | | | | | suppress the "warning: assignment discards ‘const’ qualifier from pointer target type" build warning. Signed-off-by: Jun Zhao <jun.zhao@intel.com> Reviewed-by: Steven Liu <lingjiujianke@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | examples/transcoding: suppress build warning.Jun Zhao2017-11-01
| | | | | | | | | | | | | | | | | | suppress the "warning: assignment discards ‘const’ qualifier from pointer target type" build warning. Signed-off-by: Jun Zhao <jun.zhao@intel.com> Reviewed-by: Steven Liu <lingjiujianke@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | Merge commit 'ecc5c4db2dd3a0f328d95df89daa59f78b4b2810'James Almer2017-10-30
|\| | | | | | | | | | | | | * commit 'ecc5c4db2dd3a0f328d95df89daa59f78b4b2810': doc/examples/output: Cast pointer to the right (const) type Merged-by: James Almer <jamrial@gmail.com>
| * doc/examples/output: Cast pointer to the right (const) typeDiego Biurrun2017-04-24
| | | | | | | | doc/examples/output.c:512:33: warning: passing argument 2 of ‘sws_scale’ from incompatible pointer type
* | Merge commit 'f25609ff06b093d82548c92fc2031cd2e66c20d3'James Almer2017-10-30
|\| | | | | | | | | | | | | * commit 'f25609ff06b093d82548c92fc2031cd2e66c20d3': doc/examples/filter_audio: const correctness Merged-by: James Almer <jamrial@gmail.com>
| * doc/examples/filter_audio: const correctnessDiego Biurrun2017-04-24
| | | | | | | | doc/examples/filter_audio.c:168:17: warning: assignment discards ‘const’ qualifier from pointer target type
* | examples/avio_reading: return AVERROR_EOF at EOF.Nicolas George2017-10-29
| | | | | | | | Signed-off-by: Nicolas George <george@nsup.org>
* | Merge commit 'b200a2c8da403b5a5c8b50f8cb4a75fd4f0131b1'James Almer2017-10-26
|\| | | | | | | | | | | | | * commit 'b200a2c8da403b5a5c8b50f8cb4a75fd4f0131b1': examples: Fixed and extended Doxygen documentation Merged-by: James Almer <jamrial@gmail.com>
| * examples: Fixed and extended Doxygen documentationAndreas Unterweger2017-04-10
| | | | | | | | | | | | | | | | Added parameter descriptions for all functions and converted in-function comments into regular (non-Doxygen) comments. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit 'f5950b8fd61ec85e0ad8790bea56b37ceea19436'James Almer2017-10-26
|\| | | | | | | | | | | | | * commit 'f5950b8fd61ec85e0ad8790bea56b37ceea19436': lavfi: Drop unused and empty header file Merged-by: James Almer <jamrial@gmail.com>
* | build: add install targets for the examplesJames Almer2017-10-05
| | | | | | | | | | | | | | | | | | Split it off from install-data. Among other things, this prevents spamming triplicate log lines during install. Reviewed-by: Clément Bœsch <u@pkh.me> Signed-off-by: James Almer <jamrial@gmail.com>
* | Merge commit 'c483398bb7ef66f61ed2dcb09f3d6160683da0eb'James Almer2017-10-03
|\| | | | | | | | | | | | | * commit 'c483398bb7ef66f61ed2dcb09f3d6160683da0eb': build: Drop DOC_ prefix from EXAMPLES-related variables Merged-by: James Almer <jamrial@gmail.com>
| * build: Drop DOC_ prefix from EXAMPLES-related variablesDiego Biurrun2017-02-27
| |
* | Merge commit 'c95169f0ec68bdeeabc5fde8aa4076f406242524'James Almer2017-10-01
|\| | | | | | | | | | | | | * commit 'c95169f0ec68bdeeabc5fde8aa4076f406242524': build: Move cli tool sources to a separate subdirectory Merged-by: James Almer <jamrial@gmail.com>