Skip to content

Commit

Permalink
Create ADD_Framenumber_to_MP4.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
L0Lock authored Oct 5, 2020
1 parent ca65599 commit c717eab
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions ADD_Framenumber_to_MP4.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
rem @echo off
:again

cd /D %~p1

ffmpeg ^
-i "%~nx1" ^
-vf "drawtext=fontfile=/Windows/Fonts/courbd.ttf: text='Frame \: %%{eif\:n\:d\:2}': start_number=1: x=(w-tw)/2: y=h-(2*lh): fontcolor=white: fontsize=40: box=1: boxcolor=black@0.4: boxborderw=8" ^
-c:a copy ^
"%~p1%~n1_framenumbered.mp4"
pause
if NOT ["%errorlevel%"]==["0"] goto:error
echo %~n1 Done!

shift
if "%~1" == "" goto:end
goto:again

:error

echo There was an error. Please check your input file or report an issue on github.com/L0Lock/FFmpeg-bat-collection/issues.
pause
exit 0

:end

cls
echo Encoding succesful. This window will close after 10 seconds.
timeout /t 10

0 comments on commit c717eab

Please # to comment.