All pastes #2049631 Raw Edit

Video converter.

public text v1 · immutable
#2049631 ·published 2011-04-23 07:36 UTC
rendered paste body
#!/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
ffmpeg -ar 44100 -r 29.97 -bufsize 20M -target pal-dvd -i * ~/output/*.mpg
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