J2897 icon

Clip a video using FFmpeg

J2897 | PRO | 08/16/19 10:22:38 PM UTC | 0 ⭐ | 792 👁️ | Never ⏰ | []
Batch |

570 B

|

None

|

0 👍

/

0 👎

@echo OFF
cls
set "PAUSES=1"
setlocal
 
:: This is just for stripping the intro and outro from a video using FFmpeg.
 
REM The beginning and end of the clip [hh:mm:ss].
set "START=00:00:12"
set "END=00:14:19"
 
REM The source file and destination.
set "INPUT=D:\Videos\ASMR.mp4"
set "OUTPUT=D:\Videos\ASMR-clip.mp4"
 
REM FFmpeg variables.
set "FFMPEG=%USERPROFILE%\Programs\ffmpeg\bin\ffmpeg.exe"
set "OPTIONS_BEGIN=-hide_banner"
 
REM Main command.
"%FFMPEG%" %OPTIONS_BEGIN% -i "%INPUT%" -ss %START% -to %END% -c copy "%OUTPUT%"
 
endlocal
if %PAUSES% EQU 1 (pause)

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎