Duclv

Render

May 5th, 2017
584
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.75 KB | None | 0 0
  1. @ECHO OFF
  2.  
  3. :LOOP
  4. rem check first argument whether it is empty and quit loop in case;
  5. rem `%1` is the argument as is; `%~1` removes surrounding quotes;
  6. rem `"%~1"` therefore ensures that the argument is always enclosed within quotes:
  7. if "%~1"=="" goto :END
  8. rem the argument is passed over to the command to execute (`"%~1"`):
  9. 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"
  10. rem `shift` makes the second argument (`%2`) to be the first (`%1`), the third (`%3`) to be the second (`%2`),...:
  11. shift
  12. rem go back to top:
  13. goto :LOOP
  14. :END
Advertisement
Add Comment
Please, Sign In to add comment