#author("2021-11-12T07:53:29+00:00","","")
#author("2021-12-11T16:42:26+00:00","","")
#topicpath


///////////////////////////////////////////////////////////////////////////////
* 目次 [#nda09832]
#contents();

///////////////////////////////////////////////////////////////////////////////
* ffmeg [#b6085777]

//=============================================================================
** ts を mpeg4 に変換 [#c57baea7]
- 書式:
 $ ffmpeg -i <input-ts-file> -c:v libx265 <output-mp4-file>
- 複数の ts を変換する例
 $ ls *.ts | xargs -I {} ffmpeg -i {} -c:v libx265 {}.mp4


//=============================================================================
** 動画の結合 [#e64c89db]
+ 結合したい動画ファイルのリストをテキストで作成する
-- 結合したい動画ファイルのリストの各行の書式:
-- 結合したい動画ファイルのリストの各行の書式:ファイル名を <list-of-movie-files> とする
 file <path-to-movie-file>
-- 例: ファイル名を <list-of-movie-files> とする
-- 例:
 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' というエラーが出た場合、これで回避できる。|


//=============================================================================
** 動画の切り出し [#v1805869]
- コマンド書式
 $ ffmpeg -ss [duration] -to [hh:mm:ss] -i <input-movie-file> -c copy <output-movie-file>
~
                           切り出し区間
 |<--- ss --->|<--------------- t --------------->|
 +------------+-----------------------------------+-----+

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS