Hey everyone I'm hoping to wanting to create a mosaic tile for video clips. I've got the majority of the setup dialed in, but the drawtext metadata is fighting me. I'd like to have my mosaic tiles with a box containing filename, duration, encoder and optionally file size. So far this is where I am... ./ffmpeg -i "$1" \ -vf "select=gt(scene\,0.087),\ scale=192:-1,\ tile=10x10,\ drawtext="fontfile=/System/Library/Fonts/Helvetica.ttc":\ text=`basename "${1}"` :\ fontcolor=magenta:\ shadowx=1.5:\ shadowy=2:\ fontsize=60\:\ x=(w-text_w)/2:\ y=(h-text_h)/2:\ box=1:\ boxcolor=lime@.5:\ boxborderw=240:" \ -frames:v 1 \ -q:v 7 \ ~/Desktop/test.jpg I've tested all kinds of %{metadata:%duration} kind of variants, but I'm not having any luck. My last grasp would be to probe, store the data in json and then cobble together the key values into the text field, but it seems like running to binaries is pointless since ffmpeg already knows everything I'm really after. Can this be done?
have you tried %{metadata=print:key=duration}
On Oct 16, 2018, at 7:18 04AM, Grant Griffith <grant.griffith@mono-1.com> wrote:
Hey everyone
I'm hoping to wanting to create a mosaic tile for video clips. I've got the majority of the setup dialed in, but the drawtext metadata is fighting me.
I'd like to have my mosaic tiles with a box containing filename, duration, encoder and optionally file size.
So far this is where I am...
./ffmpeg -i "$1" \ -vf "select=gt(scene\,0.087),\ scale=192:-1,\ tile=10x10,\ drawtext="fontfile=/System/Library/Fonts/Helvetica.ttc":\ text=`basename "${1}"` :\ fontcolor=magenta:\ shadowx=1.5:\ shadowy=2:\ fontsize=60\:\ x=(w-text_w)/2:\ y=(h-text_h)/2:\ box=1:\ boxcolor=lime@.5:\ boxborderw=240:" \ -frames:v 1 \ -q:v 7 \ ~/Desktop/test.jpg
I've tested all kinds of %{metadata:%duration} kind of variants, but I'm not having any luck. My last grasp would be to probe, store the data in json and then cobble together the key values into the text field, but it seems like running to binaries is pointless since ffmpeg already knows everything I'm really after.
Can this be done? _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
No luck. "[Parsed_drawtext_3 @ 0x7fd419428000] %{metadata=print} is not knowned= 0x " At this point I'm thinking of running ffprobe and parsing the xml into variables On Tue, Oct 16, 2018 at 2:58 PM DopeLabs <dopelabs@dubstep.fm> wrote:
have you tried
%{metadata=print:key=duration}
On Oct 16, 2018, at 7:18 04AM, Grant Griffith <grant.griffith@mono-1.com> wrote:
Hey everyone
I'm hoping to wanting to create a mosaic tile for video clips. I've got the majority of the setup dialed in, but the drawtext metadata is fighting me.
I'd like to have my mosaic tiles with a box containing filename, duration, encoder and optionally file size.
So far this is where I am...
./ffmpeg -i "$1" \ -vf "select=gt(scene\,0.087),\ scale=192:-1,\ tile=10x10,\ drawtext="fontfile=/System/Library/Fonts/Helvetica.ttc":\ text=`basename "${1}"` :\ fontcolor=magenta:\ shadowx=1.5:\ shadowy=2:\ fontsize=60\:\ x=(w-text_w)/2:\ y=(h-text_h)/2:\ box=1:\ boxcolor=lime@.5:\ boxborderw=240:" \ -frames:v 1 \ -q:v 7 \ ~/Desktop/test.jpg
I've tested all kinds of %{metadata:%duration} kind of variants, but I'm not having any luck. My last grasp would be to probe, store the data in json and then cobble together the key values into the text field, but it seems like running to binaries is pointless since ffmpeg already knows everything I'm really after.
Can this be done? _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
_______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
-- Grant Griffith IT Manager MONO 612.454.4946 <612-454-4946> Direct 612.454.4900 <612-454-4900> Main MONO-1.COM <https://mono-1.com>
2018-10-16 22:35 GMT+02:00, Grant Griffith <grant.griffith@mono-1.com>:
No luck. "[Parsed_drawtext_3 @ 0x7fd419428000] %{metadata=print} is not knowned= 0x "
Please provide the command line you tested together with the complete, uncut console output. Carl Eugen
I've tested many variation on the metadata flag, but per the recommendation earlier I've tried this. It will error out and just won't print anything. The command I'm attempting... ./ffmpeg -i "$1" \ -vf "select=gt(scene\,0.087),\ scale=192:-1,\ tile=10x10,\ drawtext="fontfile=/System/Library/Fonts/Helvetica.ttc":\ text='%{metadata=print\:key=duration}' :\ fontcolor=magenta:\ shadowx=3:\ shadowy=3:\ shadowcolor=black@.7:\ fontsize=60\:\ x=(w-text_w)/2:\ y=(h-text_h)/2:\ box=1:\ boxcolor=lime@.45:\ boxborderw=200:" \ -hide_banner \ -v error \ -frames:v 1 \ -q:v 7 \ "${output}" Variations - no error, just no output or the last value e.g. "Duration"--- text='%{metadata\:print\:key=Duration}' text='%{metadata\:0\:Duration}' text='%{metadata\:creation_date}' text='%{metadata\:Creator}' text='%{metadata\:filename}' The output of those variations looks like this: https://imgur.com/a/jdohoLa On Tue, Oct 16, 2018 at 4:51 PM Carl Eugen Hoyos <ceffmpeg@gmail.com> wrote:
2018-10-16 22:35 GMT+02:00, Grant Griffith <grant.griffith@mono-1.com>:
No luck. "[Parsed_drawtext_3 @ 0x7fd419428000] %{metadata=print} is not knowned= 0x "
Please provide the command line you tested together with the complete, uncut console output.
Carl Eugen _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
To unsubscribe, visit link above, or email ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
-- Grant Griffith IT Manager MONO 612.454.4946 <612-454-4946> Direct 612.454.4900 <612-454-4900> Main MONO-1.COM <https://mono-1.com>
Am 17.10.2018 um 16:12 schrieb Grant Griffith <grant.griffith@mono-1.com>:
I've tested many variation on the metadata flag, but per the recommendation earlier I've tried this. It will error out and just won't print anything.
The command I'm attempting...
./ffmpeg -i "$1" \ -vf "select=gt(scene\,0.087),\ scale=192:-1,\ tile=10x10,\ drawtext="fontfile=/System/Library/Fonts/Helvetica.ttc":\ text='%{metadata=print\:key=duration}' :\ fontcolor=magenta:\ shadowx=3:\ shadowy=3:\ shadowcolor=black@.7:\ fontsize=60\:\ x=(w-text_w)/2:\ y=(h-text_h)/2:\ box=1:\ boxcolor=lime@.45:\ boxborderw=200:" \
-hide_banner \ -v error \
Sorry if you don’t find this obvious: When asking for help here, don’t use „hide_banner“ or „v error“ (unless you need support for those options). Please find out what top-posting means and avoid it here. Carl Eugen
On 10/17/18, Grant Griffith <grant.griffith@mono-1.com> wrote:
I've tested many variation on the metadata flag, but per the recommendation earlier I've tried this. It will error out and just won't print anything.
The command I'm attempting...
./ffmpeg -i "$1" \ -vf "select=gt(scene\,0.087),\ scale=192:-1,\ tile=10x10,\ drawtext="fontfile=/System/Library/Fonts/Helvetica.ttc":\ text='%{metadata=print\:key=duration}' :\ fontcolor=magenta:\ shadowx=3:\ shadowy=3:\ shadowcolor=black@.7:\ fontsize=60\:\ x=(w-text_w)/2:\ y=(h-text_h)/2:\ box=1:\ boxcolor=lime@.45:\ boxborderw=200:" \ -hide_banner \ -v error \ -frames:v 1 \ -q:v 7 \ "${output}"
Variations - no error, just no output or the last value e.g. "Duration"--- text='%{metadata\:print\:key=Duration}' text='%{metadata\:0\:Duration}' text='%{metadata\:creation_date}' text='%{metadata\:Creator}' text='%{metadata\:filename}'
The output of those variations looks like this: https://imgur.com/a/jdohoLa
The "metadata" you seek is not part of frame metadata available to drawtext filter.
participants (4)
-
Carl Eugen Hoyos -
DopeLabs -
Grant Griffith -
Paul B Mahol