17 July 2007 @ 12:02DVD Image Utility

Do you need to create a DVD image of a movie you made? Do you need to image and burn a copy of a DVD from your DVR? There are a lot of uses for this simple droplet which uses mkisofs for its imaging. A co-worker of mine found it useful for duplicating home videos that his wife is burning with a DVR.

My initial reason for creating DVD Image Utility was because I needed a method to burn some DVD compliant discs without having to buy a third-party application, such as Toast. Unfortunately, the Mac’s built-in hdiutil will not create a DVD compliant image. Once the resulting image was burned to a DVD-R, it would not play in all DVD players. The same DVD created and burned with DVD Image Utility has played in all DVD players that I have had the opportunity to try.

How to use DVD Image Utility to create image files

Drag and drop your DVD folder (the folder containing the VIDEO_TS) onto the DVD Image Utility icon. You will be prompted to select where to save the image file. Select and wait for confirmation that the image is complete.

How to use DVD Image Utility to burn image files

Drag and drop a .img or .iso file onto the DVD Image Utility icon. You will be prompted to insert a blank disc. Providing that the disc you inserted is large enough to hold the image, the image will be burned, and you will receive a confirmation when it has finished.

I have tested this with both single-layer DVD-R and dual-layer DVD-R.

How it works

Here is the Applescript:

on run
display dialog "Please drag a DVD folder (containing VIDEO_TS) onto my icon to image this folder. Or drag a DVD image file onto my icon to burn it to DVD"
end run

on open input_items
set ginfo to (get info for input_items)
set disp_name2 to name of ginfo
tell application "Finder"
set nameExtension to name extension of item 1 of input_items
end tell
if nameExtension = "iso" or nameExtension = "img" then
set POSIX_source to POSIX path of input_items
set burning to "/usr/bin/hdiutil burn -noverifyburn " & POSIX_source & ""
with timeout of 30000 seconds
display dialog "Please insert a blank DVD"
do shell script ("" & burning & "")
tell me to activate
beep 2
display dialog "" & disp_name2 & " DVD burn complete"
end timeout
quit me
else
tell application "Finder"
set mkisofs_binary to ((path to me) as string)
set mkisofs_binary to (mkisofs_binary & "Contents:Resources:mkisofs")
set mkisofs_binary to (quoted form of (POSIX path of mkisofs_binary))
set mplex_binary to ((path to me) as string)
set mplex_binary to (mplex_binary & "Contents:Resources:mplex")
set mplex_binary to (quoted form of (POSIX path of mplex_binary))
set POSIX_source to POSIX path of input_items
set POSIX_file to POSIX path of (choose folder with prompt "Choose a folder to save image in:")
end tell
with timeout of 30000 seconds
do shell script ("" & mkisofs_binary & " -quiet -f -dvd-video -udf -V \"" & disp_name2 & "\" -o \"" & POSIX_file & "" & disp_name2 & ".img\" \"" & POSIX_source & "\"")
tell me to activate
beep 2
display dialog "" & disp_name2 & " DVD image complete"
end timeout
end if
end open


As you can see, the Applescript references the mkisofs binary inside the droplet’s package contents for its imaging, and uses the hdiutil that is built into the OS for its burning.

Download DVD Image Utility
Note: this is a Mac-only application.

DVD Image Utility has been tested on Mac OS 10.4 and 10.5. It may or may not work on earlier versions.
Note: this application will NOT image commercial DVD’s.

Shop for Applescript books

If you found this DVD Image Utility useful,
please consider making a donation.


Share this:
  • E-mail this story to a friend!
  • Print this article!
  • Wists
  • del.icio.us
  • Reddit
  • StumbleUpon
  • Technorati
  • SphereIt
  • Sphinn
  • MySpace
  • Google
  • Facebook
  • Yahoo! Buzz
  • Live
  • NewsVine
  • Furl
  • YahooMyWeb
  • TwitThis

 

Related posts

by Jon | 13 comments | Tags: , , , , ,
Posted in applescript, dvd, mkisofs | Link to this

Comments:

  1. Taz | 08 Jun 2008 @ 21:01 #

    Works great! Thanks!!
    I can confirm that resulting DVD works in an LG DVD player.
    Confirmation on a Zenith player is pending…

  2. Taz | 08 Jun 2008 @ 21:10 #

    Any chance a progress bar could be rolled into this?
    If not, the rainbow wheel might do the trick.
    Thanks again.

  3. Jon | 08 Jun 2008 @ 22:01 #

    Sorry, but Applescript has no means of displaying a progress bar during a process.

  4. [...] Get DVD Image Utility [...]

  5. Richard Laycock | 04 Oct 2008 @ 13:16 #

    Bogus lame scam. I get an image only and then a message box to Shop DVD Media or Cancel.

    I don’t begrudge the ad but if you’ve got the time to program your ads you should program the site to tell us how to handle it.

    I was counting on this script to burn my disk but your link is a lie.

    RCL

  6. Jon | 04 Oct 2008 @ 18:56 #

    Richard,

    It’s a two-step process. Maybe I didn’t make it clear in the instructions above. The first step makes an image out of your DVD folder. The second step burns the image to a disk, and this step is initiated by dropping the image onto the DVD Image Utility.

    I apologize if my instructions weren’t clear.

    Jon

  7. TF | 16 Nov 2008 @ 0:39 #

    It doesn’t work. The script couldn’t find the mkisofs

  8. Jon | 16 Nov 2008 @ 6:49 #

    I’m sorry about that, TF.
    Thanks for letting me know. Unfortunately the resources didn’t get transferred over last time I saved it. It is fixed now. You can re-download it.

    Jon

  9. ACF | 23 Jan 2009 @ 19:17 #

    Jon,
    No errors processing the two steps, everything appeared to work fine but my Sony DVD player thinks I’ve got a DVD from the wrong region. Any ideas?

    Thx,
    ACF

  10. Jon | 23 Jan 2009 @ 19:33 #

    ACF,

    The DVD Image Utility does not set or modify any region information. Either, your DVD still has a foreign region set, or it is in the wrong video format (NTSC vs. PAL).

    If it is truly a region code issue, you can mount the image file that DVD Image Utility created and strip the region with MacTheRipper. This will give you a new DVD folder that you can run through DVD Image Utility again.

    If the DVD is PAL and your player is NTSC, then there is a rather lengthy process to convert it.

  11. Jeremy | 04 Jun 2009 @ 20:07 #

    so Mac The Ripper + DVD Image Utility = Win!

    …. right?

  12. Jon | 04 Jun 2009 @ 20:39 #

    Jeremy,

    That’s correct. Of course, if you rip a dual-layer disc to burn to a single-layer disc, you will need to compress it with something like DVD2OneX.

  13. Jeremy | 04 Jun 2009 @ 20:46 #

    I would probably begin to store the image files on an external drive for viewing later… thanks for the info!

Add a Comment

Show who you are with a Gravatar.

 

Sign up for PayPal and start accepting credit card payments instantly.

Get fed!

rss icon subscribe to Geek stuff

rss icon Geek stuff in your inbox

Add the "Geek stuff" Google Gadget to your homepage

Add the "Daily Deals" Google Gadget to your homepage

Featured Tee

One Day, One Artist, One cool T-shirt



Summer Sale 2009!

All T-Shirts on sale from $12-$15

UneeTee.com

Apparel

Search Amazon

Search Amazon.com
Search Amazon.co.uk

Advert

Web hosting by ICDSoft