From owner-freebsd-multimedia Thu Jan 30 1:17:16 2003 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B541237B401 for ; Thu, 30 Jan 2003 01:17:14 -0800 (PST) Received: from mail1.luukku.com (ultra45.almamedia.fi [193.209.83.53]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E28943E4A for ; Thu, 30 Jan 2003 01:17:13 -0800 (PST) (envelope-from atte.peltomaki@iki.fi) Received: by mail1.luukku.com (Postfix, from userid 60001) id 042211BA4BC; Thu, 30 Jan 2003 11:17:12 +0200 (EET) Received: from kameli.org (ip213-185-39-29.laajakaista.mtv3.fi [213.185.39.29]) by mail1.luukku.com (Postfix) with SMTP id ADE421BA4A8 for ; Thu, 30 Jan 2003 11:17:11 +0200 (EET) Received: by kameli.org (sSMTP sendmail emulation); Thu, 30 Jan 2003 11:19:03 +0200 Date: Thu, 30 Jan 2003 11:19:03 +0200 From: "Atte Peltomaki" To: freebsd-multimedia@freebsd.org Subject: 5.0-REL + transcode Message-ID: <20030130091903.GA14446@naama> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.4i Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I've spent some hours trying to get combination 5.0-REL + transcode to work. Here's what I ended up doing to get it to work: I used the Ports Collection to do this: First, make deinstall for any earlier installations of transcode & libdvdread you may have. Edit /usr/ports/graphics/transcode/Makefile to get latest 0.6.3 pre-version of transcode: -PORTVERSION=0.6.2 +PORTVERSION=0.6.3 -DISTNAME=${PORTNAME}-${PORTVERSION}.20021010 +DISTNAME=${PORTNAME}-${PORTVERSION}.20021128 also for distinfo: -MD5 (transcode-0.6.2.20021010.tar.gz) = 97b46fe8d7d650c8d0b57096bce162a1 +MD5 (transcode-0.6.3.20021128.tar.gz) = f6275a78700e985b715c9260e3648576 (I don't think this is neccessary, but since we're at it let's get latest bleeding-edge ;) Now you should start doing make install, but Ctrl-C it before it gets through configuration. Then edit work/transcode-0.6.3.20021128/ffmpeg/libavcodec/mem.c line 21: change malloc.h to stdlib.h. Then edit work/transcode-0.6.3.20021128/dvdread/dvd_reader.c line 143: comment out the entire if-statement that tries to check wether libdvdcss is old version. Like this: /* if( dlsym( dvdcss_library, U_S "dvdcss_crack" ) ) { fprintf( stderr, "libdvdread: Old (pre-0.0.2) version of " "libdvdcss found.\n" "libdvdread: You should get the " "latest version from " "http://www.videolan.org/\n" ); dlclose( dvdcss_library ); dvdcss_library = 0; } else */if( !dvdcss_open || !dvdcss_close || !dvdcss_seek || Now your transcode is ready, but don't build it yet, you also need to do the same trick to libdvdread. There's similar if-statement in /usr/ports/multimedia/libdvdread/work/libdvdread-0.9.3/dvdread/dvd_input.c:272 also comment that out as shown above. Now build transcode. It should build libdvdread automatically as a depency. Voila! I can't be bothered to get any deeper than this. I got it working, that's plenty for me. I'll leave the actual patch-writing etc. to people who know how to do it ;) Forgive me my rookie-ness. Atte Peltomäki http://kameli.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message