rc3 - yuvscaler crash with -M BICUBIC
"herve.flores" <[email protected]> Thu, 6 Dec 2007 15:21:30 +0100
| Newsgroups | gmane.comp.video.mjpeg.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi this bug is not specific to rc3 (same behavior for rc2, I didn't
test earlier versions)
seems to occurs with -M BICUBIC and too many input pixels
command line:
ffmpeg -v 0 -i ~/SANY0003.MP4 -aspect 16:9 -r 25:1 -s 1920x1080 -f
yuv4mpegpipe - | yuvscaler -v 0 -M BICUBIC -O SIZE_720x576
verbose:
INFO: [yuvscaler] yuvscaler 1.9.0 (15-02-2004) is a general
scaling utility for yuv frames
INFO: [yuvscaler] (C) 2001-2004 Xavier Biquard <[email protected]>,
yuvscaler -h for help, or man yuvscaler
FFmpeg version SVN-r11164, Copyright (c) 2000-2007 Fabrice Bellard, et
al.
configuration: --enable-pp --enable-gpl --enable-pthreads --enable-
static --disable-shared --enable-gray --enable-libx264 --enable-
libmp3lame --enable-libgsm --enable-libfaac --enable-libfaad --enable-
libamr-nb --enable-libamr-wb --enable-swscaler
libavutil version: 49.5.0
libavcodec version: 51.48.0
libavformat version: 52.1.0
built on Dec 5 2007 00:31:07, gcc: 4.0.1 (Apple Computer, Inc.
build 5370)
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
[h264 @ 0x5c8790]AVC: Consumed only 90302 bytes instead of 90315
[h264 @ 0x5c8790]AVC: nal size 0
[h264 @ 0x5c8790]AVC: Consumed only 148426 bytes instead of 148436
[h264 @ 0x5c8790]AVC: nal size 0
INFO: [yuvscaler] input: frame size: 1920x1080 pixels (3110400
bytes)
INFO: [yuvscaler] input: chroma: 4:2:0 MPEG-2 (horiz.
cositing)
INFO: [yuvscaler] input: frame rate: 25/1 fps (~25.000000)
INFO: [yuvscaler] input: interlace: bottom-field-first
INFO: [yuvscaler] input: sample aspect ratio: 1:1
INFO: [yuvscaler] from 1920x1080, take 1920x1080+0+0,
INTERLACED_BOTTOM_FIRST
INFO: [yuvscaler] scale to 720x576, 720x576 being displayed
INFO: [yuvscaler] Scaling uses the BICUBIC algorithm,
INFO: [yuvscaler] frame rate: 25.000 fps
INFO: [yuvscaler] Scaling ratio for width is 8 to 3
INFO: [yuvscaler] and is 15 to 8 for height
INFO: [yuvscaler] MMX accelerated treatment activated
YUV4MPEG2 W720 H576 F25:1 Ib A64:45 C420mpeg2 XYSCSS=420MPEG2
INFO: [yuvscaler] output: frame size: 720x576 pixels (622080
bytes)
INFO: [yuvscaler] output: chroma: 4:2:0 MPEG-2 (horiz.
cositing)
INFO: [yuvscaler] output: frame rate: 25/1 fps (~25.000000)
INFO: [yuvscaler] output: interlace: bottom-field-first
INFO: [yuvscaler] output: sample aspect ratio: 64:45
INFO: [yuvscaler] Frame number 0
FRAME
[h264 @ 0x5c8790]AVC: Consumed only 11410 bytes instead of 11420
[h264 @ 0x5c8790]AVC: nal size 0
[h264 @ 0x5c8790]AVC: Consumed only 58093 bytes instead of 58108
[h264 @ 0x5c8790]AVC: nal size 0
Segmentation fault
if I reduce size of input (before pipe to yuvscaler) => succes
I made some maths (with different sizes):
1920*1080 = 2073600 px => failure :-(
1590*1080 = 1717200 px :-(
1674*1028 = 1720872 px :-(
1580*1080 = 1706400 px => succes :-)
1674*1026 = 1717524 px :-)
1678*1024 = 1718272 px :-)
----------------------------------------
The crash log:
Process: yuvscaler [38691]
Path: /tmp/MC/MC.app/Contents/Resources/tools/yuvscaler
Identifier: yuvscaler
Version: ??? (???)
Code Type: X86 (Native)
Parent Process: bash [38681]
Date/Time: 2007-12-06 15:14:06.369 +0100
OS Version: Mac OS X 10.5.1 (9B18)
Report Version: 6
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000703000
Crashed Thread: 0
Thread 0 Crashed:
0 yuvscaler 0x0000976c cubic_scale_interlaced +
703 (yuvscaler_bicubic.c:513)
1 yuvscaler 0x000046d1 main + 3193 (yuvscaler.c:
1920)
2 yuvscaler 0x00001d3e _start + 216
3 yuvscaler 0x00001c65 start + 41
Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x00000000 ebx: 0x063b9e3f ecx: 0x00000007 edx: 0x000013b0
edi: 0x008013f2 esi: 0x006fe140 ebp: 0xbffff4e8 esp: 0xbffff3d4
ss: 0x0000001f efl: 0x00010212 eip: 0x0000976c cs: 0x00000017
ds: 0x0000001f es: 0x0000001f fs: 0x00000000 gs: 0x00000037
cr2: 0x00703000
Binary Images:
0x1000 - 0xffe7 +yuvscaler ??? (???) /tmp/MC/MC.app/Contents/
Resources/tools/yuvscaler
0x8fe00000 - 0x8fe2d883 dyld 95.3 (???)
<81592e798780564b5d46b988f7ee1a6a> /usr/lib/dyld
0x91f5d000 - 0x920b7fe3 libSystem.B.dylib ??? (???)
<8ecc83dc0399be3946f7a46e88cf4bbb> /usr/lib/libSystem.B.dylib
0x96877000 - 0x96878fef libmathCommon.A.dylib ??? (???) /usr/lib/
system/libmathCommon.A.dylib
0xffff0000 - 0xffff1780 libSystem.B.dylib ??? (???) /usr/lib/
libSystem.B.dylib
----------------------------------------
PS: if I remove -M BICUBIC, yuvscaler doesn't crash
ffmpeg -v 0 -i ~/SANY0003.MP4 -aspect 16:9 -r 25:1 -s 1920x1080 -f
yuv4mpegpipe - | yuvscaler -v 0 -O SIZE_720x576
=> success
----------------------------------------
if you need more infos...
(sorry for my english)
bye
Hervé
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
Mjpeg-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mjpeg-developer