@taneli's answer covers most of the process but there are a few missing details. Here is my complete process for converting an MP4 file and writing it to a DVD.
I usually only work with MP4 files but I think this should work with most video formats as inputs (as long as it's supported by ffmpeg). I have tested this on NTSC DVD players.
(Tested in Lubuntu 16.04 LTS, Ubuntu Mate 18.04, and Ubuntu Mate 20.04, AMD64)
1. Install these packages (using sudo apt-get install
):
- dvdauthor
- ffmpeg
- wodim
- mkisofs
2. Convert your video file to the correct format.
(tested using ffmpeg version 2.8.15-0 and 4.2.2-1ubuntu1)
This depends on the region of the world where you bought the DVD player.
3. Use dvdauthor to create the dvd filesystem
(Tested using dvdauthor 0.7.0 and 0.7.2)
First time setup:
(source)
Create a file called video_format
in ~/.config/
.
The file just needs to contain a single line:
- NTSC Users:
NTSC
- PAL Users:
PAL
- SECAM Users:
SECAM
? I wasn't able to confirm this.
Creating the DVD's Filesystem:
(source)
dvdauthor --title -o yourvideo -f yourvideo.mpg
dvdauthor -o yourvideo -T
These commands will write the DVD's filesystem to a folder named "yourvideo".
4. Creating an iso
(Tested using mkisofs 1.11.11)
This command will take the contents of the yourvideo folder and convert it into an iso.
mkisofs -dvd-video -o yourvideo.iso yourvideo/
5. Burn the iso to a blank DVD
(Tested using Wodim 1.1.11)
(source)
You will likely need to change /dev/sr0/
to match the device name of your DVD burner.
sudo wodim -tao speed=2 dev=/dev/sr0 -v -data yourvideo.iso