PDA

View Full Version : flv (flash video) to dvd iso


rfrayer
September 29th, 2008, 09:24 PM
first we need the dependancies

sudo aptitude install mencoder ffmpeg dvdauthor lame lame-extras libtwolame0 genisoimagesudo gedit /usr/bin/flv2dvd

paist in the fallowing 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 ;

exitsave

sudo chmod 755 /usr/bin/flv2dvd


cd the directory where the (single) flv file is at

run this comand

flv2dvd *the end result is a dvd iso image ready to be burned to dvd

regor210
November 3rd, 2008, 09:51 PM
Thanks works grate!

nirudha
December 5th, 2008, 02:03 AM
I seem to be missing some apt sources as I can't find mpeg2video and lame-extras. Could you tell me what sources you have added? Also are you using Hardy or Intrepid?

BoomSchtick
June 7th, 2009, 01:10 AM
Awesome... thanks so much...

This was EXACTLY what I needed and the script made it easy as could be!