Skip to content

Commit

Permalink
Move batches
Browse files Browse the repository at this point in the history
  • Loading branch information
okorach committed Oct 19, 2024
1 parent 908dd0c commit 16fab5b
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 2 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion batch-files-images/poster.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
13 changes: 13 additions & 0 deletions batch-files-images/renamer.bat
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion batch-files-images/scale.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
23 changes: 23 additions & 0 deletions batch-files-images/shuffle.bat
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 16fab5b

Please sign in to comment.