From owner-freebsd-multimedia@FreeBSD.ORG Wed Mar 3 06:37:14 2004 Return-Path: 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 1A3E716A4CF for ; Wed, 3 Mar 2004 06:37:14 -0800 (PST) Received: from mail-relay3.elsevier.co.uk (mail-relay3.elsevier.co.uk [193.131.223.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 55E9043D2F for ; Wed, 3 Mar 2004 06:37:13 -0800 (PST) (envelope-from steve@sohara.org) Received: from elsoxfs12414.elsevier.co.uk (unverified) by mail-relay3.elsevier.co.uk (Content Technologies SMTPRS 4.3.12) with ESMTP id ; Wed, 3 Mar 2004 14:37:48 +0000 Received: from olorin.elsevier.nl (olorin.elsevier.nl [145.36.13.14]) by elsoxfs12414.elsevier.co.uk (2.6 Build 1 (Berkeley 8.8.6)/8.8.4) with ESMTP id OAA00495; Wed, 03 Mar 2004 14:31:37 GMT Received: from sol8test1 ([145.36.48.241]) by olorin.elsevier.nl (8.8.8/8.8.8) with SMTP id PAA00634; Wed, 3 Mar 2004 15:37:02 +0100 (MET) Date: Wed, 3 Mar 2004 15:29:42 +0000 From: "Steve O'Hara-Smith" To: Werner Rips Message-Id: <20040303152942.3fadd80d.steve@sohara.org> In-Reply-To: <4045C89C.8010203@kordel.de> References: <4045C89C.8010203@kordel.de> Organization: Elsevier Science X-Mailer: Sylpheed version 0.9.4 (GTK+ 1.2.10; sparc-sun-solaris2.8) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit cc: multimedia@freebsd.org Subject: Re: how to transcode X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Mar 2004 14:37:14 -0000 On Wed, 03 Mar 2004 12:59:24 +0100 Werner Rips wrote: > i'm workin on FreeBSD4.9Release. with the following script i use to > transcode regular dvd's so that i can dvdauthor the resulting movie > files: > > mplayer -dvd 1 -dvd-device /dev/dvd -vo null -ao pcm -aofile audio.wav > mencoder -dvd 1 -dvd-device /dev/dvd -of mpeg -nosound -ovc copy -o > video.mpeg ffmpeg -hq -b 2000 -vcodec copy -ar 48000 -ac 2 -i > audio.wav -i video.mpeg output.mpg > > tcextract -i output.mpg -x mpeg2 > video > tcextract -i output.mpg -x mp3 > audio > > mplex -f 8 audio video -o movie1-%d > > > but i run into trouble, if i have any kind of avi files. Everything > works fine until mplex has to build the new movie files. it complain > with a message similar like that: You haven't done anything with the video stream so it will be whatever was in the original. For a DVD this will be mpeg2 which is what a DVD wants and what mplex can handle, for an AVI source this will be (probably) some variant of mpeg4 which DVD players will not handle and which cannot be put into an mpeg packet stream. What you need to do is to replace the "-vcodec copy" in the ffmpeg command line with something like "-vcodec mpeg2video -b 6400" to make ffmpeg recode the video stream into mpeg2. > so, please tell me how can i tcextract from some avi files so that > mplex can do its job? is there a better (shorter) way to come to movie For DVD's you can just mount the thing, decrypt the vobs with vobcopy or dvdbackup and dvdauthor the resulting VOBs, of course you get all the audio tracks and subtitle tracks this way and no menus to choose them with (unless it is a DVD5 original in which case at you can just burn a mirror made with dvdbackup). -- Steve O'Hara-Smith ======================================== "For a successful technology, reality must take precedence over public relations, for Nature cannot be fooled." -- Richard Feynman