Convert YouTube to DVD for Linux

Just taking some notes…

Extract Youtube videos

$ sudo apt-get install cclive

To pass multiple links to cclive, for example:

$ cat > url.lst
$ cat url.lst | cclive -f best

Concatenate WebM files into a single file

$ sudo apt-get install mkvtoolnix
$ mkvmerge -o buddha_bbc_full.webm 
  -w buddha_bbc_01.webm + buddha_bbc_02.webm + buddha_bbc_03.webm + 
     buddha_bbc_04.webm + buddha_bbc_05.webm

For FLVs, you may use mencoder.

$ mencoder -forceidx -of lavf -oac pcm -ovc copy -o output.flv 
  file1.flv file2.flv file3.flv ....

Make a DVD ISO from a WebM file

$ sudo apt-get install mencoder ffmpeg dvdauthor lame libtwolame0 genisoimage growisofs

Usage: <WebM-file>



BASENAME=`basename $1 .webm`

if [ $# -lt 1 ]; then
    echo "usage : `basename $0` <webm-file>"

ffmpeg -i "$1" -target ntsc-dvd -sameq $TEMPFILE
mkdir DVD
dvdauthor -o DVD -t $TEMPFILE
dvdauthor -o DVD -T
genisoimage -dvd-video -o $ISONAME DVD
echo 'Would you like to burn this disc now, 1 for true 0 for false? '
read boole
if [ $boole -eq 1 ]; then
    growisofs -dvd-compat -Z /dev/sr0=$ISONAME

Type “1”, if you want to burn ISO after script runs.

1 thought on “Convert YouTube to DVD for Linux

  1. Pingback: Firefox で閲覧中の動画をコマンドラインからダウンロード | Amrta

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s