first we need the dependancies
Code:
sudo aptitude install mencoder ffmpeg dvdauthor lame lame-extras libtwolame0 genisoimage
sudo gedit /usr/bin/flv2dvd
paist in the fallowing code
Code:
#!/bin/bash
output=$1
####################
# flv Function #
####################
function flv {
ffmpeg -i "$output" -target ntsc-dvd -aspect 4:3 output.mpg
}
####################
# rmflv Function #
####################
function rmflv {
rm *.flv
}
####################
# convert Function #
####################
function convert {
dvdauthor -o dvd -t output.mpg
}
####################
# rmpg Function #
####################
function rmpg {
rm output.mpg
}
###################
# Rename Function #
###################
function finalize {
dvdauthor -o dvd -T
}
#####################
# ISO Function #
#####################
function image {
mkisofs -dvd-video -o dvd.iso dvd/
}
#####################
# rm2 Function #
#####################
function rm2 {
rm -rf dvd/
}
###############
# Main Script #
###############
flv ;
rmflv ;
convert ;
rmpg ;
finalize ;
image ;
rm2 ;
exit
save
sudo chmod 755 /usr/bin/flv2dvd
cd the directory where the (single) flv file is at
run this comand
the end result is a dvd iso image ready to be burned to dvd
Bookmarks