[FFmpeg-devel] [PATCH] avfilter/drawtext: special metadata fields to allow plotting source filename to output.
Alexandre Heitor Schmidt
alexandre.schmidt at gmail.com
Sun Dec 15 18:20:05 EET 2019
On 15/12/2019 15:04, Michael Niedermayer wrote:
> 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
>
> [...]
I saw the problem... git messed up the @item and @example tags in docs.
:S I'll find out why and re-submit the patch. I have to redo it anyway
to use AV_PKT_DATA_STRINGS_METADATA, as suggested by Marton Balint.
Alex.
More information about the ffmpeg-devel
mailing list