From owner-freebsd-questions@FreeBSD.ORG Sat May 29 17:38:37 2010 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 97DDB1065670 for ; Sat, 29 May 2010 17:38:37 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr12.xs4all.nl (smtp-vbr12.xs4all.nl [194.109.24.32]) by mx1.freebsd.org (Postfix) with ESMTP id 451768FC13 for ; Sat, 29 May 2010 17:38:36 +0000 (UTC) Received: from slackbox.erewhon.net (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr12.xs4all.nl (8.13.8/8.13.8) with ESMTP id o4THcUZv065765; Sat, 29 May 2010 19:38:35 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.erewhon.net (Postfix, from userid 1001) id EE6D8BAAD; Sat, 29 May 2010 19:38:29 +0200 (CEST) Date: Sat, 29 May 2010 19:38:29 +0200 From: Roland Smith To: Polytropon Message-ID: <20100529173829.GA81061@slackbox.erewhon.net> References: <20100529104753.ba23e2c2.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="J/dobhs11T7y2rNN" Content-Disposition: inline In-Reply-To: <20100529104753.ba23e2c2.freebsd@edvax.de> 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 Subject: Re: VHS to file codec recommendation 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: Sat, 29 May 2010 17:38:37 -0000 --J/dobhs11T7y2rNN Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, May 29, 2010 at 10:47:53AM +0200, Polytropon wrote: > Dear list, >=20 > I've built a system to digitize content from VHS video tapes. > The setting consists of a 2 GHz P4 with a BrookTree based > video grabber card (supported by bktr driver) and a C-Media > sound card (supported by cmi driver). The video card does > only have mono sound input, so I'm using the sound card's > line in for stereo audio. A proper cable from a SCART to > a Cinch connector and a 3,5mm TRS connector has been created. >=20 > I can already play on screen and through speakers with this > command: >=20 > mplayer tv://0 on:driver=3Dbsdbt848:device=3D/dev/bktr0:norm=3DPAL:noaudi= o:input=3D2 Use the '-dumpstream' and '-dumpfile foo.dump' options to save output to di= sk. =20 > I am intending to use mencoder for the whole process. >=20 > Which codec would you recommend for encoding? If you want to stick to mencoder, use x264 with mp3 audio. I've got the fol= lowing in ~/.mplayer/mencoder.conf:=20 [hqmovie] profile-desc=3D"High-quality movie encoding." ovc=3Dx264=3D1 oac=3Dmp3lame=3D1 x264encopts=3Dsubq=3D6:partitions=3Dall:8x8dct:me=3Dumh:frameref=3D5:bf= rames=3D3 x264encopts=3Dweight_b:qp=3D18:threads=3Dauto idx=3D1 Ecoding the movie is done with: mencoder -profile hqmovie -o foo.avi foo.dump =20 > I'm searching for a solution that doesn't introduce too > much loss of quality (as the tape's quality usually is > considered "bad enough"), and the resulting files should > not be too big.=20 Bad tape quality will mean bigger files, I'm afraid. You could try some of = the filtering options of mencoder. See the VIDEO FILTERS section of mencoder(1). Which filter to use is a bit of trial-and-error depending on t= he quality of the material you've got. Use mplayer to cut a short but relevant section from your material, and experiment on it with different filter parameters. Start with e.g. '-vf pp=3Dde/-al' or '-vf hqdn3d'. Using the 'decimate' filter might reduce filesize as well. Using the 'unsharp' filter might help as well. > If possible (but not needed), they should > be playable by hardware DVD players (given the situation > when a digitized video is put into a ISO-9660 image on a > DVD). In that case you should stick to MPEG2 video with AC3 audio. This will not = be the smallest file, though. This combo should work on all players, I believe. Other than this, the capabilities of hardware players varies great= ly. Using Ogg Theora video with Ogg Vorbis audio in a Matro=A8ka container usua= lly gives the smallest files for me, when encoding good quality material; ffmpeg2theora -v 8 -a 2 foo.dump mkvmerge -o foo.mkv foo.ogv rm foo.ogv Hope this helps. :-/ 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) --J/dobhs11T7y2rNN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkwBURUACgkQEnfvsMMhpyWQjgCfVZr63fCpGVd4X9fHqHzMTd2f ck8Anih2XnH2t+PIeWNsK+9gp4FKGzt5 =NbfC -----END PGP SIGNATURE----- --J/dobhs11T7y2rNN--