/ root / pages / dvdcopy.html

You're using an old link! - Thankfully, you no longer need to specify a nonstandard port (8080) to access my site. You could've used the more standard: http://pbrisbin.com/pages/dvdcopy.html.

Dvdcopy


NOTICE - Don't use this to copy copyrighted shit. Although, it is very good at it :).

What it looks like

Dvdcopy Shot

Usage

  usage: dvdcopy [option] [argument] [option] [argument] ...

    flag           effect                     default

    -M             stop after making mpeg     no
    -A             stop after authoring dvd   no
    -I             stop after creating ISO    no

    -s KB          choose finished size       4193404 (standard DVD5)
    -t number      choose title               longest
    -d device      choose device              /dev/sr0

    -w directory   choose working directory   ./dvdcopy
    -k             keep all working files     false

    -m directory   save mpeg here             null ($PWD with -M)
    -r directory   save rip here              null ($PWD with -I)
    -c file        choose catalog file        null

    -b             hardcode subtitles         false

    -f             disable option validation  false

    -q             be quiet                   false
    -v             be verbose                 false

    -h             display this

What's it do?

Pop in a standard DVD9 (~9GB) and type dvdcopy. The script will calculate the video bitrate required to create an ISO under 4.3GB (standard DVD5). It will then use mencoder to create an authorable image and burn it back to a disc playable on any standard player.

Defaults are sane (IMO), but can be adjusted through the config file that will be created on first run. I've now added a lot of cool features as described in the help; most if not all commandline flags can be set in the config file.

How to get it

  wget -O ./dvdcopy http://pbrisbin.com/bin/dvdcopy
  chmod +x ./dvdcopy
  sudo mv ./dvdcopy /usr/bin

Enjoy.

Comments

on Wed, 23 Jun 2010 11:19:38 -0400, Jelloir wrote:

Hi,

I am trying to use your script on Arch Linux but receive the following error:

[ 24 Jun 2010 01:16 ] :: : chapter 98 00:20:26.720
[ 24 Jun 2010 01:16 ] :: : chapter 99 00:20:26.720
[ 24 Jun 2010 01:16 ] :: encoding video...
MEncoder SVN-r31428-4.5.0 (C) 2000-2010 MPlayer Team
154 audio & 339 video codecs
The vbitrate option must be <= 24000000: 33554304
Error parsing option on the command line: -lavcopts

Exiting... (error parsing command line)
[ 24 Jun 2010 01:16 ] :: error: mencoder failed reading disc

Any ideas?

on Wed, 23 Jun 2010 13:36:40 -0400, me wrote:

Jellior, it looks like the script calculated what mplayer considers to be an invalid bitrate (33554304).

If you know the audio bitrate, and length of your input dvd, you could check my math using this calculator.

If you could also pastebin/email the debugoutput.log file created by the following command:


bash -x dvdcopy --options 2>./debugoutput.log


I could check to make sure nothing else is going on. I could also add an upper and lower limit to the calculated bitrate. I'll comment back here if/when I do this.

Thanks for checking out the script!

on Tue, 29 Jun 2010 10:01:08 -0400, John wrote:

Have successfully modified your script for PAL and hardcoded subtitle. I am now trying to create mpg with mencoder:
mencoder dvd:// 1 -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd -vf scale=720:576,\
harddup -srate 48000 -af lavcresample=48000 -lavcopts vcodec=mpeg2video:\ vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=15:acodec=ac3:\
abitrate=224:aspect=16/9 -ofps 25 \ -o movie.mpg
How do I get subtitle -sid 0.
Your script seems to reduce the original title 1 in Inglourious Bastersd from 3671mb to about 2670mb

on Tue, 29 Jun 2010 10:48:35 -0400, John wrote:

Its OK I have done it, added -sid 0 after mencoder dvd://1

on Tue, 29 Jun 2010 10:52:20 -0400, me wrote:

Glad you got it working.

Any size differences would come from the vbitrate setting (vbitrate=5000 above). The script does its best to calculate a vbr that results in a 4.37G output file, sometimes it's off though :/





pbrisbin dot com 2010