LoginSignup
1

More than 5 years have passed since last update.

HandBrakeCLIでチャプターごとに動画を分割

Posted at

HandBrake(GUI)でもチャプターごとに分割できるが、何回も操作が必要なので...
Macだと良いソフトが無さげだったので、HandBrakeCLI使うと簡単にできることを備忘録&紹介。

splitByChapter.sh
#!/bin/sh

# 42チャプターに分かれているmovie.m4vを分割
for var in {1..42}
do
    file="${var}.m4v"
    HandBrakeCLI -c $var -i movie.m4v -o $file
done

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1