File size: 188 Bytes
e34aada
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

in_dir=$1
out_dir=$2

mkdir $out_dir;
for f in $in_dir/*.mp4
do
  y=${f##*/};
  ffmpeg -i $f -c copy -map 0 -segment_time 00:01:00 -f segment $out_dir/${y/.mp4}_%04d.mp4;
done