I'm trying to create an mpeg movie from a sequence of jpegs shot with my digital camera. Using section 4 of the Mjpeg How-To as a guide, I first tried this command:

convert *.jpg -geometry 180x120 ppm:- | ppmtoy4m | mpeg2enc -o result.m1v

I got this result:

INFO: [ppmtoy4m] Command-line Parameters:
INFO: [ppmtoy4m] framerate: 30000:1001
INFO: [ppmtoy4m] pixel aspect ratio: 1:1
INFO: [ppmtoy4m] interlace: none/progressive
INFO: [ppmtoy4m] starting frame: 0
INFO: [ppmtoy4m] # of frames: all, until input exhausted
INFO: [ppmtoy4m] chroma subsampling: 4:2:0, JPEG/MPEG-1, interstitial siting
INFO: [ppmtoy4m] Output Stream parameters:
INFO: [ppmtoy4m] frame size: 160x120 pixels (28800 bytes)
INFO: [ppmtoy4m] frame rate: 30000/1001 fps (~29.970030)
INFO: [ppmtoy4m] interlace: none/progressive
INFO: [ppmtoy4m] sample aspect ratio: 1:1
INFO: [mpeg2enc] Selecting generic MPEG1 output profile
INFO: [mpeg2enc] Assuming norm NTSC
INFO: [mpeg2enc] Encoding MPEG-1 video to result.m1v
INFO: [mpeg2enc] Horizontal size: 160 pel
INFO: [mpeg2enc] Vertical size: 120 pel
INFO: [mpeg2enc] Aspect ratio code: 1 = 1:1 (square pixels)
INFO: [mpeg2enc] Frame rate code: 4 = 30000.0/1001.0 (NTSC VIDEO)
INFO: [mpeg2enc] Bitrate: 1151 KBit/s
INFO: [mpeg2enc] Field order for input: none/progressive
INFO: [mpeg2enc] Sequence unlimited length
INFO: [mpeg2enc] Search radius: 16
INFO: [mpeg2enc] GOP SIZE RANGE 12 TO 12
INFO: [mpeg2enc] Setting colour/gamma parameters to "NTSC"
INFO: [mpeg2enc] Progressive format frames = 1
INFO: [mpeg2enc] mpeg1 - setting intra_dc_precision = 0
INFO: [mpeg2enc] Using default unmodified quantization matrices
INFO: [mpeg2enc] Buffering 33 frames
INFO: [mpeg2enc] GOP start (12 frames)
INFO: [mpeg2enc] Frame end 0 I quant=3.83 total act= 236.5
Segmentation fault


If I prod mpeg2enc for verbosity like this:

convert *.jpg -geometry 180x120 ppm:- | ppmtoy4m | mpeg2enc -v -o result.m1v

I get this result:

INFO: [ppmtoy4m] Command-line Parameters:
INFO: [ppmtoy4m] framerate: 30000:1001
INFO: [ppmtoy4m] pixel aspect ratio: 1:1
INFO: [ppmtoy4m] interlace: none/progressive
INFO: [ppmtoy4m] starting frame: 0
INFO: [ppmtoy4m] # of frames: all, until input exhausted
INFO: [ppmtoy4m] chroma subsampling: 4:2:0, JPEG/MPEG-1, interstitial siting
**ERROR: [mpeg2enc] Could not read YUV4MPEG2 header: bad header magic!


At this point I don't know if the problem is software related, data related, or user related. (A former colleague liked to say, "We've found the problem. It's between the keyboard and the chair.") If I stop after the ppmtoy4m command, yuvplay will successfully display the resulting file.

I am hoping someone can give me clues on how to fix this problem or at least suggestions on how to diagnose it.

Thanks!

Andrew Robinson



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to