Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-10-29doc/examples/muxing: Remove unnecessary retJun Zhao
Remove unnecessary ret and make the code more compact Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2022-09-23doc/examples/extract_mvs: add motion informationChema Gonzalez
Note that the motion information includes subpel motion information This was likely forgotten in 56bdf61baa04c4fd8d165f34499115ce0aa97c43. Tested: ``` $ make examples -j ... $ doc/examples/extract_mvs in.264 | head -40 | \ csvcut -C framenum,source,flags |csvlook | blockw | blockh | srcx | srcy | dstx | dsty | motion_x | motion_y | motion_scale | | ------ | ------ | ----- | ---- | ----- | ---- | -------- | -------- | ------------ | | 16 | 16 | 20 | 26 | 8 | 8 | 49 | 72 | 4 | | 16 | 16 | 152 | 15 | 136 | 8 | 65 | 28 | 4 | | 16 | 8 | 360 | 3 | 360 | 4 | 1 | -6 | 4 | | 16 | 8 | 360 | 13 | 360 | 12 | -1 | 4 | 4 | | 16 | 16 | 440 | 10 | 440 | 8 | 3 | 10 | 4 | | 8 | 16 | 829 | 7 | 836 | 8 | -31 | -6 | 4 | | 8 | 16 | 844 | 7 | 844 | 8 | -1 | -4 | 4 | | 16 | 16 | 1,004 | 14 | 1,048 | 8 | -177 | 24 | 4 | | 16 | 16 | 1,096 | 8 | 1,096 | 8 | -1 | 0 | 4 | | 16 | 8 | 1,417 | 24 | 1,416 | 4 | 7 | 82 | 4 | | 16 | 8 | 1,416 | 13 | 1,416 | 12 | 0 | 6 | 4 | | 16 | 8 | 87 | 20 | 88 | 20 | -7 | 0 | 4 | | 16 | 8 | 99 | 44 | 88 | 28 | 45 | 66 | 4 | ... ``` Also: ``` $ make fate -j ... ``` Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2022-05-02doc/examples/transcode_aac: Bump dateAndreas Unterweger
Signed-off-by: Andreas Unterweger <dustsigns@gmail.com>
2022-05-02doc/examples/transcode_aac: AAC encoder is no longer experimentalAndreas Unterweger
Signed-off-by: Andreas Unterweger <dustsigns@gmail.com>
2022-05-02doc/examples/transcode_aac: Set decoder packet timebaseAndreas Unterweger
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>
2022-05-02doc/examples/transcode_aac: Don't ignore last encoded frameAndreas Unterweger
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>
2022-04-22examples/decode_video: flush parser to fix missing frameZhao Zhili
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
2022-03-25doc/examples/muxing: Remove outdated commentAndreas Rheinhardt
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>
2022-03-15doc/examples: convert to new channel layout-APIJames Almer
Signed-off-by: James Almer <jamrial@gmail.com>
2021-11-18doc/examples/metadata: Constify values from av_dict_get()Chad Fraleigh
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>
2021-10-07examples/remuxing: Fix use of uninitialized valueAndreas Rheinhardt
Fixes Coverity ticket 1492326. Regression since 53f374c08d5cc97158c17ea34b1c8ee0116c0578. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-10-03examples/qsvdec: Don't use stack packetAndreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-10-03examples/hw_decode: Don't use stack packetAndreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-10-03examples/filtering_video: Don't use stack packetAndreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-10-03examples/filtering_audio: Don't use stack packetAndreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-10-03examples/extract_mvs: Do not use stack packetAndreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-10-03examples/muxing: Don't use stack packetAndreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-10-03examples/remuxing: Don't use stack packetAndreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-10-03examples/remuxing: Use av_packet_rescale_ts()Andreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-10-03fftools/ffmpeg, doc/examples: Remove redundant av_packet_unrefAndreas Rheinhardt
av_interleaved_write_frame() already returns blank packets. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-09-20Replace all occurences of av_mallocz_array() by av_calloc()Andreas Rheinhardt
They do the same. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-08-20doc/examples/encode_video: add explanations in comments.Nicolas George
2021-08-11doc/examples/qsvdec: simplify this example via hw_device_ctx interfaceHaihao Xiang
Signed-off-by: James Almer <jamrial@gmail.com>
2021-07-22avcodec/avcodec: Stop including channel_layout.h in avcodec.hAndreas Rheinhardt
Also include channel_layout.h directly wherever used. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-06-11examples/muxing: add missing headerJames Almer
Fixed compilation broken by e67e02d15672. Signed-off-by: James Almer <jamrial@gmail.com>
2021-06-11examples/extract_mvs: add missing headerJames Almer
Fixed compilation broken by e67e02d15672. Signed-off-by: James Almer <jamrial@gmail.com>
2021-06-11examples/demuxing_decoding: add missing headerJames Almer
Fixed compilation broken by e67e02d15672. Signed-off-by: James Almer <jamrial@gmail.com>
2021-06-08doc/examples/extract_mvs: Explicitly free optionsAndreas Rheinhardt
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>
2021-06-08doc/examples/demuxing_decoding: Remove unused optionsAndreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2021-04-27avformat/avformat, utils: Make av_find_best_stream const-correctAndreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
2021-04-27avcodec/codec, allcodecs: Constify the AVCodec APIAndreas Rheinhardt
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
2021-04-27avformat: Constify the API wrt AV(In|Out)putFormatAndreas Rheinhardt
Also constify AVProbeData. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
2021-03-17doc/examples/vaapi_transcode: use av_packet_alloc() to allocate packetsJames Almer
Signed-off-by: James Almer <jamrial@gmail.com>
2021-03-17doc/examples/vaapi_encode: use av_packet_alloc() to allocate packetsJames Almer
Signed-off-by: James Almer <jamrial@gmail.com>
2021-03-17doc/examples/transcoding: use av_packet_alloc() to allocate packetsJames Almer
Signed-off-by: James Almer <jamrial@gmail.com>
2021-03-17doc/examples/transcode_aac: use av_packet_alloc() to allocate packetsJames Almer
Signed-off-by: James Almer <jamrial@gmail.com>
2021-03-17doc/examples/demuxing_decoding: use av_packet_alloc() to allocate packetsJames Almer
Signed-off-by: James Almer <jamrial@gmail.com>
2020-11-20doc/examples/transcoding: switch to the new encoding APIAnton Khirnov
2020-11-20doc/examples/transcoding: stop constantly allocating AVFramesAnton Khirnov
Allocate just one and reuse it.
2020-09-28examples/muxing: misc style fixesJun Zhao
misc style fixes. Reviewed-by: Steven Liu <liuqi05@kuaishou.com> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
2020-08-25doc/examples: Always open files as "binary", not "text".Carl Eugen Hoyos
Fixes ticket #8638.
2020-05-22Stop hardcoding align=32 in av_frame_get_buffer() calls.Anton Khirnov
Use 0, which selects the alignment automatically.
2020-05-12doc/examples/muxing: convert to new encoding APIAnton Khirnov
2020-05-12doc/examples/demuxing_decoding: convert to new decoding APIAnton Khirnov
2020-05-12doc/examples/demuxing_decoding: drop -refcountAnton Khirnov
Non-refcounted frames are deprecated and there is no good reason to use them.
2020-03-16examples/avio_dir_cmd: drop support for move/delete operationsAnton Khirnov
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.
2019-09-29doc/examples/muxing: fix underflow in duration of encoded streamsPaul B Mahol
Now they are exactly 10 seconds long. Fixes #5684.
2019-09-16doc/examples/decode_audio: Fix "warning: ISO C90 forbids mixed declarations ↵Michael Niedermayer
and code" Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2019-08-26doc/examples/decode_video: add input file format information for usageSteven Liu
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
2019-08-26doc/examples/decode_audio: print message about how to play the output fileSteven Liu
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>