[FFmpeg-trac] #1278(undetermined:new): vf: crash with some filters
FFmpeg
trac at avcodec.org
Sat May 5 20:08:10 CEST 2012
#1278: vf: crash with some filters
-------------------------------------+-------------------------------------
Reporter: ami_stuff | Owner:
Type: defect | Status: new
Priority: normal | Component:
Version: unspecified | undetermined
Keywords: | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by ami_stuff):
still crashes here
{{{
(gdb) r -i crash.avi -vf boxblur=2:2,vflip,deshake -f null -
Starting program: d:\mingw\msys\1.0\ffmpeg-head-23fba3e\ffmpeg_g.exe -i
crash.av
i -vf boxblur=2:2,vflip,deshake -f null -
[New Thread 868.0x998]
ffmpeg version 0.10.2.git-23fba3e Copyright (c) 2000-2012 the FFmpeg
developers
built on May 5 2012 19:57:06 with gcc 4.6.1
configuration: --disable-ffprobe --enable-gpl
libavutil 51. 49.100 / 51. 49.100
libavcodec 54. 19.100 / 54. 19.100
libavformat 54. 4.100 / 54. 4.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 72.104 / 2. 72.104
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 11.100 / 0. 11.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, avi, from 'crash.avi':
Metadata:
encoder : Lavf54.3.100
Duration: 00:00:01.00, start: 0.000000, bitrate: 1438 kb/s
Stream #0:0: Video: mpeg4 (Simple Profile) (3IV2 / 0x32564933),
yuv420p, 768
x576 [SAR 1:1 DAR 4:3], 23.97 tbr, 23.97 tbn, 25 tbc
[buffer @ 03b42640] w:768 h:576 pixfmt:yuv420p tb:1/1000000 sar:1/1
sws_param:fl
ags=2
[buffersink @ 03b42960] No opaque field provided
[deshake @ 03b432e0] cx: -1, cy: -1, cw: -1, ch: -1, rx: 16, ry: 16, edge:
3 blo
cksize: 16 contrast: 125 search: 0
[boxblur @ 03b42ca0] luma_radius:2 luma_power:2 chroma_radius:2
chroma_power:2 a
lpha_radius:2 alpha_power:2 w:768 chroma_w:384 h:576 chroma_h:288
Output #0, null, to 'pipe:':
Metadata:
encoder : Lavf54.4.100
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 768x576
[SAR 1:1
DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 23.97 tbc
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 -> rawvideo)
Press [q] to stop, [?] for help
[null @ 03b3b020] Encoder did not produce proper pts, making some up.
frame= 6 fps=0.0 q=0.0 size= 0kB time=00:00:00.25 bitrate=
0.0kbits/s
frame= 9 fps=6.8 q=0.0 size= 0kB time=00:00:00.37 bitrate=
0.0kbits/s
frame= 12 fps=5.9 q=0.0 size= 0kB time=00:00:00.50 bitrate=
0.0kbits/s
frame= 15 fps=5.5 q=0.0 size= 0kB time=00:00:00.62 bitrate=
0.0kbits/s
frame= 18 fps=5.3 q=0.0 size= 0kB time=00:00:00.75 bitrate=
0.0kbits/s
frame= 21 fps=5.3 q=0.0 size= 0kB time=00:00:00.87 bitrate=
0.0kbits/s
dup=1 drop=0
Program received signal SIGSEGV, Segmentation fault.
0x0043e404 in avfilter_transform (
src=0x439bd40 " !!!\"\"\"####\"\"\"\"\"\"\"\"\"\"####\"\"\"!!
!!\"\"\
"#####\"\"\"\"\"\"\"\"########\"\"\"\"\"\"\"\"\"\"!!!\"\"\"\"\"\"", '#'
<repeats
13 times>, '"' <repeats 23 times>, "!! !!", '"' <repeats 23 times>,
"#####
###", '"' <repeats 15 times>, "!! !!", '"' <repeats 15 times>...,
dst=0x43e0040 '\037' <repeats 17 times>, " !! !!", ' '
<repeats 1
5 times>, "!!!!!!!!\"", '!' <repeats 31 times>, ' ' <repeats 15 times>,
'!' <rep
eats 15 times>, "\"\"\"\"\"!! !!", '"' <repeats 45 times>, "!!
!!\"\
"\"\"\"\"\"\"\""..., src_stride=-768, dst_stride=768, width=768,
height=576, matrix=0x22e3bc, interpolate=INTERPOLATE_BILINEAR,
fill=FILL_MIRROR) at libavfilter/transform.c:178
178 def = src[(int)y_s * src_stride + (int)x_s];
(gdb) bt
#0 0x0043e404 in avfilter_transform (
src=0x439bd40 " !!!\"\"\"####\"\"\"\"\"\"\"\"\"\"####\"\"\"!!
!!\"\"\
"#####\"\"\"\"\"\"\"\"########\"\"\"\"\"\"\"\"\"\"!!!\"\"\"\"\"\"", '#'
<repeats
13 times>, '"' <repeats 23 times>, "!! !!", '"' <repeats 23 times>,
"#####
###", '"' <repeats 15 times>, "!! !!", '"' <repeats 15 times>...,
dst=0x43e0040 '\037' <repeats 17 times>, " !! !!", ' '
<repeats 1
5 times>, "!!!!!!!!\"", '!' <repeats 31 times>, ' ' <repeats 15 times>,
'!' <rep
eats 15 times>, "\"\"\"\"\"!! !!", '"' <repeats 45 times>, "!!
!!\"\
"\"\"\"\"\"\"\""..., src_stride=-768, dst_stride=768, width=768,
height=576, matrix=0x22e3bc, interpolate=INTERPOLATE_BILINEAR,
fill=FILL_MIRROR) at libavfilter/transform.c:178
#1 0x00428b1a in end_frame (link=0x3b434c0) at
libavfilter/vf_deshake.c:510
#2 0x004196ac in avfilter_end_frame (link=0x3b434c0)
at libavfilter/avfilter.c:632
#3 0x004196ac in avfilter_end_frame (link=0x3b431c0)
at libavfilter/avfilter.c:632
#4 0x004196ac in avfilter_end_frame (link=0x3b42ea0)
at libavfilter/avfilter.c:632
#5 0x0041c5d7 in request_frame (link=0x3b42ea0)
at libavfilter/src_buffer.c:498
#6 0x00418d51 in avfilter_request_frame (link=0x3b435c0)
at libavfilter/avfilter.c:549
#7 0x0041b4b3 in avfilter_graph_request_oldest (graph=0x3b42600)
at libavfilter/avfiltergraph.c:545
#8 0x00409e1e in poll_filters () at ffmpeg.c:2123
#9 0x0040dde2 in transcode () at ffmpeg.c:3652
#10 0x00af8eb2 in main (argc=8, argv=0x3b40de0) at ffmpeg.c:5899
}}}
maybe it will be reproducible for you when you enable more fiters?
-vf
negate,drawbox,unsharp,boxblur=2:2,hflip,vflip,swapuv,deshake,scale=300:300
{{{
(gdb) r -i crash.avi -vf
negate,drawbox,unsharp,boxblur=2:2,hflip,vflip,swapu>
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: d:\mingw\msys\1.0\ffmpeg-head-23fba3e\ffmpeg_g.exe -i
crash.av
i -vf
negate,drawbox,unsharp,boxblur=2:2,hflip,vflip,swapuv,deshake,scale=300:30
0 -f null -
[New Thread 1056.0x794]
ffmpeg version 0.10.2.git-23fba3e Copyright (c) 2000-2012 the FFmpeg
developers
built on May 5 2012 19:57:06 with gcc 4.6.1
configuration: --disable-ffprobe --enable-gpl
libavutil 51. 49.100 / 51. 49.100
libavcodec 54. 19.100 / 54. 19.100
libavformat 54. 4.100 / 54. 4.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 72.104 / 2. 72.104
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 11.100 / 0. 11.100
libpostproc 52. 0.100 / 52. 0.100
Input #0, avi, from 'crash.avi':
Metadata:
encoder : Lavf54.3.100
Duration: 00:00:01.00, start: 0.000000, bitrate: 1438 kb/s
Stream #0:0: Video: mpeg4 (Simple Profile) (3IV2 / 0x32564933),
yuv420p, 768
x576 [SAR 1:1 DAR 4:3], 23.97 tbr, 23.97 tbn, 25 tbc
[buffer @ 03b42660] w:768 h:576 pixfmt:yuv420p tb:1/1000000 sar:1/1
sws_param:fl
ags=2
[buffersink @ 03b42980] No opaque field provided
[deshake @ 03b44500] cx: -1, cy: -1, cw: -1, ch: -1, rx: 16, ry: 16, edge:
3 blo
cksize: 16 contrast: 125 search: 0
[drawbox @ 03b43260] x:0 y:0 w:768 h:576 color:0x108080FF
[unsharp @ 03b435c0] effect:sharpen type:luma msize_x:5 msize_y:5
amount:1.00
[unsharp @ 03b435c0] effect:none type:chroma msize_x:5 msize_y:5
amount:0.00
[boxblur @ 03b43940] luma_radius:2 luma_power:2 chroma_radius:2
chroma_power:2 a
lpha_radius:2 alpha_power:2 w:768 chroma_w:384 h:576 chroma_h:288
[scale @ 03b44840] w:768 h:576 fmt:yuv420p sar:1/1 -> w:300 h:300
fmt:yuv420p sa
r:4/3 flags:0x4
Output #0, null, to 'pipe:':
Metadata:
encoder : Lavf54.4.100
Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 300x300
[SAR 4:3
DAR 4:3], q=2-31, 200 kb/s, 90k tbn, 23.97 tbc
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 -> rawvideo)
Press [q] to stop, [?] for help
[null @ 03b3b020] Encoder did not produce proper pts, making some up.
Program received signal SIGSEGV, Segmentation fault.
0x0043e404 in avfilter_transform (
src=0x485bd40 "\023\026\033!&*-", '/' <repeats 20 times>, '.' <repeats
34 ti
mes>, '/' <repeats 109 times>, "...", '/' <repeats 14 times>,
"...//////////"...
, dst=0x48a0040 'ň' <repeats 200 times>..., src_stride=-768,
dst_stride=768, width=768, height=576, matrix=0x22e2dc,
interpolate=INTERPOLATE_BILINEAR, fill=FILL_MIRROR)
at libavfilter/transform.c:178
178 def = src[(int)y_s * src_stride + (int)x_s];
(gdb) bt
#0 0x0043e404 in avfilter_transform (
src=0x485bd40 "\023\026\033!&*-", '/' <repeats 20 times>, '.' <repeats
34 ti
mes>, '/' <repeats 109 times>, "...", '/' <repeats 14 times>,
"...//////////"...
, dst=0x48a0040 'ň' <repeats 200 times>..., src_stride=-768,
dst_stride=768, width=768, height=576, matrix=0x22e2dc,
interpolate=INTERPOLATE_BILINEAR, fill=FILL_MIRROR)
at libavfilter/transform.c:178
#1 0x00428b1a in end_frame (link=0x3b44700) at
libavfilter/vf_deshake.c:510
#2 0x004196ac in avfilter_end_frame (link=0x3b44700)
at libavfilter/avfilter.c:632
#3 0x004196ac in avfilter_end_frame (link=0x3b443e0)
at libavfilter/avfilter.c:632
#4 0x004196ac in avfilter_end_frame (link=0x3b44120)
at libavfilter/avfilter.c:632
#5 0x004196ac in avfilter_end_frame (link=0x3b43e80)
at libavfilter/avfilter.c:632
#6 0x004196ac in avfilter_end_frame (link=0x3b43b40)
at libavfilter/avfilter.c:632
#7 0x00435ff9 in end_frame (link=0x3b437c0) at
libavfilter/vf_unsharp.c:227
#8 0x004196ac in avfilter_end_frame (link=0x3b437c0)
at libavfilter/avfilter.c:632
#9 0x004196ac in avfilter_end_frame (link=0x3b43480)
at libavfilter/avfilter.c:632
#10 0x004196ac in avfilter_end_frame (link=0x3b43120)
at libavfilter/avfilter.c:632
#11 0x0041c5d7 in request_frame (link=0x3b43120)
at libavfilter/src_buffer.c:498
#12 0x00418d51 in avfilter_request_frame (link=0x3b44c20)
at libavfilter/avfilter.c:549
#13 0x0041b4b3 in avfilter_graph_request_oldest (graph=0x3b42620)
at libavfilter/avfiltergraph.c:545
#14 0x00409e1e in poll_filters () at ffmpeg.c:2123
#15 0x0040dde2 in transcode () at ffmpeg.c:3652
#16 0x00af8eb2 in main (argc=8, argv=0x3b40e10) at ffmpeg.c:5899
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1278#comment:3>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list