#!/bin/sh
# This script was built for backup recovery purposes only.
# No one, but the one who executes this script is responsible.
# DO NOT USE THIS SCRIPT TO BREAK LAWS!!!
#
mkdir ~/output
mkdir ~/input
cd ~/input
#
# It may be bad not to check for the directories I am creating, but it should not harm anything.
#
# My hopes for the ffmpeg line were to take the input and make it an .mpg
for f in ./*; do ffmpeg -ar 44100 -r 29.97 -bufsize 20M -target pal-dvd -i "$f" "$HOME/output/$f.mpg"; done
mkdir final/
cd ~/output
# With the dvdauthor line I was hoping to acomplish the task of making a dvd structure.
dvdauthor -t -o final/ --video=pal *
# mkisofs I planing to make it convert a file with a dvd structure to make it burnable.
mkisofs -dvd-video -v -o final.iso final
rm final
#
exit