Opened 13 days ago

Last modified 11 days ago

#7418 new defect

[ffmpeg-qsv][avc_encode] avc encode Segmentation fault on iHD driver.

Reported by: zhuqingliang Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: qsv crash
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

environment:

FFMPEG-QSV	CFL	OS: ubuntu 17.04	kernel: 4.15.0
	KBL	OS: ubuntu 16.04	kernel: 4.14.0-rc1
	SKL	OS: ubuntu 16.04	kernel: 4.15.0
			
libva	b6c50dad4d7d14c507108d9f468662e2d7ae1c4d	 https://github.com/01org/libva.git  ( master )
iHD Driver	ed04556a6676fd77ff845508bc54bfc60915450c	 https://github.com/intel/media-driver
libva-utils	9a10ad663349732decd668a426cfc349b0010d1d	 https://github.com/01org/libva-utils.git
Mediasdk	7ea683585f0f84f1bea035a405855312c92c46c0	 https://github.com/Intel-Media-SDK/MediaSDK
FFMPEG	56f68a099cc607658118e00cad30569103ae3751	 https://git.ffmpeg.org/ffmpeg.git

How to reproduce:

1.build env as above lists
2.ffmpeg -hwaccel qsv -init_hw_device qsv=hw -filter_hw_device hw -v verbose -f rawvideo -video_size 1920x1080 -pix_fmt nv12 -i ./123_217frame_1920x1080_blue_sky.yuv -an -vf hwupload=extra_hw_frames=64,format=qsv -c:v h264_qsv -g 30 -bf 3 -refs 3 -vframes 100 -vsync 0 -y ./H264e_multi_process_1920x1080P_3.h264
3.error message:
Segmentation fault (core dumped)

yuv file to large to upload

Attachments (2)

gdb_log.txt (12.4 KB) - added by zhuqingliang 12 days ago.
valgrind.txt (756.9 KB) - added by zhuqingliang 12 days ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 12 days ago by cehoyos

  • Keywords crash added; Segmentation fault removed

Please provide backtrace, disassembly and register dump as explained on https://ffmpeg.org/bugreports.html to make this crash report a valid ticket.

comment:2 Changed 12 days ago by jkqxz

That option combination doesn't obviously fail for me, though I don't have that specific input file. Backtrace / more information is needed, though it seems likely this is something inside libmfx.

Changed 12 days ago by zhuqingliang

Changed 12 days ago by zhuqingliang

comment:3 Changed 12 days ago by lizhong1008

Are you sure the input rawvideo is nv12 format? I guess it is yuv420p.
Please double-confirm it and try it again with -pix_fmt yuv420p:

ffmpeg -hwaccel qsv -init_hw_device qsv=hw -filter_hw_device hw -v verbose -f rawvideo -video_size 1920x1080 -pix_fmt yuv420p -i ./123_217frame_1920x1080_blue_sky.yuv -an -vf hwupload=extra_hw_frames=64,format=qsv -c:v h264_qsv -g 30 -bf 3 -refs 3 -vframes 100 -vsync 0 -y ./H264e_multi_process_1920x1080P_3.h264
Last edited 12 days ago by lizhong1008 (previous) (diff)

comment:4 Changed 11 days ago by zhuqingliang

I confirm this file is nv12.
And i tried with "-pix_fmt yuv420p" , it runs successfully.

Note: See TracTickets for help on using tickets.