Hello
I am using TI SDK 05_02_00_48 ver for capture application on TI 81X platform. I am trying to capture video using TI v4l2 driver.
First time I can create V4l2 capture component and can capture video frames without any issues.
However When I try to close the capture application and call STREAM_OFF to close v4l2 capture driver and again try to initiate capture application to capture, but TI driver is giving error 'VPSS_FVID2: create timeout' and fails at ti81xxvin ti81xxvin: Vps create failed.
This issue happens always 100%, Once I close the driver it require device restart to capture the video frames again.
Please find attached logs below. Can you please provide some help on how to resolve this issue?
as this issue is blocking, you quick help is highly appreciated.
ti81xxvin ti81xxvin: ti81xxvin_config_format - set buf_obj->bpl(0) si(0)
ti81xxvin ti81xxvin: ti81xxvin_v4l2_df_to_vps_df: v4l2 pf(0x56595559) -> df(0x1)
ti81xxvin ti81xxvin: ti81xxvin_vps_config_format: Using vcm(0x6) vifm(0x2) idf(0x1007) ccs(0xffffffff)
ti81xxvin ti81xxvin: ti81xxvin_vps_config_format: field(1 0x1) == ANY(0), NONE(1), INTERLACED(4)
ti81xxvin ti81xxvin: ti81xxvin_vps_config_format: decoder_w(0), decoder_h(0)
ti81xxvin ti81xxvin: ti81xxvin_vps_config_format: END
ti81xxvin ti81xxvin: ti81xxvin_config_format - set buf_obj->bpl(0) si(0)
ti81xxvin ti81xxvin: ti81xxvin_check_format: START
ti81xxvin ti81xxvin: ti81xxvin_check_format: check pixel format: 0x3231564e
ti81xxvin ti81xxvin: ti81xxvin_check_format: check colorspace: 0x3
ti81xxvin ti81xxvin: ti81xxvin_check_format: check field format: 0x1
ti81xxvin ti81xxvin: ti81xxvin_check_format: check width: 1920 (min: 0)
ti81xxvin ti81xxvin: ti81xxvin_check_format: check height: 1080 (min: 0)
ti81xxvin ti81xxvin: ti81xxvin_check_format: set hpitch: bpl(1920)
ti81xxvin ti81xxvin: ti81xxvin_check_format: switch pixelformat(0x3231564e)
ti81xxvin ti81xxvin: ti81xxvin_check_format: YUYV(0x56595559) NV12(0x3231564e)
ti81xxvin ti81xxvin: ti81xxvin_check_format: NV16(0x3631564e) RGB24(0x33424752)
ti81xxvin ti81xxvin: ti81xxvin_check_format: check hpitch: 1920 (min: 0)
ti81xxvin ti81xxvin: ti81xxvin_check_format: set numlines: sizeimage(3110400) / hpitch(1920) = 1620)
ti81xxvin ti81xxvin: ti81xxvin_check_format: check numlines: 1620 (min: 1620)
ti81xxvin ti81xxvin: ti81xxvin_check_format: check hpitch(1920) numlines(1620)
ti81xxvin ti81xxvin: ti81xxvin_check_format: set pixfmt->bpl(1920) si(3110400)
ti81xxvin ti81xxvin: ti81xxvin_check_format: set w(1920), h(1080), pf(0x3231564e)
ti81xxvin ti81xxvin: ti81xxvin_check_format: set bpl(1920), si(3110400)
ti81xxvin ti81xxvin: ti81xxvin_check_format: ti81xxvin_vps_config_format
ti81xxvin ti81xxvin: ti81xxvin_v4l2_df_to_vps_df: v4l2 pf(0x3231564e) -> df(0x7)
ti81xxvin ti81xxvin: ti81xxvin_vps_config_format: Using vcm(0x6) vifm(0x2) idf(0x1007) ccs(0xffffffff)
ti81xxvin ti81xxvin: ti81xxvin_vps_config_format: field(1 0x1) == ANY(0), NONE(1), INTERLACED(4)
ti81xxvin ti81xxvin: ti81xxvin_vps_config_format: decoder_w(0), decoder_h(0)
ti81xxvin ti81xxvin: ti81xxvin_vps_config_format: END
ti81xxvin ti81xxvin: ti81xxvin_check_format: ti81xxvin_vps_config_format - ret: 0
ti81xxvin ti81xxvin: ti81xxvin_check_format: END - ret: 0
ti81xxvin ti81xxvin: ########## vidioc_streamon - START file(0xd6727380) priv(0xd5ec1280) inst(0xd5e0a000) buf_#
ti81xxvin ti81xxvin: ########## vidioc_streamon - HERE 1 ##########
ti81xxvin ti81xxvin: ########## vidioc_streamon - HERE 2 ##########
ti81xxvin ti81xxvin: ########## vidioc_streamon - HERE 3 ##########
ti81xxvin ti81xxvin: ########## vidioc_streamon - HERE 4 ##########
ti81xxvin ti81xxvin: ########## vidioc_streamon - HERE 5 ##########
ti81xxvin ti81xxvin: ########## vidioc_streamon - HERE 6 ##########
ti81xxvin ti81xxvin: ti81xxvin_check_format: START
ti81xxvin ti81xxvin: ti81xxvin_check_format: check pixel format: 0x3231564e
ti81xxvin ti81xxvin: ti81xxvin_check_format: check colorspace: 0x3
ti81xxvin ti81xxvin: ti81xxvin_check_format: check field format: 0x1
ti81xxvin ti81xxvin: ti81xxvin_check_format: check width: 1920 (min: 0)
ti81xxvin ti81xxvin: ti81xxvin_check_format: check height: 1080 (min: 0)
ti81xxvin ti81xxvin: ti81xxvin_check_format: set hpitch: bpl(1920)
ti81xxvin ti81xxvin: ti81xxvin_check_format: switch pixelformat(0x3231564e)
ti81xxvin ti81xxvin: ti81xxvin_check_format: YUYV(0x56595559) NV12(0x3231564e)
ti81xxvin ti81xxvin: ti81xxvin_check_format: NV16(0x3631564e) RGB24(0x33424752)
ti81xxvin ti81xxvin: ti81xxvin_check_format: check hpitch: 1920 (min: 0)
ti81xxvin ti81xxvin: ti81xxvin_check_format: set numlines: sizeimage(3110400) / hpitch(1920) = 1620)
ti81xxvin ti81xxvin: ti81xxvin_check_format: check numlines: 1620 (min: 1620)
ti81xxvin ti81xxvin: ti81xxvin_check_format: END - ret: 0
ti81xxvin ti81xxvin: ########## vidioc_streamon - HERE 7 ##########
ti81xxvin ti81xxvin: ########## vidioc_streamon - HERE 8 ##########
ti81xxvin ti81xxvin: ti81xxvin_vps_create: START
ti81xxvin ti81xxvin: ti81xxvin_vps_create: check inst->video(0xd5e0a1f0).buf_params.interlaced(0)
ti81xxvin ti81xxvin: ti81xxvin_vps_create: END
ti81xxvin ti81xxvin: ########## vidioc_streamon - HERE 8 ##########
ti81xxvin ti81xxvin: ########## vidioc_streamon - HERE 10 ##########
ti81xxvin ti81xxvin: ########## vidioc_streamon - HERE 11 ##########
ti81xxvin ti81xxvin: ########## vidioc_streamon - HERE 11 ##########
ti81xxvin ti81xxvin: ########## vidioc_streamon - HERE 11 ##########
ti81xxvin ti81xxvin: ########## vidioc_streamon - HERE 11 ##########
ti81xxvin ti81xxvin: ########## vidioc_streamon - HERE 11 ##########
ti81xxvin ti81xxvin: ########## vidioc_streamon - HERE 11 ##########
ti81xxvin ti81xxvin: vidioc_streamon - END
//-------------------- Close V4L2----------------------------------------------
Inside vidioc_streamoff function
buftype = 1
Call hdvpss_stop
ti81xxvin_vps_stop
videobuf_streamoff return = 0
ti81xxvin_vps_delete
Call hdvpss_stop : Return val = 0
//----------------- Restart V4l2 Once again.--------------------------------------
ti81xxvin ti81xxvin: ti81xxvin_config_format - set buf_obj->bpl(3840) si(4147200)
ti81xxvin ti81xxvin: ti81xxvin_v4l2_df_to_vps_df: v4l2 pf(0x56595559) -> df(0x1)
ti81xxvin ti81xxvin: ti81xxvin_vps_config_format: Using vcm(0x6) vifm(0x2) idf(0x1007) ccs(0xffffffff)
ti81xxvin ti81xxvin: ti81xxvin_vps_config_format: field(1 0x1) == ANY(0), NONE(1), INTERLACED(4)
ti81xxvin ti81xxvin: ti81xxvin_vps_config_format: decoder_w(0), decoder_h(0)
ti81xxvin ti81xxvin: ti81xxvin_vps_config_format: END
ti81xxvin ti81xxvin: ti81xxvin_config_format - set buf_obj->bpl(3840) si(4147200)
ti81xxvin ti81xxvin: ti81xxvin_check_format: START
ti81xxvin ti81xxvin: ti81xxvin_check_format: check pixel format: 0x3231564e
ti81xxvin ti81xxvin: ti81xxvin_check_format: check colorspace: 0x3
ti81xxvin ti81xxvin: ti81xxvin_check_format: check field format: 0x1
ti81xxvin ti81xxvin: ti81xxvin_check_format: check width: 1920 (min: 1920)
ti81xxvin ti81xxvin: ti81xxvin_check_format: check height: 1080 (min: 1080)
ti81xxvin ti81xxvin: ti81xxvin_check_format: set hpitch: bpl(1920)
ti81xxvin ti81xxvin: ti81xxvin_check_format: switch pixelformat(0x3231564e)
ti81xxvin ti81xxvin: ti81xxvin_check_format: YUYV(0x56595559) NV12(0x3231564e)
ti81xxvin ti81xxvin: ti81xxvin_check_format: NV16(0x3631564e) RGB24(0x33424752)
ti81xxvin ti81xxvin: ti81xxvin_check_format: check hpitch: 1920 (min: 1920)
ti81xxvin ti81xxvin: ti81xxvin_check_format: set numlines: sizeimage(3110400) / hpitch(1920) = 1620)
ti81xxvin ti81xxvin: ti81xxvin_check_format: check numlines: 1620 (min: 1620)
ti81xxvin ti81xxvin: ti81xxvin_check_format: check hpitch(1920) numlines(1620)
ti81xxvin ti81xxvin: ti81xxvin_check_format: set pixfmt->bpl(1920) si(3110400)
ti81xxvin ti81xxvin: ti81xxvin_check_format: set w(1920), h(1080), pf(0x3231564e)
ti81xxvin ti81xxvin: ti81xxvin_check_format: set bpl(1920), si(3110400)
ti81xxvin ti81xxvin: ti81xxvin_check_format: ti81xxvin_vps_config_format
ti81xxvin ti81xxvin: ti81xxvin_v4l2_df_to_vps_df: v4l2 pf(0x3231564e) -> df(0x7)
ti81xxvin ti81xxvin: ti81xxvin_vps_config_format: Using vcm(0x6) vifm(0x2) idf(0x1007) ccs(0xffffffff)
ti81xxvin ti81xxvin: ti81xxvin_vps_config_format: field(1 0x1) == ANY(0), NONE(1), INTERLACED(4)
ti81xxvin ti81xxvin: ti81xxvin_vps_config_format: decoder_w(0), decoder_h(0)
ti81xxvin ti81xxvin: ti81xxvin_vps_config_format: END
ti81xxvin ti81xxvin: ti81xxvin_check_format: ti81xxvin_vps_config_format - ret: 0
ti81xxvin ti81xxvin: ti81xxvin_check_format: END - ret: 0
ti81xxvin ti81xxvin: ########## vidioc_streamon - START file(0xd5ec4a80) priv(0xd5eca100) inst(0xd5e0a000) buf_#
ti81xxvin ti81xxvin: ########## vidioc_streamon - HERE 1 ##########
ti81xxvin ti81xxvin: ########## vidioc_streamon - HERE 2 ##########
ti81xxvin ti81xxvin: ########## vidioc_streamon - HERE 3 ##########
ti81xxvin ti81xxvin: ########## vidioc_streamon - HERE 4 ##########
ti81xxvin ti81xxvin: ########## vidioc_streamon - HERE 5 ##########
ti81xxvin ti81xxvin: ########## vidioc_streamon - HERE 6 ##########
ti81xxvin ti81xxvin: ti81xxvin_check_format: START
ti81xxvin ti81xxvin: ti81xxvin_check_format: check pixel format: 0x3231564e
ti81xxvin ti81xxvin: ti81xxvin_check_format: check colorspace: 0x3
ti81xxvin ti81xxvin: ti81xxvin_check_format: check field format: 0x1
ti81xxvin ti81xxvin: ti81xxvin_check_format: check width: 1920 (min: 1920)
ti81xxvin ti81xxvin: ti81xxvin_check_format: check height: 1080 (min: 1080)
ti81xxvin ti81xxvin: ti81xxvin_check_format: set hpitch: bpl(1920)
ti81xxvin ti81xxvin: ti81xxvin_check_format: switch pixelformat(0x3231564e)
ti81xxvin ti81xxvin: ti81xxvin_check_format: YUYV(0x56595559) NV12(0x3231564e)
ti81xxvin ti81xxvin: ti81xxvin_check_format: NV16(0x3631564e) RGB24(0x33424752)
ti81xxvin ti81xxvin: ti81xxvin_check_format: check hpitch: 1920 (min: 1920)
ti81xxvin ti81xxvin: ti81xxvin_check_format: set numlines: sizeimage(3110400) / hpitch(1920) = 1620)
ti81xxvin ti81xxvin: ti81xxvin_check_format: check numlines: 1620 (min: 1620)
ti81xxvin ti81xxvin: ti81xxvin_check_format: END - ret: 0
ti81xxvin ti81xxvin: ########## vidioc_streamon - HERE 7 ##########
ti81xxvin ti81xxvin: ########## vidioc_streamon - HERE 8 ##########
ti81xxvin ti81xxvin: ti81xxvin_vps_create: START
VPSS_FVID2: create timeout
ti81xxvin ti81xxvin: ti81xxvin_vps_create failed
ti81xxvin ti81xxvin: ########## vidioc_streamon - FAIL 5 ##########
ti81xxvin ti81xxvin: Vps create failed
thanks
Prakash