VCE VAAPI segfault using ffmpeg
Submitted by Martin Bednar
Assigned to Default DRI bug account
Description
lspci:00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Trinity [Radeon HD 7480D]
libva info: Trying to open /usr/lib64/va/drivers/r600_drv_video.so libva info: Found init function __vaDriverInit_0_39 libva info: va_openDriver() returns 0 vainfo: VA-API version: 0.39 (libva 1.7.3) vainfo: Driver version: mesa gallium vaapi vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointVLD VAProfileVC1Simple : VAEntrypointVLD VAProfileVC1Main : VAEntrypointVLD VAProfileVC1Advanced : VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointVLD VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice VAProfileH264Main : VAEntrypointVLD VAProfileH264Main : VAEntrypointEncSlice VAProfileH264High : VAEntrypointVLD VAProfileH264High : VAEntrypointEncSlice VAProfileNone : VAEntrypointVideoProc
commandline: ffmpeg -vaapi_device /dev/dri/renderD128 -i Elephants_Dream_HD.avi -vf format=rgba,hwupload -bf 0 -c:v h264_vaapi test.mkv run on a console over ssh.
backtrace:
#0 0x00007f4004a58e3f in create (enc=0x19ed530) at /var/tmp/portage/media-libs/mesa-13.0.2/work/mesa-13.0.2/src/gallium/drivers/radeon/radeon_vce_40_2_2.c:98
#1 0x00007f4004a5cd3f in rvce_begin_frame (encoder=0x19ed530, source=0x16e1a70, picture=0x19131d8) at /var/tmp/portage/media-libs/mesa-13.0.2/work/mesa-13.0.2/src/gallium/drivers/radeon/radeon_vce.c:288
#2 0x00007f400490cdec in vlVaEndPicture (ctx=<optimized out>, context_id=23) at /var/tmp/portage/media-libs/mesa-13.0.2/work/mesa-13.0.2/src/gallium/state_trackers/va/picture.c:572
#3 0x00007f401cfcf08f in vaEndPicture (dpy=0x1691c20, context=23) at /var/tmp/portage/x11-libs/libva-1.7.3/work/libva-1.7.3/va/va.c:1232
#4 0x00007f401e202a9b in vaapi_encode_issue (avctx=avctx@entry=0x16e5060, pic=pic@entry=0x1745500) at src/libavcodec/vaapi_encode.c:387
#5 0x00007f401e202c16 in vaapi_encode_step (avctx=avctx@entry=0x16e5060, target=target@entry=0x1745500) at src/libavcodec/vaapi_encode.c:587
#6 0x00007f401e202fe7 in ff_vaapi_encode2 (avctx=0x16e5060, pkt=0x190fa60, input_image=<optimized out>, got_packet=0x7ffc264290d4) at src/libavcodec/vaapi_encode.c:867
#7 0x00007f401e1f6d15 in avcodec_encode_video2 (avctx=avctx@entry=0x16e5060, avpkt=0x190fa60, frame=frame@entry=0x19ad200, got_packet_ptr=got_packet_ptr@entry=0x7ffc264290d4) at src/libavcodec/utils.c:1994
#8 0x00007f401e1f6fda in do_encode (avctx=0x16e5060, frame=0x19ad200, got_packet=0x7ffc264290d4) at src/libavcodec/utils.c:2939
#9 0x00007f401e1fc167 in avcodec_send_frame (avctx=avctx@entry=0x16e5060, frame=0x19ad200) at src/libavcodec/utils.c:2988
#10 0x0000000000420fdd in do_video_out (of=of@entry=0x1745be0, ost=ost@entry=0x16e4e00, next_picture=next_picture@entry=0x19ad200, sync_ipts=<optimized out>, sync_ipts@entry=-7.62939453125e-06) at src/ffmpeg.c:1251
#11 0x000000000042266f in reap_filters (flush=flush@entry=0) at src/ffmpeg.c:1451
#12 0x0000000000409316 in transcode_step () at src/ffmpeg.c:4343
#13 transcode () at src/ffmpeg.c:4387
#14 main (argc=<optimized out>, argv=<optimized out>) at src/ffmpeg.c:4592
Testing patches is no problem.
Version: 17.1