Extract one minute clip of video using ffmpeg
Here’s how you can extract the first one minute of any mp4
file using ffmpeg
ffmpeg -i in.mp4 -ss 0 -t 60 -c copy out.mp4
Here’s a .bat
script to extract all mp4 in the current folder, to a folder in the current directory named ‘clips’, while retaining the same file name.
for %%a in ("*.mp4") do ffmpeg -i "%%a" -ss 0 -t 60 -c copy "clips\%%~na.mp4"
Done ! Now you don’t have to manually extract clips using various softwares.
Be First to Comment