I decided that I needed to burn some video files to DVD this weekend, but instead of just firing up K3B and getting the job done, I thought that instead i’d take my time with this and build\modify a script so that I can do it from the command line instead. I managed to find one that had potential but didnt work as it was about 4-5 years old, so ill present the finished script that does.
Before you can run this script you will need a few programs to be installed from the command line first.
apt-get install ffmpeg dvdauthor
pacman -Ss ffmpeg dvdauthor
Once that is done you can then create the script file in the folder with the video you want to convert:
You can edit this with your editor of choice, but I like nano:
then you can cut and paste this into the file:
Above you will notice the line stating
This is here because
mkisofs will fail if it is not set to either PAL or NSTC
Before you can run the script you will want to make it executable, you can do this by entering the following command:
chmod +x makeDVD.sh
You can downoad the script here
To use this script you will use the following format:
./makeDVD.sh sourceVideo.avi resultingISO.iso