[FFmpeg-devel] [PATCH] avformat/img2dec: added option -strftime_mkdir to allow directory creation if the strftime pattern include non-existing directories, similarly to how hls muxer does.

2023-08-01 Thread Alexandre Heitor Schmidt
doc/demuxers.texi: Documented how to use the new parameter. Usage example: ffmpeg -i /dev/video0 -strftime 1 -strftime_mkdir 1 "/tmp/%Y/%m/%Y_%m_%d-%H_%M_%S.jpg" --- doc/muxers.texi | 13 + libavformat/img2enc.c | 28 +++- 2 files changed, 36 insertions

Re: [FFmpeg-devel] [PATCH] avformat/image2: Upon request, make available extra metadata, fields related to input path to be used by filters.

2020-01-10 Thread Alexandre Heitor Schmidt
On 09/01/2020 21:39, Marton Balint wrote: > > > On Sat, 4 Jan 2020, Alexandre Heitor Schmidt wrote: > >> Hi there! I'm just writing to make sure this patch wasn't forgotten. :) > > Thanks, I think the patch is fine now, I will apply it tomorrow if there are

Re: [FFmpeg-devel] [PATCH] avformat/image2: Upon request, make available extra metadata, fields related to input path to be used by filters.

2020-01-04 Thread Alexandre Heitor Schmidt
Hi there! I'm just writing to make sure this patch wasn't forgotten. :) Best wishes to you all! Alex. On 01/01/2020 17:17, Alexandre Heitor Schmidt wrote: The patch follows attached, to avoid formatting issues. The commit message is as follows: avformat/image2: Upon request, make

[FFmpeg-devel] [PATCH] avformat/image2: Upon request, make available extra metadata, fields related to input path to be used by filters.

2020-01-01 Thread Alexandre Heitor Schmidt
 -framerate 18 -i '/path/to/input/files/*.jpg'  -filter_complex drawtext="fontsize=40:fontcolor=white:  fontfile=FreeSans.ttf:borderw=2:bordercolor=black:  text='%{metadata\:lavf.image2dec.source_basename\:NA}':x=5:y=50"  output.avi Fixes #2874. Signed-off-by: Al

Re: [FFmpeg-devel] [RFC] avfilter/image2: Add source file path and basename to each packet side data.

2019-12-29 Thread Alexandre Heitor Schmidt
On 26/12/2019 14:01, Alexandre Heitor Schmidt wrote: > > you may have to only activate this (or at least the full path metadata) feature > > if the user explicitly requests it. Probably the best way to do that is to > > introduce a new option of the image2 demuxer

Re: [FFmpeg-devel] [PATCH] avfilter/image2: Add source file path and basename to each packet side data.

2019-12-26 Thread Alexandre Heitor Schmidt
> About security > The file path can reveal a wide range of information like > The platform used, > The username, > A potentially writable location > And a lot more depending on how the directories are layed out > > About privacy > The username is commonly related to the users real name, thats > s

Re: [FFmpeg-devel] [PATCH] avfilter/image2: Add source file path and basename to each packet side data.

2019-12-26 Thread Alexandre Heitor Schmidt
> you may have to only activate this (or at least the full path metadata) feature > if the user explicitly requests it. Probably the best way to do that is to > introduce a new option of the image2 demuxer, probably with an AV_OPT_TYPE_FLAGS > type. Do you mean image2 should, for example, have

Re: [FFmpeg-devel] [PATCH] avfilter/image2: Add source file path and basename to each packet side data.

2019-12-21 Thread Alexandre Heitor Schmidt
h this minor change corrected. Thanks! Alex. >From 95ebffed3784ba12a32966128136e8deae0d8386 Mon Sep 17 00:00:00 2001 From: Alexandre Heitor Schmidt Date: Sat, 21 Dec 2019 16:19:31 + Subject: [PATCH] avformat/image2: Metadata identifying the source path of input filename and documentation for its usage. libavforma

Re: [FFmpeg-devel] [PATCH] avfilter/image2: Add source file path and basename to each packet side data.

2019-12-21 Thread Alexandre Heitor Schmidt
ou for the hints. Alex. On 21/12/2019 16:34, Nicolas George wrote: Alexandre Heitor Schmidt (12019-12-21): I fixed it again. Some {} weren't escaped by the "@" character, thus causing this error. How did this happen? Did you not build ffmpeg completely (and run FATE) before send

Re: [FFmpeg-devel] [PATCH] avfilter/image2: Add source file path and basename to each packet side data.

2019-12-21 Thread Alexandre Heitor Schmidt
On 19/12/2019 16:46, Michael Niedermayer wrote: > On Tue, Dec 17, 2019 at 02:30:39PM +0000, Alexandre Heitor Schmidt wrote: >> On 17/12/2019 00:35, Marton Balint wrote: >>> On Mon, 16 Dec 2019, Alexandre Heitor Schmidt wrote: >>>> This is the second time I'm su

Re: [FFmpeg-devel] [PATCH] avfilter/image2: Add source file path and basename to each packet side data.

2019-12-21 Thread Alexandre Heitor Schmidt
On 19/12/2019 16:46, Michael Niedermayer wrote: > On Tue, Dec 17, 2019 at 02:30:39PM +0000, Alexandre Heitor Schmidt wrote: >> On 17/12/2019 00:35, Marton Balint wrote: >>> On Mon, 16 Dec 2019, Alexandre Heitor Schmidt wrote: >>>> This is the second time I'm su

Re: [FFmpeg-devel] [PATCH] avfilter/image2: Add source file path and basename to each packet side data.

2019-12-17 Thread Alexandre Heitor Schmidt
On 17/12/2019 00:35, Marton Balint wrote: > On Mon, 16 Dec 2019, Alexandre Heitor Schmidt wrote: >> This is the second time I'm submiting this patch, now modified to be >> less intrusive, as sugested by Marton Balint, and hopefully without git >> send-email messing up

Re: [FFmpeg-devel] [PATCH] avfilter/image2: Add source file path and basename to each packet side data.

2019-12-16 Thread Alexandre Heitor Schmidt
size=20:fontcolor=white:fontfile=FreeSans.ttf:text='%{metadata\:source_basename\:NA}':x=10:y=10" + at end example + So I'm attaching the patch to make life easier. Thank you! Alex. On 16/12/2019 22:26, Alexandre Heitor Schmidt wrote: This is the second time I'm submiting this

[FFmpeg-devel] [PATCH] avfilter/image2: Add source file path and basename to each packet side data.

2019-12-16 Thread Alexandre Heitor Schmidt
cumentation for drawtext was also updated and an usage example was added. Fixes #2874. Signed-off-by: Alexandre Heitor Schmidt --- doc/filters.texi | 15 +-- libavformat/img2.h| 2 ++ libavformat/img2dec.c | 28 3 files changed, 43 insertions(

Re: [FFmpeg-devel] [PATCH] avfilter/drawtext: special metadata fields to allow plotting source filename to output.

2019-12-15 Thread Alexandre Heitor Schmidt
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

Re: [FFmpeg-devel] [PATCH] avfilter/drawtext: special metadata fields to allow plotting source filename to output.

2019-12-15 Thread Alexandre Heitor Schmidt
On 14/12/2019 23:15, Marton Balint wrote: On Sat, 14 Dec 2019, 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->sou

[FFmpeg-devel] [PATCH] avfilter/drawtext: special metadata fields to allow plotting source filename to output.

2019-12-14 Thread Alexandre Heitor Schmidt
e 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 --- doc/filters.texi | 13 + fftools/ffmpe