Results 1 to 7 of 7

Thread: flv (flash video) to dvd iso

  1. #1
    Join Date
    Feb 2008
    Location
    Farwell, Mi
    Beans
    66
    Distro
    Kubuntu 11.04 Natty Narwhal

    flv (flash video) to dvd iso

    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

    Code:
    flv2dvd *
    the end result is a dvd iso image ready to be burned to dvd
    Last edited by rfrayer; October 21st, 2008 at 09:05 AM.
    Ubuntu-4-Life


    Affordable Webhosting

    www.Global-Web.us


  2. #2
    Join Date
    Dec 2006
    Location
    puyallup WA
    Beans
    286
    Distro
    Lubuntu 12.04 Precise Pangolin

    Re: flv (flash video) to dvd iso

    Thanks works grate!

  3. #3
    Join Date
    Jul 2006
    Beans
    20

    Question Re: flv (flash video) to dvd iso

    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?

  4. #4
    Join Date
    Jun 2009
    Beans
    8

    Re: flv (flash video) to dvd iso

    Awesome... thanks so much...

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

  5. #5
    Join Date
    Oct 2008
    Beans
    8

    Wink Re: flv (flash video) to dvd iso

    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.

  6. #6
    Join Date
    Dec 2008
    Location
    Amarillo, TX
    Beans
    5
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: flv (flash video) to dvd iso

    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.

  7. #7
    Join Date
    Dec 2005
    Beans
    308

    Re: flv (flash video) to dvd iso

    devede
    ( o< -Computers do not have problems, they have users. ~ Cope57
    / /\
    V_/_

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •