Tuesday, February 28, 2017

How to create a video DVD from the command line

"Using ffmpeg you can convert any video file to an mpg file, that dvdauthor can use later:
 
ffmpeg -i video.avi -aspect 16:9 -target pal-dvd dvd.mpg

You might want to change the aspect ratio to 4:3 or the target to ntsc-dvd, depending on your
preferences and region. If you need to define video bitrate use "-b bitrate" option:
 
ffmpeg -i video.avi -aspect 16:9 -target pal-dvd  -b 1800000 dvd.mpg

I`m not sure what units are used but the above example gives bitrate ca. 2300kbits/s which is usually enough for typical avi. Bigger bitrate gives better quality but a larger file. Just test the output and adjust the bitrate according to your needs.

Now add the mpg file to your project using dvdauthor:
 
dvdauthor -o dvd/ -t dvd.mpg

You can convert and add any number of files this way. After you've added all of them, run:
 
export VIDEO_FORMAT=PAL 
dvdauthor -o dvd/ -T

You might want to set VIDEO_FORMAT=NTSC instead.
And then you can create an iso with mkisofs:
 
mkisofs -dvd-video -o dvd.iso dvd/

which you can burn to a DVD disc with any DVD burning software. cdrecord from the command line will do just fine"

See the article for more advanced usage.

https://docs.salixos.org/wiki/How_to_create_a_video_DVD_from_the_command_line

No comments:

Post a Comment