xdvdtool - rip, shrink, author, burn small footprint

Stuff that has yet to be sorted into a category.
Message
Author
plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

xdvdtool - rip, shrink, author, burn small footprint

#1 Post by plinej »

I wrote a little gui front end in xdialog for vobcopy, vamps, dvdauthor, and growisofs to perform the ripping, shrinking, authoring, and burning of a dvd. It's really basic but keeps you from having to know the command line and definitely has a small footprint. Any feedback on this tool would be nice. Make sure you enter the setup option first before you try to perform any tasks. You'll need to download vobcopy & vamps which I posted below. dvdauthor is found at:

(make sure you use this version since other versions may not work)
http://dotpups.de/dotpups/Multimedia/dv ... vdread.pup

Here's the updated xdvdtool:

http://www.murga.org/~puppy/download.php?id=2819
Last edited by plinej on Sat 26 Aug 2006, 05:03, edited 8 times in total.

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#2 Post by plinej »

Here's vobcopy

vobcopy depends on libdvdread.so.3
which is already in the dvdauthor dotpup
Attachments
vobcopy.pup
(25.31 KiB) Downloaded 512 times
Last edited by plinej on Mon 21 Aug 2006, 19:51, edited 1 time in total.

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#3 Post by plinej »

Here's vamps
Attachments
vamps.pup
(42.94 KiB) Downloaded 499 times

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#4 Post by BarryK »

This is very exciting!!!! :D

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#5 Post by plinej »

I hope you like it! I've ripped 2 dvds so far and it worked well. I'm happy with it overall but I'm sure some improvements can be made to it.

User avatar
fluxit
Posts: 326
Joined: Sat 24 Jun 2006, 04:14
Location: Ketchikan, AK USA

#6 Post by fluxit »

I'm going to give this a whirl tomorrow. :D

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#7 Post by BarryK »

Testing on the puppy 2.10-pre I got some syntax errors in the code.
I messed around a bit, code not cleaned up, but I've shown where I've
done stuff with my initials "BK".

I ripped a video dvd, and it was only 2.7G so chose next to author a dvd,
and after burning back to dvd, Gxine wouldn't recognise it. It said there
was no suitable plugin.

Note, I discovered that growisofs in 2.10 doesn't work. It gives an error
message "unable to anonymously mmap 33554432: resource temporarily
unavailable".
However, when I substituted the growisofs from Puppy 2.02, it worked.
The version used in 2.10 is 6.0, in pup 2.02 it's 5.21.
...I'll have to get onto the author of dvd-rwtools about that.

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#8 Post by BarryK »

Um, here's my hacked files...
Attachments
xdvdtool-0.1.tar.gz
(2.52 KiB) Downloaded 491 times

User avatar
mouldy
Posts: 663
Joined: Wed 04 May 2005, 21:47

#9 Post by mouldy »

Ok I am having troubles with vobcopy I believe. After doing above and running setup in xdvdtool, I run xdvdtool with a dvd movie in dvdburner. Up flashes a console screen like it is looking for decryption key then that quickly disappears leaving this:

Image

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#10 Post by plinej »

hmm, I should add I'm running Puppy 2.02 and haven't experienced any errors with my initial version. Although I'll check out your revisions Barry. This is my first attempt at scripting in xdialog so any help and/or corrections from anyone will be fine by me.

mouldy,

what happens if you try to run vobcopy from the command line? You don't need to mount your dvd drive just put the dvd in the drive and type the following at the command line:

vobcopy -i /dev/(WHATEVER-YOUR-DVD-READER-IS) -o /path/to/your/save/directory -t ripped -l

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#11 Post by plinej »

Barry, I tried your edited scripts and the vamps-shrink script seems to be screwed up because I can't get it to shrink to the desired size. I'm looking into that right now. I need to work on the author script too because the final authoring is screwed up. I'm going to try and fix them now.

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#12 Post by plinej »

I'm posting the fix for the author script but I'm still working on the vamps-shrink script. I'm heading out to work in a few minutes so I probably won't get to it until tomorrow sometime.
Just unpack this and replace your /usr/local/xdvdtool/author with it.
Attachments
author.tar.gz
(586 Bytes) Downloaded 499 times

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#13 Post by BarryK »

moudly got that error about 'ripped1.vob' not found because it doesn't exist.
That '1' is a title number, and it seems that it can be something else.
With the DVD I tested, I got 'ripped3.vob' -- I modified the code (in the
previous upload) to handle 'ripped*.vob'.

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#14 Post by plinej »

although I had luck authoring a couple of the vamps shrunk vob files from 2 ripped dvds I'm getting errors when trying to author another. I'm getting "ERR: SCR moves backwards, remultiplex input". It appears I need to de-multiplex and re-multiplex to fix this issue. After googling it seems this is a rather common dvdauthor error. To fix this I need to edit the scripts and include packages for mplex (from transcode) & mpeg2desc (from dvdauthor). I'm working on it now and when I'm done I'll post a new dotpup that includes Barry's & my fixes. Then we can do some more testing.

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#15 Post by plinej »

How would I go about applying this patch to dvdauthor?

-----------------------------------------------------------------------------------------



--- dvdvob.c.orig 2006-08-11 20:11:06.000000000 -0600
+++ dvdvob.c 2006-08-11 20:24:48.000000000 -0600
@@ -1004,10 +1004,8 @@
}
if( buf[0]==0 && buf[1]==0 && buf[2]==1 && buf[3]==0xba ) {
pts_t newscr=readscr(buf+4);
- if( newscr < lastscr ) {
- fprintf(stderr,"ERR: SCR moves backwards,
remultiplex input.\n");
- exit(1);
- }
+ if( newscr < lastscr )
+ fprintf(stderr,"WARN: SCR moves backwards from
%lld to %lld\n", lastscr, newscr);
lastscr=newscr;
if( !hadfirstvobu )
backoffs=newscr;



------------------------------------------------------------------------------------------------

That's supposed to make it force through the errors and supposedly play just fine.
I don't know why they just don't have a --force switch for dvdauthor.

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#16 Post by plinej »

here's a fix for the vamps-shrink script. Extract it and copy to your /usr/local/xdvdtool/ directory.

As stated above I'm still working on a solution for the authoring trouble but I'm getting closer. Hopefully I can get the dvdauthor patch to work so I don't have to add another long step.
Attachments
vamps-shrink.tar.gz
(964 Bytes) Downloaded 304 times

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#17 Post by GuestToo »

i think you would put the patch file in the same dir as configure and make, then type something like:

patch -p1 < name_of_patch_file

you might need to use -p0 instead of -p1 ... -p just strips the first part of the path so the patch is applied to the right subdirs

the --dry-run option will show you what would happen, without actually changing the files

then you ./configure && make as usual

http://gentoo-wiki.com/MAN_patch_1

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#18 Post by plinej »

Well it seems to be above my head. I can't get it to patch. I'll see if I can find a patched binary but if I can't I may have to add tcextract from transcode and mplex from mjpegtools to extract and re-multiplex. I really don't want to add an extra step so anyone want to have a go at patching dvdauthor so we can keep this package as small as possible?

plinej
Posts: 1742
Joined: Mon 14 Aug 2006, 02:21

#19 Post by plinej »

I wrote some scripts that utilize mplex & tcextract to de-multiplex and re-multiplex. Unfortunately they resulted in a video that was out of sync with the audio. I'll experiment with some other tools instead to see if I can get better results.

GuestToo
Puppy Master
Posts: 4083
Joined: Wed 04 May 2005, 18:11

#20 Post by GuestToo »

that patch seems to be for a slightly different version of dvdauthor ... the code the patch replaces seems to be the same, just displaced by a few lines

so i patched dvdvob.c by hand and made a new patch for this version

i wasn't sure what lines were broken by the forum, so i found it here

patches are simple ... anything starting with a - is removed and is replaced by the lines starting with a +

attached: my patch with instructions
Attachments
dvdvob_patch.zip
dvdvob.c patch
(1017 Bytes) Downloaded 209 times

Post Reply