samedi 23 janvier 2021

ffmpeg Windows split 1 video to chunks with random length (no re-encode)

i have 1 big video file and i need to split it to random length chunks without re-encode.

for example chunks from 130 to 240 seconds.

for windows ffmpeg

tried this and .... nothing in output folder.

$ times=$(ruby -e 's=[]; d=0; while d < 150 do t=rand(15..50); s << (d+t); d=d+t end; puts s.join(",")')
$ echo $times
15,53,96,124,168
$ ffmpeg -i lutherceleb.mp4 -f segment -segment_times $times -c copy -reset_timestamps 1 -map 0 OUTPUT%d.mp4

thanks you.




Aucun commentaire:

Enregistrer un commentaire