Where should i modify these values? There is 3 variants
: in dts
active_w = “1312”;
active_h = “976”;
: in tlbs
static const struct camera_common_frmfmt imx224_frmfmt = {
{{1312, 976}, imx224_30_fr, 1, 0, IMX224_MODE_1280X960},
{{1312, 976}, imx224_60_fr, 1, 0, IMX224_MODE_1280X960},
};
: in driver
#define IMX224_DEFAULT_WIDTH 1312
#define IMX224_DEFAULT_HEIGHT 977
if i put in driver IMX224_DEFAULT_HEIGHT to 976 i will get
[ 374.420179] tegra-vi4 15700000.vi: Status: 4 channel:00 frame:0008
[ 374.426690] tegra-vi4 15700000.vi: timestamp sof 377187982048 eof 377188004032 data 0x00000100
[ 374.436268] tegra-vi4 15700000.vi: capture_id 3 stream 2 vchan 0
[ 375.401112] tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
[ 376.405089] tegra-vi4 15700000.vi: ATOMP_FE syncpt timeout!
if i put in driver IMX224_DEFAULT_HEIGHT to 978 i will get
tegra-vi4 15700000.vi: Status: 7 channel:00 frame:0008
tegra-vi4 15700000.vi: timestamp sof 107324382848 eof 107353987488 data 0x00000001
tegra-vi4 15700000.vi: capture_id 1 stream 2 vchan 0
tegra-vi4 15700000.vi: PXL_SOF syncpt timeout! err = -11
tegra-vi4 15700000.vi: ATOMP_FE syncpt timeout!
I left 977 in driver and changed it in tlbs and dtbs
no picture from gstreamer
gst-launch-1.0 nvcamerasrc num-buffers=200 sensor-id=0 ! ‘video/x-raw(memory:NVMM),width=1312, height=976, framerate=30/1, format=NV12’ ! omxh264enc ! qtmux ! filesink location=test.mp4 -ev
1
312 x 976 FR=30.000000 CF=0x1109208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10
1280 x 960 FR=60.000000 CF=0x1109208a10 SensorModeType=4 CSIPixelBitDepth=10 DynPixelBitDepth=10
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
NvCameraSrc: Trying To Set Default Camera Resolution. Selected sensorModeIndex = 0 WxH = 1312x976 FrameRate = 30.000000 ...
/GstPipeline:pipeline0/GstNvCameraSrc:nvcamerasrc0.GstPad:src: caps = "video/x-raw\(memory:NVMM\)\,\ width\=\(int\)1312\,\ height\=\(int\)976\,\ format\=\(string\)NV12\,\ framerate\=\(fraction\)30/1"
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = "video/x-raw\(memory:NVMM\)\,\ width\=\(int\)1312\,\ height\=\(int\)976\,\ format\=\(string\)NV12\,\ framerate\=\(fraction\)30/1"
Framerate set to : 30 at NvxVideoEncoderSetParameterNvMMLiteOpen : Block : BlockType = 4
===== MSENC =====
NvMMLiteBlockCreate : Block : BlockType = 4
/GstPipeline:pipeline0/GstOMXH264Enc-omxh264enc:omxh264enc-omxh264enc0.GstPad:sink: caps = "video/x-raw\(memory:NVMM\)\,\ width\=\(int\)1312\,\ height\=\(int\)976\,\ format\=\(string\)NV12\,\ framerate\=\(fraction\)30/1"
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = "video/x-raw\(memory:NVMM\)\,\ width\=\(int\)1312\,\ height\=\(int\)976\,\ format\=\(string\)NV12\,\ framerate\=\(fraction\)30/1"
/GstPipeline:pipeline0/GstOMXH264Enc-omxh264enc:omxh264enc-omxh264enc0.GstPad:src: caps = "video/x-h264\,\ alignment\=\(string\)au\,\ stream-format\=\(string\)avc\,\ width\=\(int\)1312\,\ height\=\(int\)976\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1"
/GstPipeline:pipeline0/GstOMXH264Enc-omxh264enc:omxh264enc-omxh264enc0.GstPad:src: caps = "video/x-h264\,\ alignment\=\(string\)au\,\ stream-format\=\(string\)avc\,\ width\=\(int\)1312\,\ height\=\(int\)976\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1\,\ codec_data\=\(buffer\)014240150301000a6742403495a01481ee4001000468ce3c80"
/GstPipeline:pipeline0/GstQTMux:qtmux0.GstPad:video_0: caps = "video/x-h264\,\ alignment\=\(string\)au\,\ stream-format\=\(string\)avc\,\ width\=\(int\)1312\,\ height\=\(int\)976\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ framerate\=\(fraction\)30/1\,\ codec_data\=\(buffer\)014240150301000a6742403495a01481ee4001000468ce3c80"
/GstPipeline:pipeline0/GstQTMux:qtmux0.GstPad:src: caps = "video/quicktime\,\ variant\=\(string\)apple"
/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = "video/quicktime\,\ variant\=\(string\)apple"
/GstPipeline:pipeline0/GstQTMux:qtmux0.GstPad:src: caps = "video/quicktime\,\ variant\=\(string\)apple\,\ streamheader\=\(buffer\)\<\ 00000df76d6f6f760000006c6d76686400000000d68f82dfd68f82df0000070800000c10000100000100000000000000000000000001000000000000000000000000000000010000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000200000d467472616b0000005c746b686400000007d68f82dfd68f82df000000010000000000000c10000000000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000400000000520000003d0000000000ca56d646961000000206d64686400000000d68f82dfd68f82df00000bb80000141c000000000000002d68646c72000000006d686c72766964650000000000000000000000000c566964656f48616e646c657200000c506d696e6600000014766d68640000000100408000800080000000002168646c720000000064686c72616c6973000000000000000000000000000000002464696e660000001c6472656600000000000000010000000c616c69730000000100000bef7374626c0000009b7374736400000000000000010000008b61766331000000000000000100000000000000000000020000000200052003d0004800000048000000000000000100000000000000000000000000000000000000000000000000000000000000000018ffff0000002161766343014240150301000a6742403495a01481ee4001000468ce3c800000001462747274000000000000000000020ba5000004a07374747300000000000000920000000100001065000000010000000f0000000100000003000000010000000000000001000000020000000200000000000000010000001a000000020000000600000001000000000000000200000005000000020000000400000001000000020000000100000007000000010000000800000001000000060000000100000004000000010000000500000001000000040000000200000003000000010000000800000001000000060000000100000001000000010000000a0000000100000000000000010000000700000001000000010000000200000004000000010000000300000001000000050000000300000006000000020000000500000002000000040000000100000005000000010000000400000001000000030000000100000005000000010000000400000001000000050000000100000004000000010000000600000003000000050000000100000004000000010000000500000002000000040000000200000005000000010000000600000001000000040000000100000003000000010000000600000001000000050000000100000004000000010000000500000001000000060000000200000005000000010000000400000001000000050000000200000004000000010000000500000001000000040000000100000005000000010000000600000001000000050000000100000004000000020000000500000002000000040000000100000005000000010000000400000002000000050000000100000004000000010000000700000004000000040000000100000006000000010000000500000001000000040000000200000006000000020000000500000001000000040000000200000005000000020000000400000002000000050000000100000004000000030000000500000001000000040000000300000005000000010000000400000002000000050000000100000004000000030000000500000001000000040000000200000005000000010000000400000001000000070000000100000005000000010000000400000004000000050000000100000004000000010000000500000001000000040000000100000006000000010000000400000001000000050000000200000004000000010000000600000001000000030000000100000006000000040000000500000001000000040000000100000005000000010000000400000001000000080000000100000002000000010000000500000001000000040000000100000005000000010000000700000002000000050000000100000004000000050000000500000001000000030000000300000005000000010000000400000001000000060000000100000005000000010000000400000003000000050000000100000004000000020000000500000001000000040000000100000005000000010000000600000001000000040000000100000005000000010000000400000001000000050000000200000006000000010000000500000001000000040000000100000005000000010000000400000002000000060000000100000004000000010000000500000001000000030000000100000004000000010000000600000001000000000000002c737473730000000000000007000000010000001f0000003d0000005b0000007900000097000000b50000001c737473630000000000000001000000010000000100000001000003347374737a0000000000000000000000c800000ec10000000c0000000c0000000c0000000c0000000c0000000b0000000c0000000c0000000c0000000b0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c00000ec30000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c00000ec10000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c00000ec10000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c00000ec10000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c00000ec10000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c00000ec10000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c000003307374636f00000000000000c80000002400000ee500000ef100000efd00000f0900000f1500000f2100000f2c00000f3800000f4400000f5000000f5b00000f6700000f7300000f7f00000f8b00000f9700000fa300000faf00000fbb00000fc700000fd300000fdf00000feb00000ff7000010030000100f0000101b00001027000010330000103f00001f0200001f0e00001f1a00001f2600001f3200001f3e00001f4a00001f5600001f6200001f6e00001f7a00001f8600001f9200001f9e00001faa00001fb600001fc200001fce00001fda00001fe600001ff200001ffe0000200a00002016000020220000202e0000203a00002046000020520000205e00002f1f00002f2b00002f3700002f4300002f4f00002f5b00002f6700002f7300002f7f00002f8b00002f9700002fa300002faf00002fbb00002fc700002fd300002fdf00002feb00002ff7000030030000300f0000301b00003027000030330000303f0000304b00003057000030630000306f0000307b00003f3c00003f4800003f5400003f6000003f6c00003f7800003f8400003f9000003f9c00003fa800003fb400003fc000003fcc00003fd800003fe400003ff000003ffc0000400800004014000040200000402c0000403800004044000040500000405c0000406800004074000040800000408c0000409800004f5900004f6500004f7100004f7d00004f8900004f9500004fa100004fad00004fb900004fc500004fd100004fdd00004fe900004ff5000050010000500d0000501900005025000050310000503d0000504900005055000050610000506d0000507900005085000050910000509d000050a9000050b500005f7600005f8200005f8e00005f9a00005fa600005fb200005fbe00005fca00005fd600005fe200005fee00005ffa00006006000060120000601e0000602a00006036000060420000604e0000605a00006066000060720000607e0000608a00006096000060a2000060ae000060ba000060c6000060d200006f9300006f9f00006fab00006fb700006fc300006fcf00006fdb00006fe700006ff300006fff0000700b00007017000070230000702f0000703b00007047000070530000705f0000706b0000003d75647461000000356d657461000000000000002168646c72000000006d686c726d6469720000000000000000000000000000000008696c73740000003d75647461000000356d657461000000000000002168646c72000000006d686c726d6469720000000000000000000000000000000008696c7374\ \>"
/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = "video/quicktime\,\ variant\=\(string\)apple\,\ streamheader\=\(buffer\)\<\ 00000df76d6f6f760000006c6d76686400000000d68f82dfd68f82df0000070800000c10000100000100000000000000000000000001000000000000000000000000000000010000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000200000d467472616b0000005c746b686400000007d68f82dfd68f82df000000010000000000000c10000000000000000000000000000000000001000000000000000000000000000000010000000000000000000000000000400000000520000003d0000000000ca56d646961000000206d64686400000000d68f82dfd68f82df00000bb80000141c000000000000002d68646c72000000006d686c72766964650000000000000000000000000c566964656f48616e646c657200000c506d696e6600000014766d68640000000100408000800080000000002168646c720000000064686c72616c6973000000000000000000000000000000002464696e660000001c6472656600000000000000010000000c616c69730000000100000bef7374626c0000009b7374736400000000000000010000008b61766331000000000000000100000000000000000000020000000200052003d0004800000048000000000000000100000000000000000000000000000000000000000000000000000000000000000018ffff0000002161766343014240150301000a6742403495a01481ee4001000468ce3c800000001462747274000000000000000000020ba5000004a07374747300000000000000920000000100001065000000010000000f0000000100000003000000010000000000000001000000020000000200000000000000010000001a000000020000000600000001000000000000000200000005000000020000000400000001000000020000000100000007000000010000000800000001000000060000000100000004000000010000000500000001000000040000000200000003000000010000000800000001000000060000000100000001000000010000000a0000000100000000000000010000000700000001000000010000000200000004000000010000000300000001000000050000000300000006000000020000000500000002000000040000000100000005000000010000000400000001000000030000000100000005000000010000000400000001000000050000000100000004000000010000000600000003000000050000000100000004000000010000000500000002000000040000000200000005000000010000000600000001000000040000000100000003000000010000000600000001000000050000000100000004000000010000000500000001000000060000000200000005000000010000000400000001000000050000000200000004000000010000000500000001000000040000000100000005000000010000000600000001000000050000000100000004000000020000000500000002000000040000000100000005000000010000000400000002000000050000000100000004000000010000000700000004000000040000000100000006000000010000000500000001000000040000000200000006000000020000000500000001000000040000000200000005000000020000000400000002000000050000000100000004000000030000000500000001000000040000000300000005000000010000000400000002000000050000000100000004000000030000000500000001000000040000000200000005000000010000000400000001000000070000000100000005000000010000000400000004000000050000000100000004000000010000000500000001000000040000000100000006000000010000000400000001000000050000000200000004000000010000000600000001000000030000000100000006000000040000000500000001000000040000000100000005000000010000000400000001000000080000000100000002000000010000000500000001000000040000000100000005000000010000000700000002000000050000000100000004000000050000000500000001000000030000000300000005000000010000000400000001000000060000000100000005000000010000000400000003000000050000000100000004000000020000000500000001000000040000000100000005000000010000000600000001000000040000000100000005000000010000000400000001000000050000000200000006000000010000000500000001000000040000000100000005000000010000000400000002000000060000000100000004000000010000000500000001000000030000000100000004000000010000000600000001000000000000002c737473730000000000000007000000010000001f0000003d0000005b0000007900000097000000b50000001c737473630000000000000001000000010000000100000001000003347374737a0000000000000000000000c800000ec10000000c0000000c0000000c0000000c0000000c0000000b0000000c0000000c0000000c0000000b0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c00000ec30000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c00000ec10000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c00000ec10000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c00000ec10000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c00000ec10000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c00000ec10000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c0000000c000003307374636f00000000000000c80000002400000ee500000ef100000efd00000f0900000f1500000f2100000f2c00000f3800000f4400000f5000000f5b00000f6700000f7300000f7f00000f8b00000f9700000fa300000faf00000fbb00000fc700000fd300000fdf00000feb00000ff7000010030000100f0000101b00001027000010330000103f00001f0200001f0e00001f1a00001f2600001f3200001f3e00001f4a00001f5600001f6200001f6e00001f7a00001f8600001f9200001f9e00001faa00001fb600001fc200001fce00001fda00001fe600001ff200001ffe0000200a00002016000020220000202e0000203a00002046000020520000205e00002f1f00002f2b00002f3700002f4300002f4f00002f5b00002f6700002f7300002f7f00002f8b00002f9700002fa300002faf00002fbb00002fc700002fd300002fdf00002feb00002ff7000030030000300f0000301b00003027000030330000303f0000304b00003057000030630000306f0000307b00003f3c00003f4800003f5400003f6000003f6c00003f7800003f8400003f9000003f9c00003fa800003fb400003fc000003fcc00003fd800003fe400003ff000003ffc0000400800004014000040200000402c0000403800004044000040500000405c0000406800004074000040800000408c0000409800004f5900004f6500004f7100004f7d00004f8900004f9500004fa100004fad00004fb900004fc500004fd100004fdd00004fe900004ff5000050010000500d0000501900005025000050310000503d0000504900005055000050610000506d0000507900005085000050910000509d000050a9000050b500005f7600005f8200005f8e00005f9a00005fa600005fb200005fbe00005fca00005fd600005fe200005fee00005ffa00006006000060120000601e0000602a00006036000060420000604e0000605a00006066000060720000607e0000608a00006096000060a2000060ae000060ba000060c6000060d200006f9300006f9f00006fab00006fb700006fc300006fcf00006fdb00006fe700006ff300006fff0000700b00007017000070230000702f0000703b00007047000070530000705f0000706b0000003d75647461000000356d657461000000000000002168646c72000000006d686c726d6469720000000000000000000000000000000008696c73740000003d75647461000000356d657461000000000000002168646c72000000006d686c726d6469720000000000000000000000000000000008696c7374\ \>"
Got EOS from element "pipeline0".
Execution ended after 0:00:02.529158592
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
^C
I hangs in the end
i cant start it second time
Setting pipeline to PAUSED ...
Socket read error. Camera Daemon stopped functioning.....
gst_nvcamera_open() failed ret=0
ERROR: Pipeline doesn't want to pause.
ERROR: from element /GstPipeline:pipeline0/GstNvCameraSrc:nvcamerasrc0: GStreamer error: state change failed and some element failed to post a proper error message with the reason for the failure.
Additional debug info:
gstbasesrc.c(3354): gst_base_src_start (): /GstPipeline:pipeline0/GstNvCameraSrc:nvcamerasrc0:
Failed to start
Setting pipeline to NULL ...
Freeing pipeline ...
Give me the manual where to change and where to leave 977 if it needed?
Should i increase or decrease max lines registers , because i use recommended parameter for this mode?