From 16fab5b996915515e60237c16c3b7f1ce49712c8 Mon Sep 17 00:00:00 2001 From: Olivier Korach Date: Sat, 19 Oct 2024 12:29:51 +0200 Subject: [PATCH] Move batches --- .../{audio-shuffle.bat => shuffle.bat} | 0 batch-files-images/poster.bat | 2 +- batch-files-images/renamer.bat | 13 +++++++++++ batch-files-images/scale.bat | 2 +- batch-files-images/shuffle.bat | 23 +++++++++++++++++++ 5 files changed, 38 insertions(+), 2 deletions(-) rename batch-files-audio/{audio-shuffle.bat => shuffle.bat} (100%) create mode 100644 batch-files-images/renamer.bat create mode 100644 batch-files-images/shuffle.bat diff --git a/batch-files-audio/audio-shuffle.bat b/batch-files-audio/shuffle.bat similarity index 100% rename from batch-files-audio/audio-shuffle.bat rename to batch-files-audio/shuffle.bat diff --git a/batch-files-images/poster.bat b/batch-files-images/poster.bat index 24b42e7..e651540 100644 --- a/batch-files-images/poster.bat +++ b/batch-files-images/poster.bat @@ -18,4 +18,4 @@ :: Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. :: -image-poster -i %* --layout 5x2 --margin 100 +image-poster -i %* --layout 5x2 --margin 150 diff --git a/batch-files-images/renamer.bat b/batch-files-images/renamer.bat new file mode 100644 index 0000000..b86f68b --- /dev/null +++ b/batch-files-images/renamer.bat @@ -0,0 +1,13 @@ +:: setlocal enabledelayedexpansion +:: set /p pformat=Photo format XXX - #SEQ# - #TIMESTAMP# - #DEVICE# - #SIZE# ? +:: set /p vformat=Video format XXX - #SEQ# - #TIMESTAMP# - #DEVICE# - #SIZE# - #FPS#fps - #BITRATE#MB ? +:: for %%F in (%*) do ( +:: renamer -f "%%~F" -r "%root%" +:: ) + +:: renamer -r "%root%" -f %* -g 5 +set /p prefix=Prefix ? +set /p seqstart=Sequence Start ? +renamer --seqstart %seqstart% --prefix "%prefix%" --photo_format "%prefix%" --video_format "%prefix%" --files %* + +:: pause \ No newline at end of file diff --git a/batch-files-images/scale.bat b/batch-files-images/scale.bat index 917e6a4..ec7468d 100644 --- a/batch-files-images/scale.bat +++ b/batch-files-images/scale.bat @@ -22,6 +22,6 @@ setlocal enabledelayedexpansion set /p scale=Max size ?: for %%F in (%*) do ( ren "%%~F" "%%~nxF.before-scale.jpg" - E:\Tools\ffmpeg\bin\ffmpeg -i "%%~F.before-scale.jpg" -vf scale=%scale%:-1 "%%~F" + D:\Tools\ffmpeg\bin\ffmpeg -i "%%~F.before-scale.jpg" -vf scale=%scale%:-1 "%%~F" ) pause \ No newline at end of file diff --git a/batch-files-images/shuffle.bat b/batch-files-images/shuffle.bat new file mode 100644 index 0000000..4f399a9 --- /dev/null +++ b/batch-files-images/shuffle.bat @@ -0,0 +1,23 @@ +:: +:: media-tools +:: Copyright (C) 2024 Olivier Korach +:: mailto:olivier.korach AT gmail DOT com +:: +:: This program is free software; you can redistribute it and/or +:: modify it under the terms of the GNU Lesser General Public +:: License as published by the Free Software Foundation; either +:: version 3 of the License, or (at your option) any later version. +:: +:: This program is distributed in the hope that it will be useful, +:: but WITHOUT ANY WARRANTY; without even the implied warranty of +:: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +:: Lesser General Public License for more details. +:: +:: You should have received a copy of the GNU Lesser General Public License +:: along with this program; if not, write to the Free Software Foundation, +:: Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +:: + +shuffle -g 5 -i %* + +pause \ No newline at end of file