Re: [Mjpeg-users] mplex "file mov03d.m2v unrecogniseable!"

2008-10-17 Thread Mark Heath

On 18/10/2008, at 1:31 AM, Curt Howland wrote:

>> Are you able to make the file available?
>
> http://pages.suddenlink.net/curthowland/mov018.m2v
> http://pages.suddenlink.net/curthowland/mov018.mpg
>
> This is the original right off the camera, and the file created with
> mplayer -dumpfile "mov018.m2v" -dumpvideo "mov018.mpg"
>
> It's only 6M rather than 20M with the clip mentioned earlier, but
> they're all showing exactly the same behavior.

Yeah, don't use mplayer's -dumpvideo to demux.

bbdmux is a very good demuxer.  I recommend it for anyone who is doing  
this. I've had it demux files where other demuxers have spat it.
However ffmpeg works just as well (and I don't have bbdmux installed  
on this machine)

These are the commands I used to get it to work: (carriage returns  
have been added for clarity, and ~/Movies% is my prompt)

~/Movies% ffmpeg -i mov018.mpg -vcodec copy mov018.m2v

FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
Mac OSX universal build for ffmpegX
   configuration:  --enable-memalign-hack --enable-mp3lame --enable- 
gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 -- 
enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable- 
amr_wb --enable-pthreads --enable-x264
   libavutil version: 49.0.0
   libavcodec version: 51.9.0
   libavformat version: 50.4.0
   built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc.  
build 5250)
Input #0, mpeg, from 'mov018.mpg':
   Duration: 00:00:02.2, start: 0.190889, bitrate: 10956 kb/s
   Stream #0.0[0x1e0], 29.97 fps(r): Video: mpeg2video, yuv420p,  
720x480, 8900 kb/s
   Stream #0.1[0x80]: Audio: ac3, 48000 Hz, stereo, 384 kb/s
Output #0, mpeg2video, to 'mov018.m2v':
   Stream #0.0, 29.97 fps(c): Video: mpeg2video, yuv420p, 720x480,  
q=2-31, 8900 kb/s
Stream mapping:
   Stream #0.0 -> #0.0
Press [q] to stop encoding
frame=   75 q=0.0 Lsize=2702kB time=2.5 bitrate=8964.0kbits/s
video:2702kB audio:0kB global headers:0kB muxing overhead 0.00%

~/Movies% file mov018.m2v

mov018.m2v: MPEG sequence, v2, [EMAIL PROTECTED] interlaced Y'CbCr 4:2:0 video, 
 
CCIR/ITU NTSC 525, 4:3, 29.97 fps

~/Movies% ffmpeg -i mov018.mpg -acodec copy mov018.ac3

FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
Mac OSX universal build for ffmpegX
   configuration:  --enable-memalign-hack --enable-mp3lame --enable- 
gpl --disable-vhook --disable-ffplay --disable-ffserver --enable-a52 -- 
enable-xvid --enable-faac --enable-faad --enable-amr_nb --enable- 
amr_wb --enable-pthreads --enable-x264
   libavutil version: 49.0.0
   libavcodec version: 51.9.0
   libavformat version: 50.4.0
   built on Apr 15 2006 04:58:19, gcc: 4.0.1 (Apple Computer, Inc.  
build 5250)
Input #0, mpeg, from 'mov018.mpg':
   Duration: 00:00:02.2, start: 0.190889, bitrate: 10956 kb/s
   Stream #0.0[0x1e0], 29.97 fps(r): Video: mpeg2video, yuv420p,  
720x480, 8900 kb/s
   Stream #0.1[0x80]: Audio: ac3, 48000 Hz, stereo, 384 kb/s
Output #0, ac3, to 'mov018.ac3':
   Stream #0.0: Audio: ac3, 48000 Hz, stereo, 384 kb/s
Stream mapping:
   Stream #0.1 -> #0.0
Press [q] to stop encoding
size= 118kB time=2.5 bitrate= 384.0kbits/s
video:0kB audio:118kB global headers:0kB muxing overhead 0.00%

~/Movies% file mov018.ac3

mov018.ac3: ATSC A/52 aka AC-3 aka Dolby Digital stream, 48 kHz,,  
complete main (CM) 2 front/0 rear, LFE on,, 384 kbit/s reserved Dolby  
Surround mode

~/Movies% mplex -f 8 -o mov.mpg mov018.m2v mov018.ac3

INFO: [mplex] mplex version 1.9.0 (2.2.7 $Date: 2006/02/01  
22:23:01 $)
INFO: [mplex] File mov018.m2v looks like an MPEG Video stream.
INFO: [mplex] File mov018.ac3 looks like an AC3 Audio stream.
INFO: [mplex] Video stream 0: profile 8 selected - ignoring non- 
standard options!
INFO: [mplex] Found 1 audio streams and 1 video streams
INFO: [mplex] Selecting dvdauthor DVD output profile
INFO: [mplex] Multiplexing video program stream!
INFO: [mplex] Scanning for header info: Video stream e0 (mov018.m2v)
INFO: [mplex] VIDEO STREAM: e0
INFO: [mplex] Frame width : 720
INFO: [mplex] Frame height: 480
INFO: [mplex] Aspect ratio: 4:3 display
INFO: [mplex] Picture rate: 29.970 frames/sec
INFO: [mplex] Bit rate: 890 bits/sec
INFO: [mplex] Vbv buffer size : 229376 bytes
INFO: [mplex] CSPF: 0
INFO: [mplex] Scanning for header info: AC3 Audio stream 00  
(mov018.ac3)
INFO: [mplex] AC3 frame size = 1536
INFO: [mplex] AC3 AUDIO STREAM:
INFO: [mplex] Bit rate   :49152 bytes/sec (384 kbit/sec)
INFO: [mplex] Frequency  : 48000 Hz
INFO: [mplex] SYSTEMS/PROGRAM stream:
INFO: [mplex] rough-guess multiplexed stream data rate: 9484944
INFO: [mplex] target data-rate specified   : 1008
INFO: [mplex] Setting specified specified data rate: 1008
INFO: [mplex] Run-in delay = 9009 Video delay = 9009 Audio delay =  
18018
INFO: [mplex] New sequence comme

Re: [Mjpeg-users] mplex "file mov03d.m2v unrecogniseable!"

2008-10-17 Thread Burkhard Plaum
Hi,

Mark Heath schrieb:
> On 15/10/2008, at 6:00 AM, Curt Howland wrote:
> 
>> $ mplex -f 8 -S
>> 0 -M -o "/tmp/Test/mov03d/mov03d.mpeg2" "/tmp/Test/mov03d/ 
>> mov03d.m2v" "/tmp/Test/mov03d/mov03d.m2a"
>>  INFO: [mplex] mplex version 1.8.0 (2.2.4 $Date: 2005/08/28 17:50:54
>> $)
>> **ERROR: [mplex] File /tmp/Test/mov03d/mov03d.m2v unrecogniseable!
> 
> [snip]
> 
>> $ mplayer mov03d.m2v
> 
> [snip]
> 
>> Starting playback...
>> VDec: vo config request - 720 x 480 (preferred colorspace: Planar
>> YV12)
>> VDec: using Planar YV12 as output csp (no 0)
>> Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
>> VO: [xv] 720x480 => 720x540 Planar YV12
>> V:  27.5 824/824 16%  6%  0.0% 0 0
>>
>> Is the problem found here? As far as I can tell, mplayer is reporting
>> it's an mpeg-2 video stream, and I don't see how mplex won't
>> recognize it.
> 
> I have found that mplayer will skip bad header data until it finds  
> something playable.  I've had exactly the same issue. Where mplayer  
> played a file fine but mplex wouldn't recognise it.
> 
> have you tried "file" on the m2v file?
> 
> eg
> % file example.m2v
> example.m2v: MPEG sequence, v2, [EMAIL PROTECTED] interlaced Y'CbCr 4:2:0 
> video,  
> 4CIF PAL, 16:9, 25 fps
> 
> If yours says a similar thing, then perhaps your version of mplex is  
> broken.
> Are you able to make the file available?
> 
> If file reports "data" or something other than MPEG sequence, then  
> mplayer hasn't demuxed the file properly or has included corrupted  
> data at the start of the file.
> 
> You could try using bbdmux (part of bbtools) 
> http://members.cox.net/beyeler/bbmpeg.html 
> , to demux the camera file.
> (source is available and I've had it compile it on linux and osx)
> 
> Or you could use ffmpeg to demux the file:
> 
> ffmpeg -i example.mpg -vcodec copy example.m2v
> 
> The format looks OK, so you should not need to re-encode it.

A simple tool which removes any data before the first occurence of
the byte sequence "0x00 0x00 0x01 0xb3" should fix those. This could even be
integrated into mplex.

Many MPEG elementary streams don't start at the beginning of something
decodable (e.g. Webradio or DVB rips) so any MPEG stream parser should be
tolerant enough to skip some garbage at the beginning.

Burkhard

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users