0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Linux CLIで動画ファイルをDVD-Video形式にする方法

Posted at

余興的に・・・

動画ファイルを再生可能なDVD Videoイメージ(.iso)に変換する作業をやってみたのでメモ。出所の怪しいGUIツールを入れずともDVDを作成できるので便利。

必要なツールは以下でインストールしておく

sudo apt install ffmpeg dvdauthor genisoimage

1. 動画形式の変換

ffmpegで動画ファイル(今回はmp4)をntsc-dvdに変換する
アスペクト比は16:9か4:3がいいらしい?

ビットレートや解像度の変換はお好みで。何もしなければHD解像度(1280x720)になった。

ffmpeg
	-i "my-video.mp4"
	-target ntsc-dvd
	-aspect 16:9 "my-video.mpg"

2. dvdauthorでファイルを階層化する

export TMPDIR=dvd_tmp
export VIDEO_FORMAT=NTSC

dvdauthor -o $TMPDIR -t "my-video.mpg"
dvdauthor -o $TMPDIR -T

dvd_tmp/VIDEO_TSが作成される

3. genisoimageでISO化

多分-dvd-videoオプションが再生可能なDVD形式になるように指定している?

genisoimage -dvd-video -o "my-iso-filename.iso" $TMPDIR

あとは完成したisoをDVDに焼くなり、誰かに送ってVLCなどで再生してもらうなりすればOK

短いけどここまで...ありがとうございました。

0
0
0

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?