From owner-freebsd-questions@FreeBSD.ORG Wed Sep 2 05:19:30 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1546A106566B for ; Wed, 2 Sep 2009 05:19:30 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr7.xs4all.nl (smtp-vbr7.xs4all.nl [194.109.24.27]) by mx1.freebsd.org (Postfix) with ESMTP id 8648D8FC14 for ; Wed, 2 Sep 2009 05:19:29 +0000 (UTC) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr7.xs4all.nl (8.13.8/8.13.8) with ESMTP id n825JRb3084856; Wed, 2 Sep 2009 07:19:28 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 9957ABA9C; Wed, 2 Sep 2009 07:19:27 +0200 (CEST) Date: Wed, 2 Sep 2009 07:19:27 +0200 From: Roland Smith To: af300wsm@gmail.com Message-ID: <20090902051927.GA78814@slackbox.xs4all.nl> References: <0016e64cae6a217e26047290e16e@google.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gBBFr7Ir9EOA20Yy" Content-Disposition: inline In-Reply-To: <0016e64cae6a217e26047290e16e@google.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: "freebsd-questions@freebsd.org" Subject: Re: having problems copying a dvd X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Sep 2009 05:19:30 -0000 --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--