Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Sep 2009 07:19:27 +0200
From:      Roland Smith <rsmith@xs4all.nl>
To:        af300wsm@gmail.com
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: having problems copying a dvd
Message-ID:  <20090902051927.GA78814@slackbox.xs4all.nl>
In-Reply-To: <0016e64cae6a217e26047290e16e@google.com>
References:  <0016e64cae6a217e26047290e16e@google.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--gBBFr7Ir9EOA20Yy
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Sep 02, 2009 at 04:41:24AM +0000, af300wsm@gmail.com wrote:
> Hi,
>=20
> I'm trying to make a copy of a dvd that I have, video, using a technique =
=20
> that I gleaned from this list nearly two years ago that has always worked=
 =20
> but now I'm having problems. (When I say always, please bear in mind that=
 I =20
> don't do this every day or even frequently). You'll also see calls to dd.=
 =20
> These were attempts at "last ditch effort." I usually just use the copy =
=20
> command (got it from a thread entitled, "copying a dvd video," from =20
> November of 07). If dd will work but I just forgot to get the block size =
=20
> right, what is that supposed to be.

My preferred technique is to use mplayer:

mplayer dvd://1 -dumpstream -dumpfile dvd.mpg

Be sure to play the DVD with mplayer to check which track is actually the
movie. Usually it is track #1, but not always.

After copying the stream, I tend to re-encode it for backup purposes with t=
he
H.264 video codec with MP3 sound, which makes it a lot smaller. The first s=
tep
is to watch the mpeg and see if there are black stripes around the picture:

mplayer -vf cropdetect dvd.mpg

This will give you a continuous list of crop lines, e.g:
[CROP] Crop area: X: 1..719  Y: 74..500  (-vf crop=3D704:416:10:80).0

Next step is to re-encode the mpeg file in two steps for enhanced quality,
including the crop information, if any:

mencoder title.mpg -ovc x264 \
-x264encopts subq=3D4:bframes=3D3:b_pyramid:weight_b:qp=3D18:threads=3Dauto=
:pass=3D1 \
-idx -oac mp3lame -vf crop=3D704:416:10:80 -o /dev/null; \
mencoder title.mpg  -ovc x264 -x264encopts \
subq=3D6:partitions=3Dall:8x8dct:me=3Dumh:frameref=3D5:bframes=3D3:\
b_pyramid:weight_b:qp=3D18:threads=3Dauto:pass=3D2 -vf crop=3D704:416:10:80=
 \
-idx -oac mp3lame -o title.avi;

If you want to include a specific language or subtitle, don't forget to
include the correct options for that; see the mplayer manual.

Roland
--=20
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

--gBBFr7Ir9EOA20Yy
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (FreeBSD)

iEYEARECAAYFAkqeAF8ACgkQEnfvsMMhpyXrzACeOgpN24aI3TL0cIraKHypB+Qn
Wh0An0aVAefmkNaFpohh9pW17MY7ILsw
=zRXB
-----END PGP SIGNATURE-----

--gBBFr7Ir9EOA20Yy--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090902051927.GA78814>