$ ffmpeg -i <input-ts-file> -c:v libx265 <output-mp4-file>
$ ls *.ts | xargs -P 4 -I {} ffmpeg -i {} -c:v libx265 mp4/{}.mp4
file <path-to-movie-file>
file ./movie/m-01.mp4 file ./movie/m-02.mp4 file ./movie/m-03.mp4 file ./movie/m-0N.mp4
$ ffmpeg -f concat -safe 0 -i <list-of-movie-files> -c copy <output-movie-file>
option | description | remark |
---|---|---|
-c copy | 再エンコード無しで結合 | 再エンコードしないので高速。結合対象が全て同一エンコードの動画の場合のみ使用可。 |
-safe 0 | 'Unsafe file name '<movie-file>' <list-file>: Operation not permitted' というエラーが出た場合、これで回避できる。 |