Closed ruiling closed 6 years ago
Testing with ./ffmpeg -hwaccel qsv -c:v h264_qsv -analyzeduration 10000000 -i /samba/anonymous/Videos/libav_cavlc0.h264 -an -movflags faststart -qmax 51 -qmin 10 -preset faster -level 3.0 -b:v 734537 -c:v h264_qsv -codec:a libfdk_aac -map_metadata 0:g -vf '[0:v]vpp_qsv=w=trunc(in_w/2)2:h=trunc(in_h/2)2[scale2],[scale2]vpp_qsv=w=480:h=480[scale1],movie=/samba/anonymous/Videos/ffmpeg_fate_suite_lastest/fate-suite/png1/lena-rgba.png,hwupload,format=qsv[wm];[scale1][wm]overlay_qsv=x_expr=iw(0)-iw(1)-10+0:y_expr=10+0[wmimage]' -f mp4 -y overlay_3.3.1.mp4
Segment fault. (gdb) bt
It can work well on qsv331 branch.
Patches applied.
Testing with ./ffmpeg -hwaccel qsv -c:v h264_qsv -analyzeduration 10000000 -i /samba/anonymous/Videos/libav_cavlc0.h264 -an -movflags faststart -qmax 51 -qmin 10 -preset faster -level 3.0 -b:v 734537 -c:v h264_qsv -codec:a libfdk_aac -map_metadata 0:g -vf '[0:v]vpp_qsv=w=trunc(in_w/2)2:h=trunc(in_h/2)2[scale2],[scale2]vpp_qsv=w=480:h=480[scale1],movie=/samba/anonymous/Videos/ffmpeg_fate_suite_lastest/fate-suite/png1/lena-rgba.png,hwupload,format=qsv[wm];[scale1][wm]overlay_qsv=x_expr=iw(0)-iw(1)-10+0:y_expr=10+0[wmimage]' -f mp4 -y overlay_3.3.1.mp4
Segment fault. (gdb) bt
0 0x00000000006c4115 in submit_frame (s=0x3278420, inlink=0x2687a60, picref=0x0) at libavfilter/qsvvpp.c:295
1 0x00000000006c5411 in ff_qsvvpp_filter_frame (s=0x3278420, inlink=0x2687a60, picref=0x0) at libavfilter/qsvvpp.c:686
2 0x0000000000568ef2 in process_frame (fs=0x2d645c8) at libavfilter/vf_overlay_qsv.c:385
3 0x00000000004750c3 in ff_framesync_activate (fs=0x2d645c8) at libavfilter/framesync.c:353
4 0x0000000000569620 in activate (ctx=0x2d644c0) at libavfilter/vf_overlay_qsv.c:544
5 0x000000000045e3c4 in ff_filter_activate (filter=0x2d644c0) at libavfilter/avfilter.c:1500
6 0x0000000000462cca in ff_filter_graph_run_once (graph=0x29eed60) at libavfilter/avfiltergraph.c:1449
7 0x0000000000462eb7 in get_frame_internal (ctx=0x2b98de0, frame=0x0, flags=1, samples=0) at libavfilter/buffersink.c:110
8 0x0000000000462f14 in av_buffersink_get_frame_flags (ctx=0x2b98de0, frame=0x0, flags=1) at libavfilter/buffersink.c:121
9 0x0000000000462a5d in avfilter_graph_request_oldest (graph=0x29eed60) at libavfilter/avfiltergraph.c:1402
10 0x0000000000430bfa in transcode_from_filter (graph=0x25e4620, best_ist=0x7fffffffd6b8) at fftools/ffmpeg.c:4473
11 0x0000000000430f47 in transcode_step () at fftools/ffmpeg.c:4548
12 0x00000000004311bf in transcode () at fftools/ffmpeg.c:4624
13 0x00000000004318ab in main (argc=34, argv=0x7fffffffd948) at fftools/ffmpeg.c:4830
It can work well on qsv331 branch.