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 |
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 |