From owner-freebsd-multimedia@FreeBSD.ORG Tue Aug 15 04:47:33 2006 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org 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 10A5B16A4DD for ; Tue, 15 Aug 2006 04:47:33 +0000 (UTC) (envelope-from ray@one.com.au) Received: from one.one.com.au (gatekeeper.one.com.au [125.253.1.126]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B78143D46 for ; Tue, 15 Aug 2006 04:47:32 +0000 (GMT) (envelope-from ray@one.com.au) Received: from [10.10.10.1] (pup.local [10.10.10.1]) by one.one.com.au (8.13.6/8.13.3) with ESMTP id k7F4k0WJ094842 for ; Tue, 15 Aug 2006 14:46:01 +1000 (EST) (envelope-from ray@one.com.au) Message-ID: <44E15188.30001@one.com.au> Date: Tue, 15 Aug 2006 14:46:00 +1000 From: Ray Newman User-Agent: Thunderbird 1.5 (X11/20060317) MIME-Version: 1.0 To: freebsd-multimedia@freebsd.org References: <44BD5510.5030308@one.com.au> <20060719005630.473dbd24.steve@sohara.org> <44BDF0CB.7060503@one.com.au> <20060719112025.474f54aa.steve@sohara.org> In-Reply-To: <20060719112025.474f54aa.steve@sohara.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: JVC Everio Camera and DVDs X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Aug 2006 04:47:33 -0000 I finally got around to trying mpeg2desc with the following results: %mpeg2desc < file.mod -a 0 -o audio -v 0 -o video > file.log Could not read %head file.log 00000000: mpeg2 pack hdr, 0.000 sec 0000000e: system header; length=18 00000026: pes private2; length=2004 00000800: mpeg2 pack hdr, 0.001 sec 0000080e: pes video 0; length=2028; hdr=16; pts 0.331 sec; dts 0.211 sec; (pext); pstd=237568 (scale=1024) 00001000: mpeg2 pack hdr, 0.003 sec 0000100e: pes video 0; length=2028; hdr=3 00001800: mpeg2 pack hdr, 0.004 sec 0000180e: pes video 0; length=2028; hdr=3 00002000: mpeg2 pack hdr, 0.006 sec %tail file.log 00c0b620: pes padding; length=474 00c0b800: mpeg2 pack hdr, 11.011 sec 00c0b80e: pes video 0; length=2028; hdr=3 00c0c000: mpeg2 pack hdr, 11.013 sec 00c0c00e: pes video 0; length=2028; hdr=3 00c0c800: mpeg2 pack hdr, 11.015 sec 00c0c80e: pes video 0; length=2028; hdr=3 00c0d000: mpeg2 pack hdr, 11.016 sec 00c0d00e: pes video 0; length=1753; hdr=3 00c0d6ed: pes padding; length=269 %ll audio video file.* -rw-r--r-- 1 ray one 0 Aug 15 14:42 audio -rw-r--r-- 1 ray one 510634 Aug 15 14:42 file.log -rwxr-xr-x 1 ray one 12638208 Aug 15 14:41 file.mod -rw-r--r-- 1 ray one 11740474 Aug 15 14:42 video %grep audio file.log 0001b80e: pes private1, audio 0; length=1551; hdr=11; pts 0.251 sec; (pext); pstd=59392 (scale=1024) 0002680e: pes private1, audio 0; length=1548; hdr=8; pts 0.283 sec 0004880e: pes private1, audio 0; length=1548; hdr=8; pts 0.315 sec 0005280e: pes private1, audio 0; length=1548; hdr=8; pts 0.347 sec 0005c00e: pes private1, audio 0; length=1548; hdr=8; pts 0.379 sec 0006600e: pes private1, audio 0; length=1548; hdr=8; pts 0.411 sec 0007000e: pes private1, audio 0; length=1548; hdr=8; pts 0.443 sec 0007a00e: pes private1, audio 0; length=1548; hdr=8; pts 0.475 sec 0008380e: pes private1, audio 0; length=1548; hdr=8; pts 0.507 sec 0008d80e: pes private1, audio 0; length=1551; hdr=11; pts 0.539 sec; (pext); pstd=59392 (scale=1024) 0009780e: pes private1, audio 0; length=1548; hdr=8; pts 0.571 sec 0009b80e: pes private1, audio 0; length=1548; hdr=8; pts 0.603 sec etc... Any idea what is likely to be the problem with my files. Ray Newman. Steve O'Hara-Smith wrote: > On Wed, 19 Jul 2006 18:43:55 +1000 > Ray Newman wrote: > >> I have a problem with the term "re-multiplex"; what does this mean? > > An mpeg2 stream contains audio and video streams (potentially > several audio streams and perhaps subtitle streams too) each stream is > split into packets and these packets are interleaved (or multiplexed) in > the container file. > > DVDs require another set of packets in addition to the audio, video > and subtitle packets called navigation packets or VOBUs. Few applications > provide these (you might be lucky) - mpeg2 stream files with VOBUs are > usually known as VOBs (from the extension seen in DVDs). > > To get a VOB from a plain mpeg file it is necessary to break the > file into it's component parts (demultiplex it) using mpeg2desc this can be > done like this: > > mpeg2desc < file.mod -a 0 -o audio -v 0 -o video > > Which produces files audio and video. These can then be > (re-)multiplexed back into a VOB with > > mplex -f 8 -o file.vob video audio > > or > > tcmplex-panteltje -m d -i video -0 audio -o file.vob > > The -f 8 (-m d) tells mplex (tcmplex-panteltje) to build an mpeg2 > stream with navigation packets. You can then use dvdauthor to assemble a > DVD image and growisofs to burn it. > > It is also possible to do the same job with a recent version of > ffmpeg (more recent than 0.49-pre1) in a single command. > > ffmpeg -i file.mod -vcodec copy -acodec copy -target pal-dvd file.vob > >> Also the transcode port won't build anyway. > > Oh dear. Ah well mpeg2desc from dvdauthor will probably do the job. > >> I guess my question should be: what is wrong with the MPEG2 files from >> this camera? > > Nothing is likely to be wrong with them but they are almost > certainly not VOBs :) >