[FFmpeg-devel] [PATCH] avfilter/drawtext: special metadata fields to allow plotting source filename to output.
Michael Niedermayer
michael at niedermayer.cc
Sun Dec 15 17:04:41 EET 2019
On Sat, Dec 14, 2019 at 10:59:31PM +0000, Alexandre Heitor Schmidt wrote:
> avfilter/drawtext: Added two special metadata tags which can, be used by
> 'drawtext' filter and others to have access to source file path, and its
> basename.
>
> The new field AVPacket->source_file will contain a path to its corresponding
> filename everytime the packet corresponds to a single file. This behavior is
> common for image2 filter. When this field is filled, frames passed to filters
> will contain two special metadata tags called source_path (the entire path to
> the file) and source_basename (only the file name). These metatags can be
> used by filters like drawtext to be able to plot the entire path or the
> basename of it respectively to the frame being processed.
>
> doc/filters: The documentation for drawtext was also updated and an usage
> example was added.
>
> Fixes #2874.
>
> Signed-off-by: Alexandre Heitor Schmidt <alexandre.schmidt at gmail.com>
> ---
> doc/filters.texi | 13 +++++++++++++
> fftools/ffmpeg.c | 12 ++++++++++++
> libavcodec/avcodec.h | 8 ++++++++
> libavcodec/avpacket.c | 1 +
> libavformat/img2dec.c | 9 +++++++++
> 5 files changed, 43 insertions(+)
doc/filters.texi:9885: misplaced {
doc/filters.texi:9885: misplaced }
make: *** [doc/ffprobe-all.html] Error 1
make: *** Waiting for unfinished jobs....
doc/filters.texi:9885: misplaced {
doc/filters.texi:9885: misplaced }
make: *** [doc/ffplay-all.html] Error 1
doc/filters.texi:9885: misplaced {
doc/filters.texi:9885: misplaced }
make: *** [doc/ffmpeg-all.html] Error 1
doc/filters.texi:9885: misplaced {
doc/filters.texi:9885: misplaced }
make: *** [doc/ffmpeg-filters.html] Error 1
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Let us carefully observe those good qualities wherein our enemies excel us
and endeavor to excel them, by avoiding what is faulty, and imitating what
is excellent in them. -- Plutarch
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20191215/a7f694f8/attachment.sig>
More information about the ffmpeg-devel
mailing list