LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion
User Name
Password
LinuxAnswers Discussion This forum is to discuss articles posted to LinuxAnswers.

Notices


Reply
  Search this Thread
Old 06-03-2005, 02:55 PM   #211
sk545
Member
 
Registered: Aug 2002
Posts: 312

Rep: Reputation: 30

Alright, i finally had the chance to try out the script that you emailed me, and here is what i found:

-It looks much cleaner, and i really liked that it told me what it was up to (like "Ripping audio...Wait...").

-There was a slocate error in the beggining of the script saying that i hadn't updated the slocate database. Minor thing, just saying that it was there.

-The aspect ratio is now set at 16:9 by default? Maybe it was before too, can't remember.

-After the prompt "Insert blank dvd and press ENTER", things didn't go so well.
The script exited out with this after i had put in a blank-dvd and pressed ENTER:

:-( unable to open64(".iso",O_RDONLY): No such file or directory.

I think mkisofs again failed, like it had in the past (IIRC, i know i had the same problem before, and i think i posted here how it was fixed).

-Not sure what would happen if i inserted a DVD-RW that already had data on it...that shouldn't matter since i thought one couldn't really erase a dvd-rw and it just gets rewritten upon.

-I like the fact that you capitalized the letters FINALIZING and BURNING. Something like that should be used with prompts like "What title do you want to rip? (ex. 1, 2 or 3 etc...)". We all know the colors didn't work out so well, what other choices do we have? Capitalizing is good, but what other simple things could be done?

Overall, i really liked it mainly because it has been "cleaned up" a lot and the interface is friendlier. Nice job.

Here is the entire log, if you wanna see it:

http://www.geocities.com/topsoill/dvrequant.log


Next, i have vamps and k9copy compiled and installed....i'll let you know how they work out.


Last edited by sk545; 06-03-2005 at 03:43 PM.
 
Old 06-03-2005, 03:45 PM   #212
Steel_J
Member
 
Registered: Oct 2004
Location: Montreal, Canada
Distribution: Linux Mint 21.3 Cinnamon
Posts: 359

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Thanks a lot for the feedback.

It's important to mention that Killfire contributed a lot to this version. He did a lot of cleaning up himself and he wrote code that gave me many new ideas and new ways to get things done.

Also the aspect ratio is controled by dvdauthor. It detects the proper one. DVRequant as nothing to do with this.

I made the small modifications you suggested with capitalizing letters.

DVD burning failed because mkisof failed in the first place you see. An ISO must be created before you can burn. This is what I can tell from your log file.

I think I may have found out why and I may have fixed it also. I will make some test and resend you a new script.

If I get around to put dvrequant on sourceforge we won't have to do this anymore, hahaha!
 
Old 06-03-2005, 06:11 PM   #213
sk545
Member
 
Registered: Aug 2002
Posts: 312

Rep: Reputation: 30
Thanks to killfire for the nice job as well.

Quote:
DVD burning failed because mkisof failed in the first place you see. An ISO must be created before you can burn. This is what I can tell from your log file. I think I may have found out why and I may have fixed it also. I will make some test and resend you a new script. If I get around to put dvrequant on sourceforge we won't have to do this anymore, hahaha!
Ok, i'll wait for the fixes...yeah, the sourceforge thing should be the way to go.

I just finished trying out k9copy/vamps. It looks like it works, but i can't play back the burnt dvd (at least with xine):

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x00000121
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x00000159
libdvdread: Elapsed time 0
libdvdread: Found 1 VTS's
libdvdread: Elapsed time 0
libdvdnavVDOpenFileUDF:UDFFindFile /VIDEO_TS/VTS_02_0.IFO failed
libdvdnavVDOpenFileUDF:UDFFindFile /VIDEO_TS/VTS_02_0.BUP failed
libdvdread: Can't open file VTS_02_0.IFO.
xiTK received SIGSEGV signal, RIP.
Aborted
 
Old 06-03-2005, 06:32 PM   #214
Steel_J
Member
 
Registered: Oct 2004
Location: Montreal, Canada
Distribution: Linux Mint 21.3 Cinnamon
Posts: 359

Original Poster
Blog Entries: 1

Rep: Reputation: 31
k9copy crashes on me everytime I start the re-authoring.

what's your version of vamps and k9copy?
 
Old 06-03-2005, 07:27 PM   #215
sk545
Member
 
Registered: Aug 2002
Posts: 312

Rep: Reputation: 30
I am using k9copy 0.2 from source (straight from the website, no cvs or anything) and i also downloaded both vamps sources from the same website (http://k9copy.free.fr/index.php, under downloads).

The vamps-k9copy.tar.gz is the actual vamps, but then it doesn't provide the vamps-play_title binary, so you have to download the original vamps source (vamps-0401-0.94.tgz) and compile that too. That will give you another vamps, lsdvd, and vamps-play_title. The only one you need is vamps-play_title, which i just copied over to /usr/local/bin. So, in the end, i am using 'vamps' from vamps-k9copy.tar.gz, 'vamps-play_title' from vamps-0401-0.94.tgz, and 'lsdvd' from the debian apt repo.

However, even though it looked like this worked, the dvd didn't play...maybe i should be using a newer version of vamps?

Also, i wonder if the developer speaks english...

Last edited by sk545; 06-03-2005 at 07:32 PM.
 
Old 06-05-2005, 12:17 AM   #216
Steel_J
Member
 
Registered: Oct 2004
Location: Montreal, Canada
Distribution: Linux Mint 21.3 Cinnamon
Posts: 359

Original Poster
Blog Entries: 1

Rep: Reputation: 31
He is of French nationality but probably speaks good english.
 
Old 06-05-2005, 03:41 PM   #217
sk545
Member
 
Registered: Aug 2002
Posts: 312

Rep: Reputation: 30
cool. Anyways, i tried both vamps, and neither outputs a dvd that is playable. I don't think its a vamps problem, but more of a dvdauthor or some corrupt xml.
 
Old 06-07-2005, 11:53 PM   #218
grainfed
LQ Newbie
 
Registered: Apr 2005
Location: Gold Coast, Australia
Posts: 5

Rep: Reputation: 0
Hey Steel_J,
Whilst I have been getting along OK with my version of the script, I am pretty sure I've got a fairly old version now. Just wondering if you could post the current script here, or point us to it's location?

Thanks.
 
Old 06-08-2005, 12:10 AM   #219
Steel_J
Member
 
Registered: Oct 2004
Location: Montreal, Canada
Distribution: Linux Mint 21.3 Cinnamon
Posts: 359

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Here it is.

I just finnished it today and sent it to wapcaplet ans SK545.

I also applied to sourceforge. I will know is it is accepted in a a few days.

Here is the new version: 0.18b final

Code:
#! /bin/bash

# DVrequant script   

# Will rip a DVD-9 disc with the  title and audio of your
# choice and requantize it to fit on a DVD-R 4.7
# Copyright Jean-François Ouellette (Steel_J)  2005-06-07

# Further coding, concept analysis and alpha testing and also set to read 
# from config file and work hands free by Daniel Patterson (KillFire) 2005-04-23
# Additional code for chaptering and error checking from Eric Pierce (WapCaplet) 2005-03-04
# Special thanks to SK545 (Khurram Ahmed) for is beta testing efforts and precious feedback 2005-06-07
# Without these guys this script would'nt have been the same.

# This software is licensed under the GNU General Public License
# For the full text of the GNU GPL, see:
#
#   http://www.gnu.org/copyleft/gpl.html
#
# No guarantees of any kind are associated with use of this software.

# Requirement: mplayer / libdvdcss / transcode / mjpegtools / dvdauhtor 0.6.10 / cdrecord (mkisofs) / lsdvd 

#===========================================================================
# DEFAULTS VARIABLES AND FUNCTION DEFINITIONS
# Configuration file
CONFIG_FILE=~/.dvrequant_config
# DVD content log
NFO_LOG=~/.dvrequant_nfo
# Process log file
PROCESS_LOG=~/.dvrequant_process.log
# Hands-free operation? (empty == no)
NOHANDS=""
# Have libdvdread? (assume no until it's found)
HAVE_READ=""
# Have libdvdcss? (assume no until it's found)
HAVE_CSS=""
# Name for video output and shrunk files
VIDEO_OUTPUT="video_out.m2v"
VIDEO_SHRUNK="video_shrunk.m2v"

# Take an integer number of seconds and format it as hours:minutes:seconds
# Echoes result to stdout, so in order to use the output as a "return value",
# call the function like this:
#   RETURN_VALUE=$( format_time $NUM_SECONDS )
format_time ()
{
  let "HMS_HOURS=$1 / 3600"
  let "HMS_MINS=( $1 % 3600 ) / 60"
  let "HMS_SECS=$1 % 3600 % 60"

  [[ $HMS_HOURS -lt 10 ]] && HMS_HOURS="0${HMS_HOURS}"
  [[ $HMS_MINS -lt 10 ]] && HMS_MINS="0${HMS_MINS}"
  [[ $HMS_SECS -lt 10 ]] && HMS_SECS="0${HMS_SECS}"

  echo "${HMS_HOURS}:${HMS_MINS}:${HMS_SECS}"
}

# Take a string containing a time (like "02:15:25.3") and
# format it as an integer number of seconds. Fractional seconds
# are truncated. Result is echoed to stdout, so to use the output
# as a "return value", call the function like this:
#   RETURN_VALUE=$( unformat_time $TIME_STRING )
unformat_time ()
{
  HMS_HOURS=$( echo $1 | sed -r -e 's/0?([0-9]+):0?([0-9]+):0?([0-9]+)(\.[0-9])?/\1/' )
  HMS_MINS=$( echo $1 | sed -r -e 's/0?([0-9]+):0?([0-9]+):0?([0-9]+)(\.[0-9])?/\2/' )
  HMS_SECS=$( echo $1 | sed -r -e 's/0?([0-9]+):0?([0-9]+):0?([0-9]+)(\.[0-9])?/\3/' )
  let "TOT_SECONDS=$HMS_HOURS * 3600 + $HMS_MINS * 60 + $HMS_SECS"
  echo $TOT_SECONDS
}

# Retrieve the chapter breaks from the specified track on the DVD.
# Echoes a string to stdout with a list of chapter-start times
# (i.e., "0, 1:53, 15:26, 1:23:15" etc.)
# To use output as a "return value", call the function like this:
#   CHAPTER_START_TIMES=$( get_chapters $TITLE )
get_chapters ()
{
  CH_LIST=$( lsdvd -c -t $1 2>&1 | grep "Chapter:" | \
      sed -r -e 's/^.* Length: ([^,]+).*$/\1/' )
  
  # Assemble the list
  echo -n "0"
  TOTAL_SECS=0
  for CUR_CHAP in $CH_LIST; do
    CUR_SECS=$( unformat_time $CUR_CHAP )
    # Don't insert markers for 0-second chapters
    if [[ $CUR_SECS -gt 0 ]]; then
      let "TOTAL_SECS=$TOTAL_SECS + $CUR_SECS"
      CUR_TIME=$( format_time $TOTAL_SECS )
      echo -n ",$CUR_TIME"
    fi
  done
}

#========================================================================
# Presentation
clear
VERSION=0.18b
echo -e "* DVRequant v${VERSION} *" 2> $PROCESS_LOG 1> $PROCESS_LOG
echo -e "* DVRequant v${VERSION} *"
echo "Requires: mplayer / libdvdcss / libdvdread / transcode / mjpegtools / dvdauhtor 0.6.10 / cdrecord (mkisofs)  / lsdvd "
echo "**dvdauthor must be version 0.6.10 and upward** "
echo "growisofs or K3B are optional but recommended"
echo " "

#============================================================================
# Checking for needed software
if [[ -z $( type -p mplayer ) ]]; then
  echo " "
  echo "mplayer is not detected";
  echo "you need it installed. Exiting...";
  false; exit;
fi

if [[ -z $( type -p transcode ) ]]; then
  echo " " 
  echo "transcode is not detected";
  echo "you need it installed. Exiting...";
  false; exit;
fi

if [[ -z $( type -p mpeg2enc ) ]]; then
  echo " "
  echo "mjpegtools is not detected";
  echo "you need it installed. Exiting...";
  false; exit;
fi

if [[ -z $( type -p dvdauthor ) ]]; then
  echo " "
  echo "dvdauthor is not detected";
  echo "you need it installed. Exiting...";
  false; exit;
fi

if [[ -z $( type -p mkisofs ) ]]; then
  echo " "
  echo "cdrecord (mkisofs) is not detected";
  echo "you need it installed. Exiting...";
  false; exit;
fi

if [[ -z $( type -p lsdvd ) ]]; then
  echo " "
  echo "lsdvd is not detected";
  echo "you need it installed. Exiting...";
  false; exit;
fi

# Try to find libdvdread.so.3, looking first in the most obvious places
if [[ $( type -p /usr/lib/libdvdread.so.3 ) ]]; then HAVE_READ="y"
elif [[ $( type -p /usr/local/lib/libdvdread.so.3 ) ]]; then HAVE_READ="y"
elif [[ $( slocate libdvdread.so.3 | head -n 1 ) ]]; then HAVE_READ="y"
fi

if [[ -z $HAVE_READ ]]; then
  echo " "
  echo "libdvdread is not detected";
  echo "you need it installed. Exiting...";
  false; exit;
fi

# Try to find libdvdcss.so.2, looking first in the most obvious places
if [[ $( type -p /usr/lib/libdvdcss.so.2 ) ]]; then HAVE_CSS="y"
elif [[ $( type -p /usr/local/lib/libdvdcss.so.2 ) ]]; then HAVE_CSS="y"
elif [[ $( slocate libdvdcss.so.2 | head -n 1 ) ]]; then HAVE_CSS="y"
fi

if [[ -z $HAVE_CSS ]]; then
  echo " "
  echo "*************************************************************** "
  echo "libdvdcss is not detected, you need it to complete the process.";
  echo "*************************************************************** "
  echo " "
  echo "******************************************************************************** "
  echo "The script will keep going but may exit with errors when trying to read the DVD. "
  echo "******************************************************************************** "
  echo " "
fi

#==========================================================================
# Read config file
echo "Reading from the config file..."
echo " "
# If config file doesn't exist, create it
if [[ ! -e "$CONFIG_FILE" ]]; then
echo "DVD_DEVICE_DEVICE /dev/dvd" > "$CONFIG_FILE"
echo "WORKING_DIR /home/$USER" >> "$CONFIG_FILE"
fi

WORKING_DIR=$( eval "echo `cat "$CONFIG_FILE" | grep "^WORKING_DIR" | cut -d \" \" -f 2`" )

if [[ ! -d $WORKING_DIR ]]; then
	mkdir $WORKING_DIR 2>> $PROCESS_LOG 1>> $PROCESS_LOG
fi

DVD_DEVICE=`cat $CONFIG_FILE | grep "^DVD_DEVICE" | cut -d " " -f 2`

echo "DONE!  "
echo "Press ENTER."
read KEY

#===========================================================================
# Create project folder and choose preferences

DISK_TITLE=`lsdvd $DVD_DEVICE -q | grep Disc | cut -d " " -f 3`

if [[ ! -d $DISK_TITLE ]]; then
mkdir $WORKING_DIR/$DISK_TITLE 2>> $PROCESS_LOG 1>> $PROCESS_LOG
else
echo "Directory $WORKING_DIR/$DISK_TITLE already exists. Continuing." 
fi

#==========================================================================
# Video stream sub-section
# Read and display info about DVD video titles (dvdnfo)

SPACE=" "

VIDEO_DISPLAY=`lsdvd -qt $DVD_DEVICE | grep Title | cut -d " " -f 1,2,3,4`

TITLE_NUM=`lsdvd $DVD_DEVICE | grep Longest | cut -c 16-17` 

TITLE_LENGTH=`lsdvd $DVD_DEVICE -q -t $TITLE_NUM | grep Length: | cut -c 20-40`
                                   
AUDIO_DISPLAY=`mplayer  -nojoystick -nolirc -nortc -dvd-device $DVD_DEVICE dvd://$TITLE_NUM -vo null -ao null -frames 0 -v | grep aid | cut -d " " -f 2,3,4,5,6,7,8,9,10,11,12`

echo "$VIDEO_DISPLAY" > "$NFO_LOG" 
echo "$SPACE " >> "$NFO_LOG" 

echo "The longest title is $TITLE_NUM  and is  $TITLE_LENGTH long"  >> "$NFO_LOG" 
echo "$SPACE " >> "$NFO_LOG" 

echo "$AUDIO_DISPLAY"  >> "$NFO_LOG"
echo "$SPACE " >> "$NFO_LOG" 

# Feed NFO Logfile
cat $NFO_LOG 2>> $PROCESS_LOG 1>> $PROCESS_LOG

#Display content of DVD to console
clear
echo -e "DVRequant v${VERSION}"
echo -e "You may modify $CONFIG_FILE as needed"
echo "DVD content is:"
echo " "
cat $NFO_LOG
echo " " 

#Clear content from log file
echo "$SPACE"  > "$NFO_LOG"

# Ask user what title he wants to rip
echo -n "WHAT TITLE DO YOU WANT TO RIP? (ex. 1, 2 etc...)>"
     
read -e TITLE_NUM
 
#audio stream sub-section
echo -n "HOW MANY AUDIO TRACKS DO YOU WANT ?(Max.2, default is 1)>"
read AUD_NUMBER
 
CHAPTER_START_TIMES=$( get_chapters $TITLE_NUM )
 
#Rip selected audio tracks and then video stream
#Default
if [[ -z $AUD_NUMBER  ]]; then  AUD_NUMBER="1"  
fi
if [ $AUD_NUMBER -gt "2"  ]; then  AUD_NUMBER="1"  
fi
echo     
echo -n "AID code for track #1 (ex. 128)>"
read -e TRACKA

#To prevent use of old files
if [ "$AUD_NUMBER" = "1" ]; then rm $WORKING_DIR/$DISK_TITLE/langb.ac3  2>> $PROCESS_LOG 1>> $PROCESS_LOG
fi
#Choice of 2 tracks
if [ "$AUD_NUMBER" = "2" ]; then 
echo -n  "AID code for track #2 (ex. 129)>"
read -e TRACKB

echo "Ripping audio...Wait..."
mplayer -dvd-device $DVD_DEVICE dvd://$TITLE_NUM -dumpaudio -aid $TRACKB -dumpfile $WORKING_DIR/$DISK_TITLE/langb.ac3  2>> $PROCESS_LOG 1>> $PROCESS_LOG
fi

echo "Ripping audio...Wait..."

mplayer -dvd-device $DVD_DEVICE dvd://$TITLE_NUM -dumpaudio -aid $TRACKA -dumpfile $WORKING_DIR/$DISK_TITLE/langa.ac3 2>> $PROCESS_LOG 1>> $PROCESS_LOG

echo " "
echo "Title now being ripped...Wait..."
echo " "

mplayer -dvd-device $DVD_DEVICE dvd://$TITLE_NUM -dumpvideo -dumpfile $WORKING_DIR/$DISK_TITLE/$VIDEO_OUTPUT 2>> $PROCESS_LOG 1>> $PROCESS_LOG

# Calculate requant factor      
#requant_factor = (video_size / (4700000000 - audio_size)) * 1.04

# If you are including more than one audio stream or a subtitle stream, those   
# filesizes must also be subtracted from the maximum dvd image size.
echo "Calculating factor..."
echo "The closer to 1.00 the better"
echo " "

#Move to work folder
cd $WORKING_DIR/$DISK_TITLE

VIDEO_SIZE=`du -b $VIDEO_OUTPUT  | cut -c 1-10`  2>> $PROCESS_LOG 1>> $PROCESS_LOG
AUDIOA=`du -b langa.ac3 | cut -c 1-9` 2>> $PROCESS_LOG 1>> $PROCESS_LOG

if [ "$AUD_NUMBER" = "2" ]; then 
AUDIOB=`du -b langb.ac3 | cut -c 1-9` 2>> $PROCESS_LOG 1>> $PROCESS_LOG
SPACE_AVAILABLE=$((4700000000-($AUDIOA+$AUDIOB))) 2>> $PROCESS_LOG 1>> $PROCESS_LOG
fi

if [ "$AUD_NUMBER" = "1" ]; then
SPACE_AVAILABLE=$((4700000000-$AUDIOA)) 2>> $PROCESS_LOG 1>> $PROCESS_LOG
fi
 
RATIO=$(echo "scale=2; $VIDEO_SIZE/$SPACE_AVAILABLE" | bc) 2>> $PROCESS_LOG 1>> $PROCESS_LOG

QUANT_FACTOR=$(echo "scale=2; $RATIO*1.05" | bc) 2>> $PROCESS_LOG 1>> $PROCESS_LOG

echo "Requant factor :"  "$QUANT_FACTOR"
echo " "

#========================================================================    
# Requantize it, if necessary:

if [[ $( echo "$QUANT_FACTOR > 1.00" | bc ) == "1" ]]; then

echo "Requantizing..."
echo " "
tcrequant -d2 -i $VIDEO_OUTPUT  -o $VIDEO_SHRUNK -f $QUANT_FACTOR 2>> $PROCESS_LOG 1>> $PROCESS_LOG

# Cleaning....  
rm $VIDEO_OUTPUT 
else
echo "No requantization necessary. Skipping."
mv $VIDEO_OUTPUT  $VIDEO_SHRUNK
fi

#========================================================================
# Remultiplex:
# *** If you experience problems with mplex splitting ouput files, uncomment the tcmplex commands below and comment out the mplex ones.
echo "Multiplexing..."
echo " "

if [ "$AUD_NUMBER" = "" ]; then
mplex -f 8 -o final.mpg $VIDEO_SHRUNK langa.ac3 2>> $PROCESS_LOG 1>> $PROCESS_LOG
#tcmplex -o final.mpg -i $VIDEO_SHRUNK -p langa.ac3 -m d 2>> $PROCESS_LOG 1>> $PROCESS_LOG
fi

if [ "$AUD_NUMBER" = "1" ]; then
mplex -f 8 -o final.mpg $VIDEO_SHRUNK langa.ac3 2>> $PROCESS_LOG 1>> $PROCESS_LOG
#tcmplex -o final.mpg -i $VIDEO_SHRUNK -p langa.ac3 -m d 2>> $PROCESS_LOG 1>> $PROCESS_LOG
fi

if [ "$AUD_NUMBER" = "2" ]; then
mplex -f 8 -o final.mpg $VIDEO_SHRUNK langa.ac3 langb.ac3 2>> $PROCESS_LOG 1>> $PROCESS_LOG
#tcmplex -o final.mpg -i $VIDEO_SHRUNK -p langa.ac3 -s langb.ac3 -m d  2>> $PROCESS_LOG 1>> $PROCESS_LOG
fi

# Cleaning up  *** If you want to keep the audio and video streams comment out the 3 lines below.
rm langa.ac3 2>> $PROCESS_LOG 1>> $PROCESS_LOG
rm langb.ac3 2>> $PROCESS_LOG 1>> $PROCESS_LOG
rm $VIDEO_SHRUNK  2>> $PROCESS_LOG 1>> $PROCESS_LOG

#To prevent use of old files
rm *.iso 2>> $PROCESS_LOG 1>> $PROCESS_LOG
rmdir dv_dvd 2>> $PROCESS_LOG 1>> $PROCESS_LOG

#========================================================================     
# Re-author it
# This will create a folder named "dv_dvd" and generate inside it
# a dvd structure -- VIDEO_TS and AUDIO_TS

echo "FINALIZING:"
echo -n "Authoring dvd: "
# Populate filesystem
dvdauthor  -t  -o  dv_dvd  -c $CHAPTER_START_TIMES final.mpg 2>> $PROCESS_LOG 1>> $PROCESS_LOG
	   
# Create IFO files
dvdauthor -o dv_dvd -T 2>> $PROCESS_LOG 1>> $PROCESS_LOG
echo "DONE!  "

cd $WORKING_DIR/$DISK_TITLE
echo -n "Making .iso: "   
# Create DVD Video compliant ISO image
mkisofs -dvd-video -udf -V $DISK_TITLE -o $DISK_TITLE.iso "$WORKING_DIR/$DISK_TITLE/dv_dvd" 2>> $PROCESS_LOG 1>> $PROCESS_LOG
echo "DONE!  "
#Copy the process log over to work folder
cp $PROCESS_LOG $WORKING_DIR/$DISK_TITLE/dvrequant_process.log

#========================================================================       
# End messages

echo "You may consult the log file:$PROCESS_LOG"
echo " "
echo "BURNING:"
echo "Use to burn image: growisofs -dvd-compat -Z $DVD_DEVICE=$DISK_TITLE.iso "
echo "Insert blank dvd and press ENTER"
read BURN
cd $WORKING_DIR/$DISK_TITLE
growisofs -dvd-compat -Z $DVD_DEVICE=$DISK_TITLE.iso 

exit
 
Old 06-09-2005, 09:35 AM   #220
sk545
Member
 
Registered: Aug 2002
Posts: 312

Rep: Reputation: 30
Just tried 0.18b, and unfortunately mkisofs fails to cooperate:

BURNING:
Use to burn image: growisofs -dvd-compat -Z /dev/dvd=.iso
Insert blank dvd and press ENTER

:-( unable to open64(".iso",O_RDONLY): No such file or directory

full log:

http://www.geocities.com/topsoill/dv...ocess0.18b.log


I dunno, maybe the debian version is not picking it up? This is the one i have:

$ mkisofs --version
mkisofs 2.01-unofficial-iconv (i686-pc-linux-gnu)

Wait...i just tried mkisofs alone with this command:

$ mkisofs -dvd-video -udf -o dvd.iso /tmp/dv_dvd/

That gave me a dvd.iso file just fine, but when i run the command manually "growisofs -dvd-compat -Z /dev/dvd=.iso", i get the same error ":-( unable to open64(".iso",O_RDONLY): No such file or directory". Maybe growisofs is the culprit here than mkisofs?

Ah, growisofs is the problem: Just tried and gave growisofs the full path (rather than ".iso", and its working now). The command i used is this one:

$ growisofs -dvd-compat -Z /dev/dvd=/tmp/dvd.iso (did get an error like so "WARNING: /dev/dvd already carries isofs!", but it went on anyways and burnt the dvd which played back fine).

I dunno, but it could be a bug in growisofs or maybe the script is giving it the wrong paramaters. Is it necessary to use growisofs? Couldn't we use cdrecord or dvdrecord as well?

Thanks.

Last edited by sk545; 06-09-2005 at 09:59 AM.
 
Old 06-09-2005, 11:46 AM   #221
Steel_J
Member
 
Registered: Oct 2004
Location: Montreal, Canada
Distribution: Linux Mint 21.3 Cinnamon
Posts: 359

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Quote:
That gave me a dvd.iso file just fine, but when i run the command manually "growisofs -dvd-compat -Z /dev/dvd=.iso", i get the same error "
That command with .iso at the end in not valid. You can't do that. That's why it does'nt work. You have to give it the name of an existing iso image, the full name.

Ok course it then works when you give it the full path, but what I just understood by your post is that somehow the $DISKTITLE variable in the script is not picked up on your system.

You see the script should create an iso named after the title of you movie, but it does not.

I just read your log file and I can see that at the top, right after the dvdrequant version number there should be a line containing the disc title like so:

Quote:
Disc tile: Movie title
...but it's not there. So that's your problem right there. The script doesn't have a name to work with. I now have to code in a failsafe to provide a generic title when one is not detected by the script.

That would prevent the growisofs problem you are experiencing.

What movie was this? (e-mail me that answer please, don't post that here.)

It is not a bug in growisofs or mkisofs.

Could you send a screen capture of the content of the dvrequant work folder by e-mail, or at least list the files for me.

You should have a folder named after your movie title and inside a "dv_dvd" folder , a file called "final.mpg" and an iso file named after your movie title.
 
Old 06-09-2005, 12:50 PM   #222
sk545
Member
 
Registered: Aug 2002
Posts: 312

Rep: Reputation: 30
ygm.
 
Old 06-09-2005, 07:29 PM   #223
buzzbiker
Member
 
Registered: Jul 2002
Location: Oregon
Distribution: Fedora Core 7 - vista
Posts: 38

Rep: Reputation: 15
I just used your script, and like it very much went without a hitch. I was always typing the first one that you posted a while back cause for the life of me I could not figure out how to run the script !!!
I've been using redhat linux since like 6.2 or so, and worked with all the upgrades all the way up to FC3, So I could not ask how to do it, I cant believe how hard it was to figure this out. Now I know how and I can't believe it.
This is what I was looking for-I do believe that I can remove winxp from hda and put something in it's place.
Thank You guys: I wish I had the ability to do programing.
 
Old 06-09-2005, 10:40 PM   #224
sk545
Member
 
Registered: Aug 2002
Posts: 312

Rep: Reputation: 30
good to hear.
 
Old 06-10-2005, 06:15 AM   #225
Steel_J
Member
 
Registered: Oct 2004
Location: Montreal, Canada
Distribution: Linux Mint 21.3 Cinnamon
Posts: 359

Original Poster
Blog Entries: 1

Rep: Reputation: 31
Well buzzbiker, thanks for the compliment. Happy that you are migrating away from Windows like I did a while back.

If Sourceforge accepts my entrie for dvrequant devellopment will be much more productive.

In my case I still use Windows on rare occasions, mostly to play games. One day I hope I won't have to.

My next version of dvrequant shouls allow to rip mutliple titles instead of just one.
 
  


Reply

Tags
k9copy



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] DVD9 to DVD5 guide Steel_J Linux - Software 62 05-08-2011 10:27 AM
problem at step 5 in "DVD9 to DVD5 guide" Vindane Linux - Software 5 04-24-2005 01:25 PM
DVD backup DVD9 to DVD5 ksgill Linux - Newbie 7 03-05-2005 03:08 PM
DVD9 to DVD5 Klas Linux - Software 2 12-15-2004 12:45 AM
DVD9 to DVD5 Avo Linux - Software 3 10-20-2004 04:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion

All times are GMT -5. The time now is 08:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration