Created
April 24, 2018 22:03
-
-
Save kg/f648105a55f492b5a43418313e6e7333 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@if [%4]==[] goto error | |
@goto ok | |
:error | |
@echo USAGE: videocrop START_TIME DURATION INPUT OUTPUT | |
@goto end | |
:ok | |
@set START_TIME=%1 | |
@set DURATION=%2 | |
@set INPUT=%3 | |
@set OUTPUT=%4 | |
@set OPTS_PREFIX=-v warning -ss %START_TIME% | |
@set OPTS_SUFFIX=-t %DURATION% -flags +global_header -vcodec copy -acodec copy | |
ffmpeg %OPTS_PREFIX% -i %INPUT% %OPTS_SUFFIX% %OUTPUT% | |
:end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment