[Ffmpeg-devel] ffmpeg -s size option crashing for .mov files

Ken Joostens kjoostens
Sat Feb 18 19:56:40 CET 2006


www# gdb ffmpeg_g
                                                     GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...
(gdb) r -i '/home/test/sandiego_compressed5.mov' -s 360x240 -y
'/home/test/WindowsMovieMakerSampleFile_full.mpg'
Starting program: /usr/local/bin/ffmpeg_g -i
'/home/test/sandiego_compressed5.mov' -s 360x240 -y
'/home/test/WindowsMovieMakerSampleFile_full.mpg'
FFmpeg version CVS, Copyright (c) 2000-2004 Fabrice Bellard
 configuration:  --disable-mmx --enable-mp3lame --enable-libogg
--enable-vorbis --enable-a52 --enable-pp --enable-gpl
 libavutil version: 49.0.0
 libavcodec version: 51.7.0
 libavformat version: 50.3.0
 built on Feb 18 2006 00:41:16, gcc: 3.4.2 [FreeBSD] 20040728

Seems that stream 0 comes from film source: 2997.00 (2997/1) -> 30.00 (30/1)
Input #0, mov,mp4,m4a,3gp,3g2, from '/home/test/sandiego_compressed5.mov':
 Duration: 00:00:11.0, start: 0.000000, bitrate: 71489 kb/s
 Stream #0.0, 30.00 fps(r): Video: mjpeg, yuvj422p, 720x480
Output #0, mpeg, to '/home/test/WindowsMovieMakerSampleFile_full.mpg':
 Stream #0.0, 30.00 fps(c): Video: mpeg1video, yuv420p, 360x240,
q=2-31, 200 kb/s
Stream mapping:
 Stream #0.0 -> #0.0
Press [q] to stop encoding

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1 (LWP 100409)]
0x281cfde0 in h_resample_fast () from /usr/local/lib/libavcodec.so.1
(gdb) bt
#0  0x281cfde0 in h_resample_fast () from /usr/local/lib/libavcodec.so.1
#1  0x281d0031 in h_resample () from /usr/local/lib/libavcodec.so.1
#2  0x281d0104 in component_resample () from /usr/local/lib/libavcodec.so.1
#3  0x281d03ae in img_resample () from /usr/local/lib/libavcodec.so.1
#4  0x0804c790 in output_packet (ist=0x80d1190, ist_index=0,
ost_table=0x8059150, nb_ostreams=1, pkt=0xbfbfe618) at ffmpeg.c:819
#5  0x08052f97 in main (argc=-1077942760, argv=0xbfbfebb8) at ffmpeg.c:2072
(gdb) disass $pc-32 $pc+32
Dump of assembler code from 0x281cfdc0 to 0x281cfe00:
0x281cfdc0 <h_resample_fast+32>:        mov    0xfffffff0(%ebp),%esi
0x281cfdc3 <h_resample_fast+35>:        sar    $0x10,%esi
0x281cfdc6 <h_resample_fast+38>:        add    0x10(%ebp),%esi
0x281cfdc9 <h_resample_fast+41>:        mov    0xfffffff0(%ebp),%ecx
0x281cfdcc <h_resample_fast+44>:        shr    $0x9,%ecx
0x281cfdcf <h_resample_fast+47>:        and    $0x78,%ecx
0x281cfdd2 <h_resample_fast+50>:        add    0x20(%ebp),%ecx
0x281cfdd5 <h_resample_fast+53>:        movzbl 0x2(%esi),%edi
0x281cfdd9 <h_resample_fast+57>:        movswl 0x4(%ecx),%eax
0x281cfddd <h_resample_fast+61>:        imul   %eax,%edi
0x281cfde0 <h_resample_fast+64>:        movzbl 0x3(%esi),%eax
0x281cfde4 <h_resample_fast+68>:        movswl 0x6(%ecx),%edx
0x281cfde8 <h_resample_fast+72>:        imul   %edx,%eax
0x281cfdeb <h_resample_fast+75>:        add    %eax,%edi
0x281cfded <h_resample_fast+77>:        movzbl (%esi),%ebx
0x281cfdf0 <h_resample_fast+80>:        movswl (%ecx),%eax
0x281cfdf3 <h_resample_fast+83>:        imul   %eax,%ebx
0x281cfdf6 <h_resample_fast+86>:        movzbl 0x1(%esi),%eax
0x281cfdfa <h_resample_fast+90>:        movswl 0x2(%ecx),%edx
0x281cfdfe <h_resample_fast+94>:        imul   %edx,%eax
End of assembler dump.
(gdb) info all-registers
eax            0x44     68
ecx            0x8062650        134620752
edx            0x165    357
ebx            0x0      0
esp            0xbfbfdde8       0xbfbfdde8
ebp            0xbfbfddfc       0xbfbfddfc
esi            0x8725ffd        141713405
edi            0x0      0
eip            0x281cfde0       0x281cfde0
eflags         0x10246  66118
cs             0x1f     31
ss             0x2f     47
ds             0x2f     47
es             0x2f     47
fs             0x2f     47
gs             0x97     151
st0            0        (raw 0x00000000000000000000)
st1            0        (raw 0x00000000000000000000)
st2            0        (raw 0x00000000000000000000)
st3            0        (raw 0x00000000000000000000)
st4            0        (raw 0x00000000000000000000)
st5            0        (raw 0x00000000000000000000)
st6            2        (raw 0x40008000000000000000)
st7            15       (raw 0x4002f000000000000000)
fctrl          0x127f   4735
fstat          0x0      0
ftag           0x0      0
fiseg          0x0      0
fioff          0x0      0
foseg          0x0      0
fooff          0x0      0
fop            0x0      0
xmm0           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0,
   0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0},
v2_int64 = {0x0, 0x0},
 uint128 = 0x00000000000000000000000000000000}
xmm1           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0,
   0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0},
v2_int64 = {0x0, 0x0},
 uint128 = 0x00000000000000000000000000000000}
xmm2           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0,
   0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0},
v2_int64 = {0x0, 0x0},
 uint128 = 0x00000000000000000000000000000000}
xmm3           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0,
   0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0},
v2_int64 = {0x0, 0x0},
 uint128 = 0x00000000000000000000000000000000}
xmm4           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0,
   0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0},
v2_int64 = {0x0, 0x0},
 uint128 = 0x00000000000000000000000000000000}
xmm5           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0,
   0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0},
v2_int64 = {0x0, 0x0},
 uint128 = 0x00000000000000000000000000000000}
xmm6           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0,
   0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0},
v2_int64 = {0x0, 0x0},
 uint128 = 0x00000000000000000000000000000000}
xmm7           {v4_float = {0x0, 0x0, 0x0, 0x0}, v2_double = {0x0, 0x0},
v16_int8 = {0x0 <repeats 16 times>}, v8_int16 = {0x0,
   0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, v4_int32 = {0x0, 0x0, 0x0, 0x0},
v2_int64 = {0x0, 0x0},
 uint128 = 0x00000000000000000000000000000000}
mxcsr          0x0      0
mm0            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0,
0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
   0x0, 0x0}}
mm1            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0,
0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
   0x0, 0x0}}
mm2            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0,
0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
---Type <return> to continue, or q <return> to quit---
   0x0, 0x0}}
mm3            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0,
0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
   0x0, 0x0}}
mm4            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0,
0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
   0x0, 0x0}}
mm5            {uint64 = 0x0, v2_int32 = {0x0, 0x0}, v4_int16 = {0x0, 0x0,
0x0, 0x0}, v8_int8 = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
   0x0, 0x0}}
mm6            {uint64 = 0x8000000000000000, v2_int32 = {0x0, 0x80000000},
v4_int16 = {0x0, 0x0, 0x0, 0x8000}, v8_int8 = {0x0,
   0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x80}}
mm7            {uint64 = 0xf000000000000000, v2_int32 = {0x0, 0xf0000000},
v4_int16 = {0x0, 0x0, 0x0, 0xf000}, v8_int8 = {0x0,
   0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xf0}}


Sample can be provided on request

Ken

On 2/18/06, srinivas Mandava <mandava_s at hotmail.com> wrote:
> According to the debugger, it looks like this problem occured at libavcodec.
> We would really thankful for any help on this issue.
>
> #0  0x281cfde0 in h_resample_fast () from /usr/local/lib/libavcodec.so.1
> #1  0x281d0031 in h_resample () from /usr/local/lib/libavcodec.so.1
> #2  0x281d0104 in component_resample () from /usr/local/lib/libavcodec.so.1
> #3  0x281d03ae in img_resample () from /usr/local/lib/libavcodec.so.1
> #4  0x0804c790 in _start ()
> #5  0x08052f97 in main ()
>
> >From: "Mandava Srinivasa Rao" <mandava_s at hotmail.com>
> >Reply-To: FFMpeg development discussions and patches
> ><ffmpeg-devel at mplayerhq.hu>
> >To: ffmpeg-devel at mplayerhq.hu
> >Subject: [Ffmpeg-devel] ffmpeg -s size option crashing for .mov files
> >Date: Fri, 17 Feb 2006 19:07:23 +0000
> >
> >Hi,
> >
> >If I specify size option(-s 200x150) for .mov files, ffmpeg crashed.
> >Without -s option, it works without any problem.  Is there any workaround
> >for this problem? Size is important for my application.
> >
> >ffmpeg -i '/home/test/WindowsMovieMakerSampleFile_full.mov'  -s 200x150 -y
> >'/home/test/WindowsMovieMakerSampleFile_full.mpg'
> >
> >ffmpeg version CVS, build 3342336, Copyright (c) 2000-2004 Fabrice Bellard
> >  configuration:  --cc=cc --prefix=/usr/local --make=gmake --disable-debug
> >--enable-memalign-hack --enable-shared
> >--source-path=/usr/ports/multimedia/ffmpeg-devel/work/FFMpeg-2005122600
> >--enable-a52 --enable-gpl --enable-mp3lame --enable-libogg --enable-pp
> >--enable-shared-pp --enable-pthreads --disable-ffplay --enable-vorbis
> >  built on Feb 16 2006 21:22:47, gcc: 3.4.2 [FreeBSD] 20040728
> >
> >Seems that stream 0 comes from film source: 30000.00 (30000/1) -> 29.97
> >(30000/1001)
> >Input #0, mov,mp4,m4a,3gp,3g2, from
> >'/home/test/WindowsMovieMakerSampleFile_full.mov':
> >  Duration: 00:00:12.2, start: 0.000000, bitrate: 7950 kb/s
> >  Stream #0.0, 29.97 fps(r): Video: mjpeg, yuvj422p, 640x480
> >Output #0, mpeg, to '/home/test/WindowsMovieMakerSampleFile_full.mpg':
> >  Stream #0.0, 29.97 fps(c): Video: mpeg1video, yuv420p, 200x150, q=2-31,
> >200 kb/s
> >Stream mapping:
> >  Stream #0.0 -> #0.0
> >Press [q] to stop encoding
> >Segmentation fault (core dumped)
> >
> >Thanks,
> >Srinivas.
> >
> >_________________________________________________________________
> >Express yourself instantly with MSN Messenger! Download today - it's FREE!
> >http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
> >
> >_______________________________________________
> >ffmpeg-devel mailing list
> >ffmpeg-devel at mplayerhq.hu
> >http://mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today - it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at mplayerhq.hu
> http://mplayerhq.hu/mailman/listinfo/ffmpeg-devel
>





More information about the ffmpeg-devel mailing list