Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Aug 2006 14:46:00 +1000
From:      Ray Newman <ray@one.com.au>
To:        freebsd-multimedia@freebsd.org
Subject:   Re: JVC Everio Camera and DVDs
Message-ID:  <44E15188.30001@one.com.au>
In-Reply-To: <20060719112025.474f54aa.steve@sohara.org>
References:  <44BD5510.5030308@one.com.au>	<20060719005630.473dbd24.steve@sohara.org>	<44BDF0CB.7060503@one.com.au> <20060719112025.474f54aa.steve@sohara.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <ray@one.com.au> 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 :)
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?44E15188.30001>