mpeg2enc ERROR sad_00 when using ALTIVEC
Ricardo Lugo <[email protected]> Sun, 24 Feb 2008 22:20:16 -0600
| Newsgroups | gmane.comp.video.mjpeg.devel |
|---|---|
| Message-ID | <[email protected]> |
Dear mjpeg devs, I have run into some problems using mjpegtools mpeg2enc for MythArchive and have traced the problem to the sad_00 routine when ALTIVEC is enabled. Recompiling mjpegtools with altivec disabled does not result in any crash. Here's the crash output I get when mjpegtools is compiled with altivec simd accel enabled (I compiled from both release 1.9.0rc3 and CVS): root@tube:/usr/src/mjpegtools-1.9.0rc3# /usr/src/mjpeg_play/lavtools/ png2yuv -n 449 -v0 -I p -f 29.97 -j '/home/mythtv/dvd/work/ background-1.png' | /usr/src/mjpeg_play/mpeg2enc/mpeg2enc -b 5000 -a 2 -v 1 -f 8 -o '/home/mythtv/dvd/work/temp.m2v' INFO: [lt-mpeg2enc] SETTING AltiVec for MOTION! INFO: [lt-mpeg2enc] SETTING AltiVec for TRANSFORM! INFO: [lt-mpeg2enc] SETTING AltiVec for PREDICTION! INFO: [lt-mpeg2enc] Selecting DVD with dummy navigation packets output profile INFO: [lt-mpeg2enc] Assuming norm NTSC INFO: [lt-mpeg2enc] Progressive input - selecting progressive encoding. INFO: [lt-mpeg2enc] Encoding MPEG-2 video to /home/mythtv/dvd/work/ temp.m2v INFO: [lt-mpeg2enc] Horizontal size: 720 pel INFO: [lt-mpeg2enc] Vertical size: 480 pel INFO: [lt-mpeg2enc] Aspect ratio code: 2 = 4:3 display INFO: [lt-mpeg2enc] Frame rate code: 4 = 30000.0/1001.0 (NTSC VIDEO) INFO: [lt-mpeg2enc] Bitrate: 5000 KBit/s INFO: [lt-mpeg2enc] Quality factor: 8 (Quantisation = 9) (1=best, 31=worst) INFO: [lt-mpeg2enc] Field order for input: none/progressive INFO: [lt-mpeg2enc] Sequence unlimited length INFO: [lt-mpeg2enc] Search radius: 16 INFO: [lt-mpeg2enc] DualPrime: no INFO: [lt-mpeg2enc] Using one-pass rate controller INFO: [lt-mpeg2enc] GOP SIZE RANGE 7 TO 15 INFO: [lt-mpeg2enc] Setting colour/gamma parameters to "NTSC" INFO: [lt-mpeg2enc] Progressive format frames = 1 INFO: [lt-mpeg2enc] Using default unmodified quantization matrices INFO: [lt-mpeg2enc] SETTING AltiVec for QUANTIZER! INFO: [lt-mpeg2enc] NEW GOP INIT length 15 INFO: [lt-mpeg2enc] Enc1 0 0( 0) I q=10.69 [100% Intra] **ERROR: [lt-mpeg2enc] sad_00: blk2 % 16 != 0, (1208860680) Being as I am not familiar with the mjpegtools source or altivec or single-instruction, multiple-data programming, is there anyone that might know how to fix this? My machine identifies the CPU as a PPC 7455 (ie -mtune=7450) with altivec supported. It's the Apple MDD "Windtunnel" G4. Sincerely, Rick PS - please CC me on any response ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/