Preview failed by Gstreamer with V4l2 plugin

Hi

We tried to add a YUV with ISP camera module on R24.2. The code is modified from ov5693.c.
The MCLK and I2c are controlled by ISP not TX1. 
Tx1 could only capture one frame as we tested it by the following command.

gst-launch-1.0 -v v4l2src device="/dev/video0" ! "video/x-raw,width=1280,height=720, format=(string)I420" ! xvimagesink -e

Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = “video/x-raw,\ format=(string)I420,\ width=(int)1280,\ height=(int)720,\ pixel-aspect-ratio=(fraction)1/1,\ interlace-mode=(string)progressive,\ colorimetry=(string)2:4:7:1,\ framerate=(fraction)30/1”
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = “video/x-raw,\ format=(string)I420,\ width=(int)1280,\ height=(int)720,\ pixel-aspect-ratio=(fraction)1/1,\ interlace-mode=(string)progressive,\ colorimetry=(string)2:4:7:1,\ framerate=(fraction)30/1”
/GstPipeline:pipeline0/GstXvImageSink:xvimagesink0.GstPad:sink: caps = “video/x-raw,\ format=(string)I420,\ width=(int)1280,\ height=(int)720,\ pixel-aspect-ratio=(fraction)1/1,\ interlace-mode=(string)progressive,\ colorimetry=(string)2:4:7:1,\ framerate=(fraction)30/1”
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = “video/x-raw,\ format=(string)I420,\ width=(int)1280,\ height=(int)720,\ pixel-aspect-ratio=(fraction)1/1,\ interlace-mode=(string)progressive,\ colorimetry=(string)2:4:7:1,\ framerate=(fraction)30/1”
ERROR: from element /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0: Output window was closed
Additional debug info:
xvimagesink.c(555): gst_xv_image_sink_handle_xevents (): /GstPipeline:pipeline0/GstXvImageSink:xvimagesink0
EOS on shutdown enabled – waiting for EOS after Error
Waiting for EOS…
^Chandling interrupt.
Interrupt: Stopping pipeline …
Interrupt while waiting for EOS - stopping pipeline…
Execution ended after 0:00:21.257993151
Setting pipeline to PAUSED …
Setting pipeline to READY …
Setting pipeline to NULL …
Freeing pipeline …

But ./yavta /dev/video0 -c1 -n1 -s640x480 -fUYVY -Fcam.raw
and  v4l2-ctl -d /dev/video0 --set-fmt-video=width=1280,height=720,pixelformat=UYVY --stream-mmap --stream-count=10 --stream-to=ov1280_v4l2.raw  worked    

v4l2-compliance -d /dev/video0

Driver Info:
Driver name : tegra-video
Card type : vi-output-2, ov5693 6-0036
Bus info : platform:vi:2
Driver version: 3.10.96
Capabilities : 0x84200001
Video Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format

Compliance test for device /dev/video0 (not using libv4l2):

Required ioctls:
test VIDIOC_QUERYCAP: OK

Allow formultiple opens:
test second video open: OK
test VIDIOC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK

Debug ioctls:
test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
test VIDIOC_LOG_STATUS: OK (Not Supported)

Input ioctls:
test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported)
test VIDIOC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK
test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 1 Audio Inputs: 0 Tuners: 0

Output ioctls:
test VIDIOC_G/S_MODULATOR: OK (Not Supported)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
test VIDIOC_ENUMAUDOUT: OK (Not Supported)
test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported)
test VIDIOC_G/S_AUDOUT: OK (Not Supported)
Outputs: 0 Audio Outputs: 0 Modulators: 0

Input/Output configuration ioctls:
tesSTD: OK (Not Supported)
test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported)
test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported)
test VIDIOC_G/S_EDID: OK (Not Supported)

Control ioctls:
	test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK
	test VIDIOC_QUERYCTRL: OK
	test VIDIOC_G/S_CTRL: OK
	test VIDIOC_G/S/TRY_EXT_CTRLS: OK
	test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK
	test VIDIOC_G/S_JPEGCOMP: OK (Not Supported)
	Standard Controls: 1 Private Controls: 9

Format ioctls:
	fail: v4l2-test-formats.cpp(268): duplicate format 59565955
	test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: FAIL
	test VIDIOC_G/S_PARM: OK (Not Supported)
	test VIDIOC_G_FBUF: OK (Not Supported)
	test VIDIOC_G_FMT: OK
	test VIDIOC_TRY_FMT: OK
	test VIDIOC_S_FMT: OK
	test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported)
	test Cropping: OK (Not Supported)
	test Composing: OK (Not Supported)
	test Scaling: OK (Not Supported)

Codec ioctls:
	test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported)
	test VIDIOC_G_ENC_INDEX: OK (Not Supported)
	test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported)

Buffer ioctls:
	test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK
	test VIDIOC_EXPBUF: OK

Test input 0:

Total: 42, Succeeded: 41, Failed: 1, Warnings: 0

Did I miss any?

Thanks,

Could you try below command.

gst-launch-1.0 -v v4l2src device="/dev/video0" ! "video/x-raw,width=1280,height=720, format=(string)I420" ! nvvidconv ! "video/x-raw(memory:NVMM)" ! nvoverlaysink

Hi Shane,

Thank you for your help.

The command you provided seems work better.
There was no “Error” on TX1 as I tested the command.

However, the image did not show properly and we got error on host terminal.
Below is the error message and the video files will be attached.

We are working on it, and appreciate any advice.

[ 3227.992030] ov5693 6-0036: :ov5693_s_stream++
[ 3228.006119] ov5693 6-0036: ov5693_set_frame_length: val: 1984
[ 3228.037224] ov5693 6-0036: ov5693_s_stream–
[ 3228.236620] video4linux video0: frame start syncpt timeout!0
[ 3228.446507] video4linux video0: frame start syncpt timeout!0
[ 3228.646705] video4linux video0: frame start syncpt timeout!0
[ 3228.846982] video4linux video0: frame start syncpt timeout!0
[ 3229.067663] video4linux video0: frame start syncpt timeout!0
[ 3229.277313] video4linux video0: frame start syncpt timeout!0
[ 3229.477321] video4linux video0: frame start syncpt timeout!0
[ 3229.686518] video4linux video0: frame start syncpt timeout!0
[ 3229.897208] video4linux video0: frame start syncpt timeout!0
[ 3230.097271] video4linux video0: frame start syncpt timeout!0
[ 3230.297290] video4linux video0: frame start syncpt timeout!0
[ 3230.497276] video4linux video0: frame start syncpt timeout!0
[ 3230.697322] video4linux video0: frame start syncpt timeout!0
[ 3230.906908] video4linux video0: frame start syncpt timeout!0
[ 3231.106777] video4linux video0: frame start syncpt timeout!0
[ 3231.306965] video4linux video0: frame start syncpt timeout!0
[ 3231.506947] video4linux video0: frame start syncpt timeout!0
[ 3231.706930] video4linux video0: frame start syncpt timeout!0
[ 3231.917203] video4linux video0: frame start syncpt timeout!0
[ 3231.928781] tegra_mipi_cal 700e3000.mipical: Mipi cal timeout,val:1, lanes:400000
[ 3232.137510] video4linux video0: frame start syncpt timeout!0
[ 3232.346980] video4linux video0: frame start syncpt timeout!0
[ 3232.557111] video4linux video0: frame start syncpt timeout!0
[ 3232.757275] video4linux video0: frame start syncpt timeout!0
[ 3232.829848] vi vi: vi2_channel_error_status:error 24022 frame 23
[ 3232.997351] vi vi: vi2_channel_error_status:error 24022 frame 24
[ 3233.207042] video4linux video0: frame start syncpt timeout!0
[ 3233.330420] vi vi: vi2_channel_error_status:error 24022 frame 26
[ 3233.396464] vi vi: vi2_channel_error_status:error 24022 frame 27
[ 3233.497371] vi vi: vi2_channel_error_status:error 24022 frame 28
[ 3233.563147] vi vi: vi2_channel_error_status:error 24022 frame 29
[ 3233.663755] vi vi: vi2_channel_error_status:error 24022 frame 30
[ 3233.696863] vi vi: vi2_channel_error_status:error 24022 frame 31
[ 3233.763155] vi vi: vi2_channel_error_status:error 24022 frame 32
[ 3233.829922] vi vi: vi2_channel_error_status:error 24022 frame 33
[ 3233.902374] vi vi: vi2_channel_error_status:error 24022 frame 34
[ 3233.969183] vi vi: vi2_channel_error_status:error 24022 frame 35
[ 3234.177191] video4linux video0: frame start syncpt timeout!0
[ 3234.387004] video4linux video0: frame start syncpt timeout!0
[ 3234.587004] video4linux video0: frame start syncpt timeout!0
[ 3234.786787] video4linux video0: frame start syncpt timeout!0
[ 3234.987004] video4linux video0: frame start syncpt timeout!0
[ 3235.187015] video4linux video0: frame start syncpt timeout!0
[ 3235.387010] video4linux video0: frame start syncpt timeout!0
[ 3235.586755] video4linux video0: frame start syncpt timeout!0
[ 3235.787023] video4linux video0: frame start syncpt timeout!0
[ 3235.986973] video4linux video0: frame start syncpt timeout!0
[ 3236.187017] video4linux video0: frame start syncpt timeout!0
[ 3236.386747] video4linux video0: frame start syncpt timeout!0
[ 3236.497314] vi vi: vi2_channel_error_status:error 24022 frame 48
[ 3236.707307] video4linux video0: frame start syncpt timeout!0
[ 3236.906998] video4linux video0: frame start syncpt timeout!0
[ 3237.107088] video4linux video0: frame start syncpt timeout!0
[ 3237.131245] vi vi: vi2_channel_error_status:error 20022 frame 52
[ 3237.230209] vi vi: vi2_channel_error_status:error 24022 frame 53
[ 3237.263173] vi vi: vi2_channel_error_status:error 24022 frame 54
[ 3237.296604] vi vi: vi2_channel_error_status:error 24022 frame 55
[ 3237.329834] vi vi: vi2_channel_error_status:error 24022 frame 56
[ 3237.430053] vi vi: vi2_channel_error_status:error 24022 frame 57
[ 3237.529975] vi vi: vi2_channel_error_status:error 24022 frame 58
[ 3237.563167] vi vi: vi2_channel_error_status:error 24022 frame 59
[ 3237.663354] vi vi: vi2_channel_error_status:error 24022 frame 60
[ 3237.730250] vi vi: vi2_channel_error_status:error 24022 frame 61
[ 3237.763404] vi vi: vi2_channel_error_status:error 24022 frame 62
[ 3237.863266] vi vi: vi2_channel_error_status:error 24022 frame 63
[ 3237.929935] vi vi: vi2_channel_error_status:error 24022 frame 64
[ 3237.963126] vi vi: vi2_channel_error_status:error 24022 frame 65
[ 3238.029936] vi vi: vi2_channel_error_status:error 24022 frame 66
[ 3238.096635] vi vi: vi2_channel_error_status:error 24022 frame 67
[ 3238.163741] vi vi: vi2_channel_error_status:error 24022 frame 68
[ 3238.367241] video4linux video0: frame start syncpt timeout!0
[ 3238.463273] vi vi: vi2_channel_error_status:error 24022 frame 70
[ 3238.563742] vi vi: vi2_channel_error_status:error 24022 frame 71
[ 3238.663360] vi vi: vi2_channel_error_status:error 24022 frame 72
[ 3238.877132] video4linux video0: frame start syncpt timeout!0
[ 3238.996686] vi vi: vi2_channel_error_status:error 24022 frame 74
[ 3239.207346] video4linux video0: frame start syncpt timeout!0
[ 3239.363797] vi vi: vi2_channel_error_status:error 24022 frame 76
[ 3239.577076] video4linux video0: frame start syncpt timeout!0
[ 3239.777343] video4linux video0: frame start syncpt timeout!0
[ 3239.830020] vi vi: vi2_channel_error_status:error 24022 frame 79
[ 3240.047621] video4linux video0: frame start syncpt timeout!0
[ 3240.063857] vi vi: vi2_channel_error_status:error 22 frame 81
[ 3240.307246] video4linux video0: frame start syncpt timeout!0
[ 3240.517020] video4linux video0: frame start syncpt timeout!0
[ 3240.717233] video4linux video0: frame start syncpt timeout!0
[ 3240.917105] video4linux video0: frame start syncpt timeout!0
[ 3241.090392] vi vi: vi2_channel_error_status:error 24022 frame 86
[ 3241.297459] video4linux video0: frame start syncpt timeout!0
[ 3241.507261] video4linux video0: frame start syncpt timeout!0
[ 3241.717035] video4linux video0: frame start syncpt timeout!0
[ 3241.917109] video4linux video0: frame start syncpt timeout!0
[ 3241.927430] tegra_mipi_cal 700e3000.mipical: Mipi cal timeout,val:1, lanes:400000
[ 3242.127244] video4linux video0: frame start syncpt timeout!0
[ 3242.327298] video4linux video0: frame start syncpt timeout!0
[ 3242.537590] video4linux video0: frame start syncpt timeout!0
[ 3242.737171] video4linux video0: frame start syncpt timeout!0
[ 3242.830083] vi vi: vi2_channel_error_status:error 24022 frame 95
[ 3242.996904] vi vi: vi2_channel_error_status:error 24022 frame 96
[ 3243.029838] vi vi: vi2_channel_error_status:error 24022 frame 97
[ 3243.063192] vi vi: vi2_channel_error_status:error 24022 frame 98
[ 3243.130056] vi vi: vi2_channel_error_status:error 24022 frame 99
[ 3243.163261] vi vi: vi2_channel_error_status:error 24022 frame 100
[ 3243.377086] video4linux video0: frame start syncpt timeout!0
[ 3243.577099] video4linux video0: frame start syncpt timeout!0
[ 3243.776883] video4linux video0: frame start syncpt timeout!0
[ 3243.977230] video4linux video0: frame start syncpt timeout!0
[ 3244.177098] video4linux video0: frame start syncpt timeout!0
[ 3244.377103] video4linux video0: frame start syncpt timeout!0
[ 3244.577105] video4linux video0: frame start syncpt timeout!0
[ 3244.777063] video4linux video0: frame start syncpt timeout!0
[ 3244.977109] video4linux video0: frame start syncpt timeout!0
[ 3245.187258] video4linux video0: frame start syncpt timeout!0
[ 3245.386969] video4linux video0: frame start syncpt timeout!0
[ 3245.397615] vi vi: vi2_channel_error_status:error 20022 frame 112
[ 3245.627239] video4linux video0: frame start syncpt timeout!0
[ 3245.827140] video4linux video0: frame start syncpt timeout!0
[ 3246.027423] video4linux video0: frame start syncpt timeout!0
[ 3246.096767] vi vi: vi2_channel_error_status:error 24022 frame 116
[ 3246.297200] video4linux video0: frame start syncpt timeout!0
[ 3246.329952] vi vi: vi2_channel_error_status:error 24022 frame 118
[ 3246.497219] vi vi: vi2_channel_error_status:error 24022 frame 119
[ 3246.529889] vi vi: vi2_channel_error_status:error 24022 frame 120
[ 3246.563206] vi vi: vi2_channel_error_status:error 24022 frame 121
[ 3246.777081] video4linux video0: frame start syncpt timeout!0
[ 3246.797194] vi vi: vi2_channel_error_status:error 24022 frame 123
[ 3246.863324] vi vi: vi2_channel_error_status:error 24022 frame 124
[ 3246.963838] vi vi: vi2_channel_error_status:error 24022 frame 125
[ 3246.996633] vi vi: vi2_channel_error_status:error 24022 frame 126
[ 3247.164250] vi vi: vi2_channel_error_status:error 24022 frame 127
[ 3247.230068] vi vi: vi2_channel_error_status:error 24022 frame 128
[ 3247.363404] vi vi: vi2_channel_error_status:error 24022 frame 129
[ 3247.463406] vi vi: vi2_channel_error_status:error 24022 frame 130
[ 3247.530072] vi vi: vi2_channel_error_status:error 24022 frame 131
[ 3247.737152] video4linux video0: frame start syncpt timeout!0
[ 3247.763307] vi vi: vi2_channel_error_status:error 24022 frame 133
[ 3247.977145] video4linux video0: frame start syncpt timeout!0
[ 3248.029957] vi vi: vi2_channel_error_status:error 24022 frame 135
[ 3248.237288] video4linux video0: frame start syncpt timeout!0
[ 3248.330082] vi vi: vi2_channel_error_status:error 24022 frame 137
[ 3248.537304] video4linux video0: frame start syncpt timeout!0
[ 3248.563876] vi vi: vi2_channel_error_status:error 24022 frame 139
[ 3248.787109] video4linux video0: frame start syncpt timeout!0
[ 3248.797408] vi vi: vi2_channel_error_status:error 20022 frame 141
[ 3249.047203] video4linux video0: frame start syncpt timeout!0
[ 3249.247123] video4linux video0: frame start syncpt timeout!0
[ 3249.447170] video4linux video0: frame start syncpt timeout!0
[ 3249.647124] video4linux video0: frame start syncpt timeout!0
[ 3249.847173] video4linux video0: frame start syncpt timeout!0
[ 3250.047142] video4linux video0: frame start syncpt timeout!0
[ 3250.247115] video4linux video0: frame start syncpt timeout!0
[ 3250.447211] video4linux video0: frame start syncpt timeout!0
[ 3250.646820] video4linux video0: frame start syncpt timeout!0
[ 3250.847188] video4linux video0: frame start syncpt timeout!0
[ 3251.057070] video4linux video0: frame start syncpt timeout!0
[ 3251.257392] video4linux video0: frame start syncpt timeout!0
[ 3251.466823] video4linux video0: frame start syncpt timeout!0
[ 3251.667497] video4linux video0: frame start syncpt timeout!0
[ 3251.867149] video4linux video0: frame start syncpt timeout!0
[ 3252.077116] video4linux video0: frame start syncpt timeout!0
[ 3252.277637] video4linux video0: frame start syncpt timeout!0
[ 3252.477385] video4linux video0: frame start syncpt timeout!0
[ 3252.687061] video4linux video0: frame start syncpt timeout!0
[ 3252.897355] video4linux video0: frame start syncpt timeout!0
[ 3253.097472] video4linux video0: frame start syncpt timeout!0
[ 3253.298118] video4linux video0: frame start syncpt timeout!0
[ 3253.506910] video4linux video0: frame start syncpt timeout!0
[ 3253.707169] video4linux video0: frame start syncpt timeout!0
[ 3253.907183] video4linux video0: frame start syncpt timeout!0
[ 3254.107188] video4linux video0: frame start syncpt timeout!0
[ 3254.306874] video4linux video0: frame start syncpt timeout!0
[ 3254.507219] video4linux video0: frame start syncpt timeout!0
[ 3254.707195] video4linux video0: frame start syncpt timeout!0
[ 3254.907222] video4linux video0: frame start syncpt timeout!0
[ 3255.106872] video4linux video0: frame start syncpt timeout!0
[ 3255.307234] video4linux video0: frame start syncpt timeout!0
[ 3255.507194] video4linux video0: frame start syncpt timeout!0
[ 3255.707246] video4linux video0: frame start syncpt timeout!0
[ 3255.906893] video4linux video0: frame start syncpt timeout!0
[ 3256.107257] video4linux video0: frame start syncpt timeout!0
[ 3256.127128] tegra_mipi_cal 700e3000.mipical: Mipi cal timeout,val:1, lanes:400000
[ 3256.327182] video4linux video0: frame start syncpt timeout!0
[ 3256.527232] video4linux video0: frame start syncpt timeout!0
[ 3256.737620] video4linux video0: frame start syncpt timeout!0
[ 3256.937591] video4linux video0: frame start syncpt timeout!0
[ 3257.137600] video4linux video0: frame start syncpt timeout!0
[ 3257.337606] video4linux video0: frame start syncpt timeout!0
[ 3257.547307] video4linux video0: frame start syncpt timeout!0
[ 3257.746824] video4linux video0: frame start syncpt timeout!0
[ 3257.947082] video4linux video0: frame start syncpt timeout!0
[ 3258.157474] video4linux video0: frame start syncpt timeout!0
[ 3258.367349] video4linux video0: frame start syncpt timeout!0
[ 3258.577572] video4linux video0: frame start syncpt timeout!0
[ 3258.777473] video4linux video0: frame start syncpt timeout!0
[ 3258.987238] video4linux video0: frame start syncpt timeout!0
[ 3259.187286] video4linux video0: frame start syncpt timeout!0
[ 3259.387144] video4linux video0: frame start syncpt timeout!0
[ 3259.586972] video4linux video0: frame start syncpt timeout!0
[ 3259.787247] video4linux video0: frame start syncpt timeout!0
[ 3259.987279] video4linux video0: frame start syncpt timeout!0
[ 3260.187283] video4linux video0: frame start syncpt timeout!0
[ 3260.397507] video4linux video0: frame start syncpt timeout!0
[ 3260.607254] video4linux video0: frame start syncpt timeout!0
[ 3260.817202] video4linux video0: frame start syncpt timeout!0
[ 3261.017657] video4linux video0: frame start syncpt timeout!0
[ 3261.227255] video4linux video0: frame start syncpt timeout!0
[ 3261.427299] video4linux video0: frame start syncpt timeout!0
[ 3261.637190] video4linux video0: frame start syncpt timeout!0
[ 3261.847434] video4linux video0: frame start syncpt timeout!0
[ 3262.047515] video4linux video0: frame start syncpt timeout!0
[ 3262.257276] video4linux video0: frame start syncpt timeout!0
[ 3262.457313] video4linux video0: frame start syncpt timeout!0
[ 3262.657275] video4linux video0: frame start syncpt timeout!0
[ 3262.867445] video4linux video0: frame start syncpt timeout!0
[ 3263.067449] video4linux video0: frame start syncpt timeout!0
[ 3263.277274] video4linux video0: frame start syncpt timeout!0
[ 3263.487450] video4linux video0: frame start syncpt timeout!0
[ 3263.687499] video4linux video0: frame start syncpt timeout!0
[ 3263.887529] video4linux video0: frame start syncpt timeout!0
[ 3264.087988] video4linux video0: frame start syncpt timeout!0
[ 3264.297250] video4linux video0: frame start syncpt timeout!0
[ 3264.507333] video4linux video0: frame start syncpt timeout!0
[ 3264.717086] video4linux video0: frame start syncpt timeout!0
[ 3264.917202] video4linux video0: frame start syncpt timeout!0
[ 3265.116792] video4linux video0: frame start syncpt timeout!0
[ 3265.316974] video4linux video0: frame start syncpt timeout!0
[ 3265.517075] video4linux video0: frame start syncpt timeout!0
[ 3265.716854] video4linux video0: frame start syncpt timeout!0
[ 3265.917006] video4linux video0: frame start syncpt timeout!0
[ 3266.117183] video4linux video0: frame start syncpt timeout!0
[ 3266.326851] video4linux video0: frame start syncpt timeout!0
[ 3266.527208] video4linux video0: frame start syncpt timeout!0
[ 3266.727312] video4linux video0: frame start syncpt timeout!0
[ 3266.927233] video4linux video0: frame start syncpt timeout!0
[ 3267.127268] video4linux video0: frame start syncpt timeout!0
[ 3267.327538] video4linux video0: frame start syncpt timeout!0
[ 3267.527159] video4linux video0: frame start syncpt timeout!0
External Media
External Media

Thanks,



video126.tar.gz (33.2 MB)

Do you verify the v4l2-ctl to dump more frame and check the raw data is normally?
It’s looks like mipi timing issue cause the timeout.

Hi Shane,

Thank you for your help.

The command you provided worked, as we re-tested it after we fixed our raw data problem.
However, we could not successfully save a mp4 file.
Could you kindly advice a command to save preview into a file?

Below is the command I used. Could save to a file but no image?
gst-launch-1.0 -v v4l2src device=“/dev/video0” ! “video/x-raw,width=1280,height=720, format=(string)I420, framerate=(fraction)30/1” ! nvvidconv ! “video/x-raw(memory:NVMM), format=(string)NV12” ! omxh264enc ! qtmux ! filesink location=V4l2_test_n.mp4 -ev

Below is the error message
[ 7197.107497] ov5693 6-0036: ov5693_s_stream–
[ 7197.117758] vi vi: vi2_channel_error_status:error 4000 frame 0
[ 7197.141062] nvmap_alloc_handle: PID 11236: gst-launch-1.0: WARNING: All NvMap Allocations must have a tag to identify the subsystem allocating memory.Plase pass the tag to the API call NvRmMemHanldeAllocAttr() or relevant.
[ 7221.244647] ov5693 6-0036: @@@@:ov5693_s_stream++

Thanks,

Could you remove the format=(string)NV12 or change it to format=(string)I420.

Hi Shane,

Thank you for your help.

It works.

Thanks,

Hi,

We got serious lag as we tested 1920*1080 preview.
But saved preview files and played the files without lag.
What command is good for 1920 *1080 preview?

Below is the command we used.
gst-launch-1.0 -v v4l2src device=“/dev/video0” ! “video/x-raw,width=1920,height=1080, format=(string)I420” ! nvvidconv ! “video/x-raw(memory:NVMM)” ! nvoverlaysink

Below is the error message.
WARNING: from element /GstPipeline:pipeline0/GstNvOverlaySink-nvoverlaysink:nvoverlaysink-nvoverlaysink0: A lot of buffers are being dropped.
Additional debug info:
gstbasesink.c(2854): gst_base_sink_is_too_late (): /GstPipeline:pipeline0/GstNvOverlaySink-nvoverlaysink:nvoverlaysink-nvoverlaysink0:
There may be a timestamping problem, or this computer is too slow.

Thank you,

Hi linuxsky
Could you try below command.

gst-launch-1.0 -v v4l2src device="/dev/video0" ! "video/x-raw,width=1920,height=1080, format=(string)I420" ! nvvidconv ! "video/x-raw(memory:NVMM)" ! nvoverlaysink sync=false -e

Hi Shane,

Thank you for your help.
The command works.

Could we know when the proper occasion to use “sync=false?”
What’s TX1 preview bandwidth?

Thanks,

  1. Generally I use the sync=false while use the v4l2scr.
  2. I am quite not understand your question. (What’s TX1 preview bandwidth)

Hi Shane,

Thank you for your prompt reply.

Due to we might use multi cameras on TX1, the preview bandwidth questions are as the following:

  1. one camera on TX1, what maximum resolution can TX1 preview? (3840 * 2160 30 frames?)
  2. multi cameras on TX1, what maximum resolution can TX1 preview on each camera? ( (3840 * 2160 30 frames?)

Thanks,

linuxsky,
If you look at TRM, VI has a fomular for maximum resolution support. VI controls frame input from sensor side.
From our software feature, you could see,
H.265
I420, NVMM:I420, NVMM:NV12
3840 x 2160 at
30 fps
Up to 100 Mbps (for H.264 120Mbps)

With multiple cameras, it depends on the combined bandwidth requirement.

Jetpack 2.3.1 officially has 2 camera support and 6 camera support will become official later. However, a few supported cases for your reference,

https://www.leopardimaging.com/TX1_Camera_Kit.html

https://devtalk.nvidia.com/default/topic/975962/jetson-tx1/support-for-six-raspberry-pi-v2-imx219-and-v1-ov5647-cameras-using-isp-multi-camera/

https://devtalk.nvidia.com/default/topic/988775/jetson-tx1/e-con-systems-launches-13mp-mipi-camera-for-nvidia-jetson-tx1-/

Hi Chijen,

Thank you so much for providing the useful information.

Hi linuxsky,

How did you fix the issue, now I meet the fa miler issue.

158.175276] video4linux video0: frame start syncpt timeout!0
[ 158.375328] video4linux video0: frame start syncpt timeout!0
[ 158.575191] video4linux video0: frame start syncpt timeout!0
[ 158.775279] video4linux video0: frame start syncpt timeout!0
[ 158.975161] video4linux video0: frame start syncpt timeout!0
[ 159.175329] video4linux video0: frame start syncpt timeout!0
[ 159.375285] video4linux video0: frame start syncpt timeout!0
[ 159.575286] video4linux video0: frame start syncpt timeout!0
[ 159.774889] video4linux video0: frame start syncpt timeout!0
[ 159.975223] video4linux video0: frame start syncpt timeout!0
[ 160.175164] video4linux video0: frame start syncpt timeout!0
[ 160.375187] video4linux video0: frame start syncpt timeout!0
[ 160.575284] video4linux video0: frame start syncpt timeout!0
[ 160.775218] video4linux video0: frame start syncpt timeout!0
[ 160.974766] video4linux video0: frame start syncpt timeout!0
[ 161.175125] video4linux video0: frame start syncpt timeout!0
[ 161.385432] video4linux video0: frame start syncpt timeout!0
[ 161.585255] video4linux video0: frame start syncpt timeout!0

Hi PanAndy,

Sorry for the late reply.
I assumed your question is related to “the image did not show properly and we got error on host terminal.”

It was caused by our camera module setting problem and CSI signals not stable.
Also, it’s better to make sure the capture resolution size is the same as your camera output resolution.
Basically, please follow the commands which ShaneCCC provided. (If you are adding a YUV with ISP camera module on TX1 R24.2)

There are many NV experts could help you out, also the more information about what you did and what you had would help them to understand your problem more.

I hope it helps.