
FFmpeg –> nhập số phần bạn muốn chia video
video dài 20′ các bác nhập số phần muốn chia là xog, ez
@echo off
setlocal enabledelayedexpansion
set /p time=Chia so PPPPPPPPPPPPPPPPPPPPPPPPPPPPPart (s):
for %%a in (“*.mp4”) do (
ffprobe -i “%%a” -show_entries format=duration -v quiet -of csv=”p=0″ > “output/filelist.txt”
set /p b=< “output/filelist.txt”
set /a time=b/time+3
ffmpeg -y -i “%%a” -c copy -map 0 -segment_time !time! -f segment -reset_timestamps 1 “%%~na P_%%2d.mp4”
del “%%~na.mp4”
)
