View previous topic :: View next topic |
Author |
Message |
Alexandr n00b
Joined: 06 Sep 2005 Posts: 11 Location: Ukraine
|
Posted: Tue Feb 20, 2007 7:31 pm Post subject: [SCRIPT] DVD-video burning (growisofs) with verification |
|
|
Simple script for writing DVD-video with md5sum verification.
Feel free to edit this script for your requires. :)
Script requires:
- bash :)
- growisofs
- configured udev, or something else, for automounting dvd-disc into /mnt/cdrom
- pwd, eject, md5sum
- read notes in the script
Usage:
copy and paste next code into new file /usr/local/bin/dvd-video-burn
and make this file executable
Code: | #!/bin/bash
# dvd-video-burn
# Author: Alexander Pogrebny
#
# Note that you need to prepare a DVD-Video compliant directory tree.
# This means you need to have a directory VIDEO_TS and AUDIO_TS.
# The directory VIDEO_TS needs to include all needed files (file names must be all caps) for a compliant DVD-Video filesystem.
#
if [ -z "$1" ]
then echo Use: dvd-video-burn /path/to/dvd-video/dir/
exit
fi
if [ ${1:0:1} = "/" ]
then DIR=$1
else DIR=$(pwd)/$1
fi
growisofs -Z /dev/cdrom -V DVD-video -dvd-video $DIR/
eject
eject -t
cd $DIR/VIDEO_TS/
if [ ! -e ../md5 ]
then md5sum * > ../md5
fi
cd /mnt/cdrom/VIDEO_TS/
md5sum -c $DIR/md5 |
P.S. Strange, but why k3b's creators don't want to add verification for DVD-video? |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|