I've been interested in creating computer-animated videos for quite some time
now, and with the info from a Linux Journal article on creating DVD content,
I thought I had the final pieces to the puzzle.
I started with a basic POV-Ray animation, that is part of their distrobution,
called bounce. This creates a 500 frame animation with a grey ball inside a
grey room bouncing around. I set POV-Ray to output 720X576 png files for DVD
formated video. I then used png2yuv to create a video sequence in raw yuv
format. This worked fine, and mplayer can play the sequence, although slowly.
However, when I try to use mpeg2enc to convert the raw yuv video into DVD
quality mpeg2 stream, it fails with a malloc failed error. Here is an example
of the output:
bash-2.05a$ mpeg2enc -v2 -f8 -o bounce.m2v bounce.yuv
INFO: [mpeg2enc] SETTING MMX for MOTION!
INFO: [mpeg2enc] SETTING MMX for TRANSFORM!
INFO: [mpeg2enc] SETTING MMX for PREDICTION!
INFO: [mpeg2enc] Selecting DVD output profile
INFO: [mpeg2enc] Assuming norm PAL
++ WARN: [mpeg2enc] No aspect ratio specifed and no guess possible: assuming
4:3 display aspect!
INFO: [mpeg2enc] Encoding MPEG-2 video to bounce.m2v
INFO: [mpeg2enc] Horizontal size: 720 pel
INFO: [mpeg2enc] Vertical size: 576 pel
INFO: [mpeg2enc] Aspect ratio code: 2 = 4:3 display
INFO: [mpeg2enc] Frame rate code: 3 = 25.0 (PAL/SECAM VIDEO / converted
FILM)
INFO: [mpeg2enc] Bitrate: 7500 KBit/s
INFO: [mpeg2enc] Quality factor: 8 (Quantisation = 9) (1=best, 31=worst)
INFO: [mpeg2enc] Field order for input: none/progressive
INFO: [mpeg2enc] Sequence unlimited length
INFO: [mpeg2enc] Search radius: 16
INFO: [mpeg2enc] GOP SIZE RANGE 9 TO 15
INFO: [mpeg2enc] Setting colour/gamma parameters to "PAL B/G"
INFO: [mpeg2enc] Progressive format frames = 0
INFO: [mpeg2enc] Using default unmodified quantization matrices
INFO: [mpeg2enc] Buffering 33 frames
**ERROR: [mpeg2enc] malloc failed
bash-2.05a$
I get the same error if I try creating any format mpeg from this raw video
stream.
Originally, I thought the problem might be the lack of nasm on my system, but
I've installed it and re-compiled the mjpeg tools and I still get the same
error.
Details of my system:
Built from scratch.
kernel 2.4.19
gcc-3.2
NASM version 0.98.34 compiled on Dec 22 2003
XFree86 Version 4.2.1 / X Window System
(protocol Version 11, revision 0, vendor release 6600)
Release Date: 3 September 2002
If the server is older than 6-12 months, or if your card is
newer than the above date, look for a newer version before
reporting problems. (See http://www.XFree86.Org/)
Build Operating System: Linux 2.4.19 i586 [ELF]
Module Loader present
MJPEG tools 1.6.1.92 build configuration :
- X86 Optimizations:
- MMX/3DNow!/SSE enabled : true
- cmov support enabled : false
- video4linux recording/playback: true
- software MJPEG playback : true
- MPEG Z/Alpha : false
- Quicktime playback/recording : false
- PNG input support : true
- AVI MJPEG playback/recording : true (always)
- libDV (digital video) support : false
- libDV PAL YV12 read support : false
- Gtk+ support for glav : true
- glibc support for >2GB files : true
The box is a PentiumMMX 200Mhz with 128M RAM
Any tips, pointers etc would be greatly appreciated. I'm not subscribed, but
I'll check the archives for answers if you don't want to copy me directly.
Cheers,
John Gay
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users