LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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
 
LinkBack Search this Thread
Old 03-08-2005, 07:49 PM   #151
wapcaplet
Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48

You might want to hold off on testing for now, since I'm doing some more significant revisions to the script. I'll post it after I make more progress and test it out some.

I think your current code (for this part of the program) looks fine, except CUR_TRACK should not be incremented until _after_ it is used inside the while loop. Your 'let' statement should be at the very end, just before 'done'.

Anyhow, don't worry too much about it. I'm testing my version now and it seems to be working, so I will post it soon.
 
Old 03-08-2005, 08:16 PM   #152
Steel_J
Member
 
Registered: Oct 2004
Location: Montreal, Canada
Distribution: Kubuntu 10.04, Mint 8 and Puppy 4.3.1
Posts: 355
Blog Entries: 1

Original Poster
Rep: Reputation: 31
You are right about the "let" function, I just moved it up for my test sciptlet so I could "echo" its value on the console and see if it was ok. It was fot testing purposes and just to show yo what I meant.

Otherwise it would not output correctly. It was a part of a script only, not the whole thing with all its variables defined, so....

Since then I have new code that extracts all the audio tracks contained in the array and names them correctly, but I haven't figured out how to adapt your code to add up the size of them for the requant formula.

Anyhow, your the guru, I'll stop banging my head on the wall and wait for your revised version. One thing did come out of this though, I learned a lot about array code and looping in scripts, hahahahaha!

Thanks.
 
Old 03-08-2005, 10:02 PM   #153
CrashedAgain
Member
 
Registered: Jan 2004
Posts: 307

Rep: Reputation: 32
Just to let you know; I think I have found out why I couldn't get over 4Gig. My main data partition is a vfat file system, didn't realize that it had a 4 Gig limit.

Still doesn't explain why growisofs was giving errors, however.

I'll have to redo my partitions before I can continue, looking forward to trying your script then.

Quote:
Originally Posted by Steel_J
Yes I meant "create a new DVD video project". If I read you right it seemed to have worked. Is that it?
No it did not work; k3b gave this error:
Code:
Writing DVD-R in DAO mode. 
 Using growisofs 5.21 Copyright.... 
 Starting writing... 
 Could not write temporary file 
 Error while creating iso image 
 :-write failed: input/output error 
 Fatal error at startup: Input output error
I assume this is the same error as from using growisofs directly, just that k3b is not so verbal about it.



Last edited by CrashedAgain; 03-08-2005 at 10:30 PM.
 
Old 03-09-2005, 03:35 AM   #154
Steel_J
Member
 
Registered: Oct 2004
Location: Montreal, Canada
Distribution: Kubuntu 10.04, Mint 8 and Puppy 4.3.1
Posts: 355
Blog Entries: 1

Original Poster
Rep: Reputation: 31
Vfat, Jesus!!!

If I had knowned that I would have old you. Whit FAT32 you are lucky you got up to 4 gig.

Welcome to the 21st century and journaling filesystems, hahahahaha!

I am just pulling your leg.

It truly does explain your bug anyway.
 
Old 03-09-2005, 07:15 AM   #155
CrashedAgain
Member
 
Registered: Jan 2004
Posts: 307

Rep: Reputation: 32
Yes, vfat. Very unfortunate but there are still a lot of things I can't do in Linux so I need a dual boot system. For instance: No Linux 3D Cad replacement for TurboCad. No Linux replacement for MS Access. No Linux replacement for my wife's favorite photo arranging & printing program 'Photo Record' which came with our Canon camera. and finally, no Linux driver for my Dazzle DVC-80 VCR input adaptor which is half the reason for this video work, have a whole bunch of old vcr tapes to convert to DVD. The Dazzle makes a quirky .avi,once I get past the DVD copying problems then I have to figure out how convert these to a normal .vob.
 
Old 03-09-2005, 10:38 AM   #156
wapcaplet
Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Rep: Reputation: 48
Quote:
The Dazzle makes a quirky .avi,once I get past the DVD copying problems then I have to figure out how convert these to a normal .vob.
I don't recall; do you know about/have you tried tovid? It's sort of dvrequant's "parent" project. It isn't quite to the point of creating actual VOBs, but it can give you DVD-compliant MPEG video from just about any input. From there, it's a small step to authoring VOBs for burning DVDs.
 
Old 03-09-2005, 01:06 PM   #157
Steel_J
Member
 
Registered: Oct 2004
Location: Montreal, Canada
Distribution: Kubuntu 10.04, Mint 8 and Puppy 4.3.1
Posts: 355
Blog Entries: 1

Original Poster
Rep: Reputation: 31
CrashedAgain:

Well I can see how you could miss those favorite softwares. Especially Photo Record. I used it too in the past and it is so simple and effective to use. Now I use gThumb for viewing and editing and for more advanced stuff or borderless photo printing I use the Gimp (and Turboprint drivers for Canon which I paid).

Anyhow, when I made the move to Linux it was not without some sacrifice at first. Meaning I had too look for new ways to do things, but it really opens up your mind.

Linux has so much advantages in stability, security and overall speed. It's worth it just to not have to worry about fragmentation anymore.

May I suggest to you something I did myself to alleviate the problems with dualbooting. I still keep Windows XP on a separate partition because I sometimes need it for a specific task or to give support to people. I did not want FAT32 at all for any OS so what I did is buy a 3.5" hard drive enclosure for 45$, took one 80 gig Maxtor and made myself a nice external drive on Firewire (I could use USB2.0 also).

Wheter I am in Linux or Windows the drive is there. It it formatted with FAT32, but XP is on NTFS and Linux on EXT3. I use this drive to have data accessible to both OS and I also use it to store automated daily backups.

As for MS Access, Linux as something even better, it is called MySQL and it is used by millions of users worldwide and many large corporation http://www.mysql.com/ and you can download it here http://dev.mysql.com/downloads/

It's open source and free. Corporations pay for MySQL to get support.

I don't know your capture device, but if you want a high quality capture 100% compatible in Linux go buy yourself a Hauppauge PVR-250 PCI or a Pinnacle PCTV PRO card. They work out of the box and have encoders that encode in realtime directly to DVD compliant MPEG2.

Now, sorry, that was a lot off the topic of this thread, but I wanted to help your transition a bit.

Now let's get back on track , it I were you and had many vcr tapes to convert I would do as such to save some time and money:

1) Capture you movies in Windows with your Dazzle DVC 80.

2) Boot Linux, go in /mnt , access you Windows partition where the movie was saved to. (Yes Linux can read NTFS and your Windows partitions will be there already mounted) and use tovid like so in console : "Tovid -dvd yourmovie.avi /home/user/outputdvdname" on that file. You don't have to copy the file from NTFS. Linux can read it just fine, it just can't write or mofify it. The ouputed file in your user directory will be a DVD compliant MPG file with 720x480 resolution and AC3 stereo sound.

3) You can use QDvdauthor, DVDstyler or Varsha to author your MPG to a DVD structure and then burn it with K3B.

or you could use the command line to create an iso:

Quote:
# Populate filesystem

dvdauthor -t -o dvdfolder outputdvdname.mpg

# Create IFO files

dvdauthor -o dvdfolder -T

# Create DVD Video compliant ISO image

mkisofs -dvd-video -udf -o finalmovie.iso dvdfolder


Note: If your Windows is on fat32, convert the fat32 to NTFS. Easily done and explained in the XP help section. That way you can capture to any size you want.

Last edited by Steel_J; 03-09-2005 at 01:09 PM.
 
Old 03-09-2005, 10:51 PM   #158
CrashedAgain
Member
 
Registered: Jan 2004
Posts: 307

Rep: Reputation: 32
Thanks for the tips. Actually my windows is not XP, it's winME (horrors!!) which is why it's on vfat. It's not exactly state of the art system...1.2Mhz HP Pavilion 40G HD, only upgrade is a Benq DVD burner. I was pretty well decided to add more HD anyway, guess I'll have to put in a fair sized NTFS partition so I can use the Dazzle. Also need a better video card but the cheapo box doesn't even have a slot for a video card, so I'm stuck with the existing until I can see my way to a whole new unit.
As for the software, can't use MySQL, the database stuff is for work & needs to be MSAccess. Can't get away from PhotoRecord either, it's the other user ("she-who-must-be-obeyed") who uses it. It's taken over two years to get her to accept linux for general use. Being hit by a virus helped speed the acceptance, probably about the only 'good' that ever came out of a virus.
Just D/L'd tovid & had a look at the KDE DVD authoring app. It's pretty impressive, I hope your script develops a similar gui for DVD copying.
 
Old 03-12-2005, 09:45 PM   #159
sk545
Member
 
Registered: Aug 2002
Posts: 312

Rep: Reputation: 30
Quote:
# Create DVD Video compliant ISO image mkisofs -dvd-video -udf -o finalmovie.iso dvdfolder
That works for me when done from the command line, but the script gives me a error with mkisofs (that i don't have it installed, or something). Maybe its not mkisofs's error...maybe dvdauthor is giving it a corrupt input?
 
Old 03-13-2005, 01:10 AM   #160
Steel_J
Member
 
Registered: Oct 2004
Location: Montreal, Canada
Distribution: Kubuntu 10.04, Mint 8 and Puppy 4.3.1
Posts: 355
Blog Entries: 1

Original Poster
Rep: Reputation: 31
I am just asking this to myself as much as all of you, but why would dvdauthor give a corrupted output if mkisofs, that is used by K3B , that I am using myself sucessfully with dvdrequant output iso files.

Different versions, maybe, or is the movie you are ripping the problem itself?
 
Old 03-13-2005, 07:54 AM   #161
sk545
Member
 
Registered: Aug 2002
Posts: 312

Rep: Reputation: 30
not sure Steel...

May i get the "fixed" script posted again, please?

I am not sure which one to copy and paste...i lost the last one from my directory (since i was being smart and put it in the /tmp directory, lol).

Thanks.

Last edited by sk545; 03-13-2005 at 07:56 AM.
 
Old 03-13-2005, 09:42 AM   #162
rokka
Member
 
Registered: Feb 2004
Location: .se
Distribution: Ubuntu, debian
Posts: 124

Rep: Reputation: 15
On subtitles.
One nice thing with lsdvd is that you can get a perl file containing the dvd-structure. This can be imported and used in a perl script.
I've been working on a script to do this but have come up with nothing usable so far, mostly due to lack of time. It goes something like this:
Code:
...
system("lsdvd -xp $DEV");
require 'lsdvd.pl';
my @tracks = @{$lsdvd{'track'}};
foreach my $t (@tracks){
		# Audio streams
		my @audio = @{$t->{'audio'}};
		foreach my $sound (@audio) {
				my $f = $sound->{'format'};
				system("tcextract ...");
		}
	        # Subtitles
		my @subp = @{$t->{'subp'}};
		...#samesame
}
Hope this helps somebody who has the time I don't
 
Old 03-21-2005, 03:31 PM   #163
CrashedAgain
Member
 
Registered: Jan 2004
Posts: 307

Rep: Reputation: 32
I have added 80Gig HD so can now try your script.
I copied the script from post 117 and put in the patch from post 122. There seems to be an error in the patch; there is a tilde or something at the end of the line "EOF" which screws up the if-fi statements. All seems to be in order if the character is removed.
Then I get:
Code:
====================
* DVRequant v0.186a *
====================
Requirement: mplayer / libdvdcss / transcode / mjpegtools / dvdauhtor / cdrecord (mkisofs)  / lsdvd

growisofs or K3B are optional but recommended

./dvdrequant.sh: line 153: slocate: command not found

***************************************************************
libdvdcss is not detected, you need it to complete the process.
***************************************************************

********************************************************************************
The script will keep going but may exit with errors when trying to read the DVD.
********************************************************************************

===============================
Reading from the config file...
===============================

./dvdrequant.sh: line 358: unexpected EOF while looking for matching ``'
./dvdrequant.sh: line 462: syntax error: unexpected end of file
crashedagain@desktop:~/dvdstuff$ sudo apt-get install libdvdcss
Reading Package Lists... Done
Building Dependency Tree... Done
Package libdvdcss is a virtual package provided by:
  libdvdcss2 1.2.8-0.0
You should explicitly select one to install.
E: Package libdvdcss has no installation candidate
crashedagain@desktop:~/dvdstuff$ sudo apt-get install libdvdcss2
Reading Package Lists... Done
Building Dependency Tree... Done
libdvdcss2 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 752 not upgraded.
crashedagain@desktop:~/dvdstuff$
line 358 is: VIDEO_SIZE=`du -b $VIDEO_OUTPUT | cut -f 1`
line 462 is past the end of the script, 'exit' is line 461.
like SK545 , I did not have slocate installed on my system which was causing the problem finding libdvdcss.

Thinking that perhaps I had not installed the patch correctly, I tried the script without the patch & it seems to be going OK so at this point I would ask to please repost the script with the patch properly included and 2) perhaps it should check if slocate is on the system if it cannot find libdvdcss as this may be a common problem. I have Kanotix BH9a system. Kanotix is a Knoppix spinoff.

End result: Script ran OK, created a good VIDEO.TS collection & a good .mpg file but it quit creating the iso at about 50% because the disk was full. This of course was my fault (and was expected, I knew I didn't have the 11 G free space) but in your final version you should do a free space check & send a warning to the user.

Also, it rips only the main title. Would it be possible to rip all or perhaps a user's choice of titles?

Last edited by CrashedAgain; 03-21-2005 at 07:53 PM.
 
Old 03-22-2005, 12:42 AM   #164
Steel_J
Member
 
Registered: Oct 2004
Location: Montreal, Canada
Distribution: Kubuntu 10.04, Mint 8 and Puppy 4.3.1
Posts: 355
Blog Entries: 1

Original Poster
Rep: Reputation: 31
Just came back from vacation this morning guys...

Give me some time but don't worry, I read tour posts.
 
Old 03-30-2005, 08:42 AM   #165
t-smurf
LQ Newbie
 
Registered: Jan 2005
Distribution: Debian w/KDE 3.4
Posts: 10

Rep: Reputation: 0
Subtitles

Hey...

I've been following this discussion for a while, and it's a great project Steel_J. Thanks.

Have anyone found a easy way to get selectable subtitles from a dvd??
I have tried with spuunmux but haven't figured out how to select subtitle-language...
 
  


Reply

Tags
k9copy


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 03:29 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration