xdvdtool - rip, shrink, author, burn small footprint
xdvdtool - rip, shrink, author, burn small footprint
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
(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.
Here's vobcopy
vobcopy depends on libdvdread.so.3
which is already in the dvdauthor dotpup
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.
- BarryK
- Puppy Master
- Posts: 9392
- Joined: Mon 09 May 2005, 09:23
- Location: Perth, Western Australia
- Contact:
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.
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.
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
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
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.
Just unpack this and replace your /usr/local/xdvdtool/author with it.
- Attachments
-
- author.tar.gz
- (586 Bytes) Downloaded 499 times
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.
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.
-----------------------------------------------------------------------------------------
--- 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.
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.
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
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
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
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?
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
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