Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO OFF
- :LOOP
- rem check first argument whether it is empty and quit loop in case;
- rem `%1` is the argument as is; `%~1` removes surrounding quotes;
- rem `"%~1"` therefore ensures that the argument is always enclosed within quotes:
- if "%~1"=="" goto :END
- rem the argument is passed over to the command to execute (`"%~1"`):
- ffmpeg -i "%~1" -preset ultrafast -metadata author=Vincent -metadata:s handler_name="Produced by Vincent" -vf drawtext=fontfile='c\:\\Windows\\Fonts\\comicbd.ttf':text='@VincentNews':fontcolor=white@0.6:fontsize=24:x=w-text_w-text_h:y=text_h -c:a copy "%~1.Render.mp4"
- rem `shift` makes the second argument (`%2`) to be the first (`%1`), the third (`%3`) to be the second (`%2`),...:
- shift
- rem go back to top:
- goto :LOOP
- :END
Advertisement
Add Comment
Please, Sign In to add comment