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!

filfish
June 18th, 2010, 01:25 PM
Awesome, I came across a how2 with the same steps as your script in it, but this is a beautiful example of script writing, quick, clean and no fuss, I use many tools day in, day out but rarely put them into scripts such as this, time to take another look at my dailies and start scripting!

Might be worth pointing out the 'Aspect options' such as not adding an aspect leaves the video in its original aspect etc, and also the video format, you use ntsc-dvd whereas UK use pal-dvd, pointing out options would really help others that haven't much of an idea about formats etc.

All meant as constructive comments, this is a fantastic how to, and I'm really glad to have stumbled across it.

wboyd53tx
July 16th, 2011, 10:42 PM
Wow. That is what I was looking for, all in a nutshell. Thank you very much. Now using Katya via Linux Mint 11 (Ubuntu 11.04 base), but already had all the necessary programs installed.

Cope57
July 17th, 2011, 03:43 AM
devede