[FFmpeg-devel] [PATCH] avfilter/image2: Add source file path and basename to each packet side data.
Michael Niedermayer
michael at niedermayer.cc
Mon Dec 23 01:54:42 EET 2019
On Sat, Dec 21, 2019 at 05:32:26PM +0000, Alexandre Heitor Schmidt wrote:
> > In the commit msg,
> >
> >> libavformat/img2dec.c: Modify image2 demuxer to make available
> >> two special metadata entries called lavf.image2dec.source_basename
> >> and lavf.image2dec.source_basename, which represents, respectively,
> >> the complete path to the source image for the current frame and
> >> the basename i.e. the file name related to the current frame.
> >> These can then be used by filters like drawtext and others.
> >
> > First key name should end in source_path
>
> Damn! You're right! New patch attached with this minor change corrected.
>
> Thanks!
>
> Alex.
>
> doc/demuxers.texi | 11 +++++++++++
> doc/filters.texi | 7 +++++++
> libavformat/img2dec.c | 32 ++++++++++++++++++++++++++++++++
> 3 files changed, 50 insertions(+)
> c75f4fef2f9595bc69315d450219adda125aaf25 0001-avformat-image2-Metadata-identifying-the-source-path.patch
> >From 95ebffed3784ba12a32966128136e8deae0d8386 Mon Sep 17 00:00:00 2001
> From: Alexandre Heitor Schmidt <alexandre.schmidt at gmail.com>
> Date: Sat, 21 Dec 2019 16:19:31 +0000
> Subject: [PATCH] avformat/image2: Metadata identifying the source path of
> input filename and documentation for its usage.
>
> libavformat/img2dec.c: Modify image2 demuxer to make available
> two special metadata entries called lavf.image2dec.source_path
> and lavf.image2dec.source_basename, which represents, respectively,
> the complete path to the source image for the current frame and
> the basename i.e. the file name related to the current frame.
> These can then be used by filters like drawtext and others.
not sure why i just now realize it but
Storing the source path is problematic privacy and security wise
Thanks
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
No snowflake in an avalanche ever feels responsible. -- Voltaire
-------------- 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/20191223/2f09f926/attachment.sig>
More information about the ffmpeg-devel
mailing list