Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
A little script to copy DVD-5 Movies with menus!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
wolfpakk
n00b
n00b


Joined: 19 Feb 2004
Posts: 28
Location: sundsvall, sweden

PostPosted: Thu Feb 26, 2004 10:44 am    Post subject: A little script to copy DVD-5 Movies with menus! Reply with quote

I know it looks damn ugly but here it goes

Code:

#!/bin/sh
#
# This is a simple script for backup DVD movies with it´s original menus
# It is fast but it only works on DVD-5 movies
# Before running it, make sure you have emerged dvdbackup
# Maybe you have to change the DVDREADER and DVDBURNER devices
# /wolfpakk

DVDREADER="/dev/dvd"
DVDBURNER="/dev/dvd"
MOVIENAME=`dvdbackup -i $DVDREADER -I 2> /dev/null | grep "DVD-Video information" | sed -e 's/.* //g'`
WORKDIR="dvdbackup"

mkdir $WORKDIR
echo "Start to rip $MOVIENAME in $WORKDIR? [y/n]"
read RIP
if [ "$RIP" = "n" ]; then
echo "Exiting..."
exit 0
fi

dvdbackup -M -i $DVDREADER -o $WORKDIR
mkdir $WORKDIR/$MOVIENAME/AUDIO_TS
echo "Start making dvd-image of $MOVIENAME"
mkisofs -dvd-video -v -o dvd.iso $WORKDIR/$MOVIENAME
echo "Take out the DVD movie and replace it with a recordable DVD"
eject
echo "Go on and burn this movie? [y/n]"
read INPUT
if [ "$INPUT" = "n" ]; then
echo "Exiting..."
exit 0
fi

growisofs -Z $DVDBURNER=dvd.iso
rm -rf $WORKDIR
rm -r dvd.iso
echo "The Movie is successfully finished :-)"


Last edited by wolfpakk on Thu Feb 26, 2004 7:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Thu Feb 26, 2004 5:42 pm    Post subject: Reply with quote

does this stick it onto your hd? can you then play it from the hard disk using xine or mplayer?
_________________
95% of all computer errors occur between chair and keyboard (TM)

"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler

Change the world - move a rock
Back to top
View user's profile Send private message
wolfpakk
n00b
n00b


Joined: 19 Feb 2004
Posts: 28
Location: sundsvall, sweden

PostPosted: Thu Feb 26, 2004 7:32 pm    Post subject: Reply with quote

The adventage of this script is to make a dvd copy of the original dvd-video, its like a perfect copy. The subtitles, menus, extras and stuff like that is all there. Then the burned dvd can be played in a standalone dvd or in the computer.
If you just want to copy the dvd to your hd, then this will do it:

Code:

dvdbackup -M -i /dev/dvd -o /some/dir/to/store/your/backup
Back to top
View user's profile Send private message
[KaRP]
n00b
n00b


Joined: 20 Oct 2003
Posts: 32
Location: Zaragoza, Aragón, Spain

PostPosted: Wed Mar 03, 2004 5:01 pm    Post subject: Problem with script Reply with quote

I've tried to backup a DVD-5 movie but the .iso's file size is 612 Mb! What's the problem?

Thx :)
_________________
[KaRP]
AthlonXP1700+@2200MhZ
2.6.9-gentoo
Powered by Gentoo LiNUX
Back to top
View user's profile Send private message
bonedaddyhimself
Tux's lil' helper
Tux's lil' helper


Joined: 24 Jan 2004
Posts: 101

PostPosted: Wed Mar 03, 2004 6:52 pm    Post subject: Reply with quote

I'm assuming that a DVD-5 is 4.5 GB is size? I have yet to find a DVD movie that I could make a 1:1 copy of without resampling. Most are 7 or 8 GB in size or dual layerd.

It sure would be nice though.

bd
Back to top
View user's profile Send private message
TheFueley
Tux's lil' helper
Tux's lil' helper


Joined: 24 Sep 2003
Posts: 75
Location: Washington DC

PostPosted: Thu Mar 04, 2004 7:42 am    Post subject: Reply with quote

i hear you on the most dvds being 7 o r8 gigs. weird thing is, that doesn't mean that the quality is particularly great. many movies i've come across are dvd-9(dual-layered) and still look no different from the vhs copy. I guess they just simply dump the movie onto a dvd, and don't remaster the movie, then dump it. I really hate when I get that on an Anime, and Animes are never cheap. I mean you don't really have to remaster it, but at least remove the stupid black spots and scratches from the feed. For that I might as well watch it on reel tape! One movie they did a good job on, i think, is Akira the Special Edition. Didn't notice any black spots on it.
_________________
The Fueley
0x54 0x68 0x65 0x20 0x46 0x75 0x65 0x6C 0x65 0x79
Back to top
View user's profile Send private message
usrbinperl
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jan 2004
Posts: 77
Location: Rockford, IL

PostPosted: Sun Mar 07, 2004 8:32 am    Post subject: Reply with quote

Hey, nice script, but what about the files that dvdbackup does not copy from the DVD? I'll refer you to this thread where it says you need to copy certain files that dvdbackup misses. Is this actually necessary or is the person who wrote that HOWTO misinformed?
Back to top
View user's profile Send private message
wolfpakk
n00b
n00b


Joined: 19 Feb 2004
Posts: 28
Location: sundsvall, sweden

PostPosted: Tue Mar 09, 2004 11:04 am    Post subject: Reply with quote

I dont know exactly what you refer to in that thread, but i guess you talking about the part where he verified that all files had been copied correctly. I have no experience of missing files using the backup script so i would say that it is not necessary. If you suspect that something isn´t right, you can hit "ctrl+c" when the dvd ejects. Then mount the iso and try it in xine or something and check if it looks ok. Then burn it with growisofs.
Back to top
View user's profile Send private message
feliperal
Apprentice
Apprentice


Joined: 09 Mar 2003
Posts: 168

PostPosted: Wed Mar 10, 2004 8:30 pm    Post subject: Reply with quote

It is a shame here are not to may video editing applications for Linux. The few that are available are pale in comparison to the Windows counterparts. I would kill for virtualdub, dvd2avi, and besweet.

It would be nice to see a group of enthusiast join together to port virtualdub and dvd2avi to Linux. Virtualdubs source is under the GPL.

I heard in April or May Pioneer and Sony will be releasing dual layer burners. This would be a nice trend. When I rip my dvds, I usually can get it down to about 4-5gigs after taking out the shitty extras and directors comments. I like to keep the English and Spanish dts tracks. Finally, I could fit 2 of my movies hopefully to one disc.
Back to top
View user's profile Send private message
Tokabola
n00b
n00b


Joined: 21 Apr 2004
Posts: 69
Location: Northern Wisconsin

PostPosted: Thu Apr 22, 2004 4:29 am    Post subject: Reply with quote

Try:

Kino, a non-linear video editor

K-den Live, also a NLE

Cinelerra, you don't actually need the hardware mentioned, it runs fine on my 900 meg athalon 768Mg ram

Blender, (list of features) 3d modelling with mesh, primitive, nurbs, subsurface, particles;
Animation with keyframes, ipo's, armature w/ reverse
IKA,relative vertex keys, constraints, animated textures etc.
Open GL preview in all views
Scanline Rendering engine with radiosity, and(version 2.31a+)
raytraced shadows and reflections
Integrated external rendering using Yafray (HDRI capable)
Python bindings (prebuilt binaries REQUIRE VERSION 2.23)
Multitrack Audio Editing
Video Sequence Editing and Compositing
roll your own CVS (difficult at best) and get Python 2.3 support, and a game engine capable of creating standalone executable games.

Main Vision also has a binary (RPM) version of their editor (beta) available for free.

Tommy
_________________
Open Source for Open Minds
Back to top
View user's profile Send private message
beissemj
Tux's lil' helper
Tux's lil' helper


Joined: 10 Jan 2005
Posts: 100
Location: Orlando, FL

PostPosted: Fri Dec 02, 2005 4:29 am    Post subject: Reply with quote

what's wrong with dd....
_________________
Debian on a Dell latitude D600: http://d600.elwiki.com/
There is no such thing as a stupid question. They are just the easiest to answer.
Back to top
View user's profile Send private message
barry
Apprentice
Apprentice


Joined: 01 May 2002
Posts: 170
Location: UK

PostPosted: Tue Dec 06, 2005 6:04 pm    Post subject: Reply with quote

I know that it's possible to get dvdshrink running under Wine, but is there anything remotely similar native for Linux? That is something that can easily reduce a dual-layer size DVD to a single-layer one.
Back to top
View user's profile Send private message
AlterEgo
Veteran
Veteran


Joined: 25 Apr 2002
Posts: 1619

PostPosted: Tue Dec 06, 2005 6:34 pm    Post subject: Reply with quote

xdvdshrink comes close.
http://dvdshrink.sourceforge.net/
Back to top
View user's profile Send private message
RiBBiT
Apprentice
Apprentice


Joined: 18 May 2005
Posts: 215
Location: Sweden

PostPosted: Tue Dec 06, 2005 8:25 pm    Post subject: Reply with quote

Why not cat /dev/dvd > image.iso?
_________________
Comix - GTK Comic Book Viewer [ http://comix.sourceforge.net ]
Back to top
View user's profile Send private message
barry
Apprentice
Apprentice


Joined: 01 May 2002
Posts: 170
Location: UK

PostPosted: Wed Dec 07, 2005 1:16 am    Post subject: Reply with quote

Quote:
Why not cat /dev/dvd > image.iso


Because that wouldn't work with most video DVDs due to copy protection and more importantly it also wouldn't reduce the size.
Back to top
View user's profile Send private message
RiBBiT
Apprentice
Apprentice


Joined: 18 May 2005
Posts: 215
Location: Sweden

PostPosted: Wed Dec 07, 2005 11:07 pm    Post subject: Reply with quote

barry wrote:
Quote:
Why not cat /dev/dvd > image.iso


Because that wouldn't work with most video DVDs due to copy protection and more importantly it also wouldn't reduce the size.


Well, if I am not much mistaken the script does not resize anything either. How it handles encryption I don't know (and dvdbackup's home page does not seem to mention it), but since it has libdvdread as a dependency I guess it should work fine.

Would cat really fail to copy an encrypted DVD? I'm no expert on DVD encryption, but cat should be able to make an exact copy of the filesystem with the intact (encrypted) data on it, right? Please, correct me if I'm wrong.
_________________
Comix - GTK Comic Book Viewer [ http://comix.sourceforge.net ]
Back to top
View user's profile Send private message
Cintra
Advocate
Advocate


Joined: 03 Apr 2004
Posts: 2111
Location: Norway

PostPosted: Thu Dec 08, 2005 6:39 am    Post subject: Reply with quote

AlterEgo wrote:
xdvdshrink comes close.
http://dvdshrink.sourceforge.net/

Agreed, but IMHO its easier to run from a console (# dvdshrink) than the xdvdshrink GUI ;-)
Mvh
_________________
"I am not bound to please thee with my answers" W.S.
Back to top
View user's profile Send private message
rommel
Veteran
Veteran


Joined: 19 Apr 2002
Posts: 1143
Location: Williamsburg Virginia

PostPosted: Fri Dec 09, 2005 2:05 pm    Post subject: Reply with quote

well xdvdshrink cli or gui is great for what it does but it doesnt give you the ability to have menus... its a nice script though and does away with several steps to copying a dvd in linux.... would be nice to have something similar to popcorn in os x... i have copressed video_ts folders as large as 10gbs and copied them to a dvd5 using mac the ripper and popcorn.
Back to top
View user's profile Send private message
barry
Apprentice
Apprentice


Joined: 01 May 2002
Posts: 170
Location: UK

PostPosted: Mon Jan 02, 2006 6:39 pm    Post subject: Reply with quote

Quote:
Would cat really fail to copy an encrypted DVD? I'm no expert on DVD encryption, but cat should be able to make an exact copy of the filesystem with the intact (encrypted) data on it, right? Please, correct me if I'm wrong.


Most DVDs are copy protected with bad sectors so that a cat will fail with input/output errors, as it tries to read parts of the disc that would never be accessed if viewing the DVD properly.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
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