This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VH-Q1: Codec example based on V4L2

Part Number: TDA4VH-Q1
Other Parts Discussed in Thread: TDA4VM, TDA4VH

Hello TI Support,

I need an example about v4l2 codec based on DCU_ProcessorSDK_Rtos_08_05_00_11_FAW.

I tried videnc-test-app for tda4vm, but I encountered some problems and couldn't continue:

[2023-03-13 17:53:17:040] root@j784s4-evm:~# ./testapp -i image.yuv -o image.h264 -w 1920 -h 1200 -f NV12 -c H264 
[2023-03-13 17:53:17:044] tienc: main Enter
[2023-03-13 17:53:17:044] tienc: Found format NV12
[2023-03-13 17:53:17:044] tienc: Found format H264
[2023-03-13 17:53:17:044] tienc: Opened input file: image.yuv
[2023-03-13 17:53:17:044] tienc: Discovering number of frames in file
[2023-03-13 17:53:17:044] tienc: Found 1 frames in input file
[2023-03-13 17:53:17:044] tienc: Found 1 frames
[2023-03-13 17:53:17:044] tienc: Outputting to image.h264
[2023-03-13 17:53:17:044] open=/dev/video3 
[2023-03-13 17:53:17:044] VIDIOC_QUERYCAP: driver=wave5-enc 
[2023-03-13 17:53:17:044] tienc: No device specified, using /dev/video3
[2023-03-13 17:53:17:044] tienc: query_device Enter
[2023-03-13 17:53:17:044] tienc: Querycaps: fd=0x6 driver=wave5-enc card=wave5-enc bus_info=platform:wave5-enc
[2023-03-13 17:53:17:044] tienc: Querycaps: device_caps=0x4204000 capabilities=0x84204000
[2023-03-13 17:53:17:044] tienc: Calling VIDIOC_ENUM_FMT on CAPTURE
[2023-03-13 17:53:17:044] tienc: desc.index = 0, pixelformat = HEVC, desciption = HEVC
[2023-03-13 17:53:17:044] tienc: desc.index = 1, pixelformat = H264, desciption = H.264
[2023-03-13 17:53:17:044] tienc: Calling VIDIOC_ENUM_FMT on OUTPUT
[2023-03-13 17:53:17:045] tienc: desc.index = 0, pixelformat = YU12, desciption = Planar YUV 4:2:0
[2023-03-13 17:53:17:045] tienc: desc.index = 1, pixelformat = NV12, desciption = Y/CbCr 4:2:0
[2023-03-13 17:53:17:045] tienc: desc.index = 2, pixelformat = NV21, desciption = Y/CrCb 4:2:0
[2023-03-13 17:53:17:046] tienc: desc.index = 3, pixelformat = YM12, desciption = Planar YUV 4:2:0 (N-C)
[2023-03-13 17:53:17:047] tienc: desc.index = 4, pixelformat = NM12, desciption = Y/CbCr 4:2:0 (N-C)
[2023-03-13 17:53:17:047] tienc: desc.index = 5, pixelformat = NM21, desciption = Y/CrCb 4:2:0 (N-C)
[2023-03-13 17:53:17:047] tienc: Calling VIDIOC_ENUM_FRAMESIZES
[2023-03-13 17:53:17:047] tienc: VIDIOC_ENUM_FRAMESIZES got CONTINUOUS
[2023-03-13 17:53:17:047] tienc: frmsizes min_width=0 max_width=0 step_width=1
[2023-03-13 17:53:17:047] tienc: frmsizes min_height=0 max_height=0 step_height=1
[2023-03-13 17:53:17:047] tienc: Calling V4L2 IOCTL VIDIOC_SUBSCRIBE_EVENT
[2023-03-13 17:53:17:047] tienc: Calling V4L2 IOCTL VIDIOC_SUBSCRIBE_EVENT
[2023-03-13 17:53:17:047] tienc: query_ctrls Enter
[2023-03-13 17:53:17:047] query_ctrls Enumerating all non-compound
[2023-03-13 17:53:17:047] query_ctrls Got ctrl.id=0x980001 type=6
[2023-03-13 17:53:17:047] query_ctrls	name=User Controls minimum=0 maximum=0
[2023-03-13 17:53:17:047] query_ctrls	step=0 default_value=0
[2023-03-13 17:53:17:047] query_ctrls	flags=0x000044
[2023-03-13 17:53:17:047] query_ctrls Got ctrl.id=0x980914 type=2
[2023-03-13 17:53:17:047] query_ctrls	name=Horizontal Flip minimum=0 maximum=1
[2023-03-13 17:53:17:047] query_ctrls	step=1 default_value=0
[2023-03-13 17:53:17:047] query_ctrls	flags=00000000
[2023-03-13 17:53:17:048] query_ctrls Got ctrl.id=0x980915 type=2
[2023-03-13 17:53:17:048] query_ctrls	name=Vertical Flip minimum=0 maximum=1
[2023-03-13 17:53:17:048] query_ctrls	step=1 default_value=0
[2023-03-13 17:53:17:048] query_ctrls	flags=00000000
[2023-03-13 17:53:17:048] query_ctrls Got ctrl.id=0x980922 type=1
[2023-03-13 17:53:17:048] query_ctrls	name=Rotate minimum=0 maximum=270
[2023-03-13 17:53:17:048] query_ctrls	step=90 default_value=0
[2023-03-13 17:53:17:048] query_ctrls	flags=0x000400
[2023-03-13 17:53:17:048] query_ctrls Got ctrl.id=0x980928 type=1
[2023-03-13 17:53:17:048] query_ctrls	name=Min Number of Output Buffers minimum=1 maximum=32
[2023-03-13 17:53:17:048] query_ctrls	step=1 default_value=1
[2023-03-13 17:53:17:048] query_ctrls	flags=0x000004
[2023-03-13 17:53:17:048] query_ctrls Got ctrl.id=0x990001 type=6
[2023-03-13 17:53:17:048] query_ctrls	name=Codec Controls minimum=0 maximum=0
[2023-03-13 17:53:17:048] query_ctrls	step=0 default_value=0
[2023-03-13 17:53:17:048] query_ctrls	flags=0x000044
[2023-03-13 17:53:17:048] query_ctrls Got ctrl.id=0x9909de type=1
[2023-03-13 17:53:17:048] query_ctrls	name=VBV Buffer Size minimum=10 maximum=3000
[2023-03-13 17:53:17:048] query_ctrls	step=1 default_value=3000
[2023-03-13 17:53:17:048] query_ctrls	flags=00000000
[2023-03-13 17:53:17:048] query_ctrls Got ctrl.id=0x990a61 type=1
[2023-03-13 17:53:17:048] query_ctrls	name=H264 Minimum QP Value minimum=0 maximum=63
[2023-03-13 17:53:17:048] query_ctrls	step=1 default_value=8
[2023-03-13 17:53:17:048] query_ctrls	flags=00000000
[2023-03-13 17:53:17:048] query_ctrls Got ctrl.id=0x990a62 type=1
[2023-03-13 17:53:17:048] query_ctrls	name=H264 Maximum QP Value minimum=0 maximum=63
[2023-03-13 17:53:17:048] query_ctrls	step=1 default_value=51
[2023-03-13 17:53:17:048] query_ctrls	flags=00000000
[2023-03-13 17:53:17:048] query_ctrls Got ctrl.id=0x990a67 type=3
[2023-03-13 17:53:17:048] query_ctrls	name=H264 Level minimum=0 maximum=15
[2023-03-13 17:53:17:048] query_ctrls	step=1 default_value=0
[2023-03-13 17:53:17:048] query_ctrls	flags=00000000
[2023-03-13 17:53:17:048] query_ctrls Got ctrl.id=0x990a6b type=3
[2023-03-13 17:53:17:048] query_ctrls	name=H264 Profile minimum=0 maximum=7
[2023-03-13 17:53:17:048] query_ctrls	step=1 default_value=0
[2023-03-13 17:53:17:048] query_ctrls	flags=00000000
[2023-03-13 17:53:17:048] query_ctrls Got ctrl.id=0x990b58 type=1
[2023-03-13 17:53:17:048] query_ctrls	name=HEVC Minimum QP Value minimum=0 maximum=63
[2023-03-13 17:53:17:048] query_ctrls	step=1 default_value=8
[2023-03-13 17:53:17:048] query_ctrls	flags=00000000
[2023-03-13 17:53:17:048] query_ctrls Got ctrl.id=0x990b59 type=1
[2023-03-13 17:53:17:049] query_ctrls	name=HEVC Maximum QP Value minimum=0 maximum=63
[2023-03-13 17:53:17:049] query_ctrls	step=1 default_value=51
[2023-03-13 17:53:17:049] query_ctrls	flags=00000000
[2023-03-13 17:53:17:049] query_ctrls Got ctrl.id=0x990b67 type=3
[2023-03-13 17:53:17:049] query_ctrls	name=HEVC Profile minimum=0 maximum=2
[2023-03-13 17:53:17:049] query_ctrls	step=1 default_value=0
[2023-03-13 17:53:17:049] query_ctrls	flags=00000000
[2023-03-13 17:53:17:049] query_ctrls Got ctrl.id=0x990b68 type=3
[2023-03-13 17:53:17:049] query_ctrls	name=HEVC Level minimum=0 maximum=8
[2023-03-13 17:53:17:049] query_ctrls	step=1 default_value=0
[2023-03-13 17:53:17:049] query_ctrls	flags=00000000
[2023-03-13 17:53:17:049] query_ctrls Enumerating all non-compound ended errno=22 Invalid argument
[2023-03-13 17:53:17:049] query_ctrls Enumerating all non-compound ext
[2023-03-13 17:53:17:049] query_ctrls Got ext_ctrl.id=0x980001 type=6
[2023-03-13 17:53:17:049] query_ctrls	name=User Controls minimum=0 maximum=0
[2023-03-13 17:53:17:049] query_ctrls	step=0 default_value=0
[2023-03-13 17:53:17:049] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:049] query_ctrls	flags=00000000
[2023-03-13 17:53:17:049] query_ctrls Got ext_ctrl.id=0x980914 type=2
[2023-03-13 17:53:17:049] query_ctrls	name=Horizontal Flip minimum=0 maximum=1
[2023-03-13 17:53:17:049] query_ctrls	step=1 default_value=0
[2023-03-13 17:53:17:049] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:049] query_ctrls	flags=00000000
[2023-03-13 17:53:17:049] query_ctrls Got ext_ctrl.id=0x980915 type=2
[2023-03-13 17:53:17:049] query_ctrls	name=Vertical Flip minimum=0 maximum=1
[2023-03-13 17:53:17:049] query_ctrls	step=1 default_value=0
[2023-03-13 17:53:17:049] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:049] query_ctrls	flags=00000000
[2023-03-13 17:53:17:050] query_ctrls Got ext_ctrl.id=0x980922 type=1
[2023-03-13 17:53:17:050] query_ctrls	name=Rotate minimum=0 maximum=270
[2023-03-13 17:53:17:050] query_ctrls	step=90 default_value=0
[2023-03-13 17:53:17:050] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:050] query_ctrls	flags=00000000
[2023-03-13 17:53:17:050] query_ctrls Got ext_ctrl.id=0x980928 type=1
[2023-03-13 17:53:17:050] query_ctrls	name=Min Number of Output Buffers minimum=1 maximum=32
[2023-03-13 17:53:17:050] query_ctrls	step=1 default_value=1
[2023-03-13 17:53:17:050] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:050] query_ctrls	flags=00000000
[2023-03-13 17:53:17:050] query_ctrls Got ext_ctrl.id=0x990001 type=6
[2023-03-13 17:53:17:050] query_ctrls	name=Codec Controls minimum=0 maximum=0
[2023-03-13 17:53:17:050] query_ctrls	step=0 default_value=0
[2023-03-13 17:53:17:051] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:051] query_ctrls	flags=00000000
[2023-03-13 17:53:17:051] query_ctrls Got ext_ctrl.id=0x9909de type=1
[2023-03-13 17:53:17:051] query_ctrls	name=VBV Buffer Size minimum=10 maximum=3000
[2023-03-13 17:53:17:051] query_ctrls	step=1 default_value=3000
[2023-03-13 17:53:17:051] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:051] query_ctrls	flags=00000000
[2023-03-13 17:53:17:051] query_ctrls Got ext_ctrl.id=0x990a61 type=1
[2023-03-13 17:53:17:051] query_ctrls	name=H264 Minimum QP Value minimum=0 maximum=63
[2023-03-13 17:53:17:051] query_ctrls	step=1 default_value=8
[2023-03-13 17:53:17:051] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:051] query_ctrls	flags=00000000
[2023-03-13 17:53:17:051] query_ctrls Got ext_ctrl.id=0x990a62 type=1
[2023-03-13 17:53:17:051] query_ctrls	name=H264 Maximum QP Value minimum=0 maximum=63
[2023-03-13 17:53:17:051] query_ctrls	step=1 default_value=51
[2023-03-13 17:53:17:051] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:051] query_ctrls	flags=00000000
[2023-03-13 17:53:17:051] query_ctrls Got ext_ctrl.id=0x990a67 type=3
[2023-03-13 17:53:17:051] query_ctrls	name=H264 Level minimum=0 maximum=15
[2023-03-13 17:53:17:051] query_ctrls	step=1 default_value=0
[2023-03-13 17:53:17:051] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:051] query_ctrls	flags=00000000
[2023-03-13 17:53:17:052] query_ctrls Got ext_ctrl.id=0x990a6b type=3
[2023-03-13 17:53:17:052] query_ctrls	name=H264 Profile minimum=0 maximum=7
[2023-03-13 17:53:17:052] query_ctrls	step=1 default_value=0
[2023-03-13 17:53:17:052] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:052] query_ctrls	flags=00000000
[2023-03-13 17:53:17:052] query_ctrls Got ext_ctrl.id=0x990b58 type=1
[2023-03-13 17:53:17:052] query_ctrls	name=HEVC Minimum QP Value minimum=0 maximum=63
[2023-03-13 17:53:17:052] query_ctrls	step=1 default_value=8
[2023-03-13 17:53:17:052] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:052] query_ctrls	flags=00000000
[2023-03-13 17:53:17:052] query_ctrls Got ext_ctrl.id=0x990b59 type=1
[2023-03-13 17:53:17:052] query_ctrls	name=HEVC Maximum QP Value minimum=0 maximum=63
[2023-03-13 17:53:17:052] query_ctrls	step=1 default_value=51
[2023-03-13 17:53:17:052] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:052] query_ctrls	flags=00000000
[2023-03-13 17:53:17:052] query_ctrls Got ext_ctrl.id=0x990b67 type=3
[2023-03-13 17:53:17:052] query_ctrls	name=HEVC Profile minimum=0 maximum=2
[2023-03-13 17:53:17:052] query_ctrls	step=1 default_value=0
[2023-03-13 17:53:17:052] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:052] query_ctrls	flags=00000000
[2023-03-13 17:53:17:052] query_ctrls Got ext_ctrl.id=0x990b68 type=3
[2023-03-13 17:53:17:052] query_ctrls	name=HEVC Level minimum=0 maximum=8
[2023-03-13 17:53:17:052] query_ctrls	step=1 default_value=0
[2023-03-13 17:53:17:052] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:053] query_ctrls	flags=00000000
[2023-03-13 17:53:17:053] query_ctrls Enumerating all non-compound ext ended errno=22 Invalid argument
[2023-03-13 17:53:17:053] query_ctrls Enumerating all compound ext
[2023-03-13 17:53:17:053] query_ctrls Enumerating all compound ext ended errno=22 Invalid argument
[2023-03-13 17:53:17:053] query_ctrls Enumerating all controls ext
[2023-03-13 17:53:17:053] query_ctrls Got ext_ctrl.id=0x980001 type=6
[2023-03-13 17:53:17:053] query_ctrls	name=User Controls minimum=0 maximum=0
[2023-03-13 17:53:17:053] query_ctrls	step=0 default_value=0
[2023-03-13 17:53:17:053] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:053] query_ctrls	flags=00000000
[2023-03-13 17:53:17:053] query_ctrls Got ext_ctrl.id=0x980914 type=2
[2023-03-13 17:53:17:053] query_ctrls	name=Horizontal Flip minimum=0 maximum=1
[2023-03-13 17:53:17:053] query_ctrls	step=1 default_value=0
[2023-03-13 17:53:17:053] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:053] query_ctrls	flags=00000000
[2023-03-13 17:53:17:053] query_ctrls Got ext_ctrl.id=0x980915 type=2
[2023-03-13 17:53:17:053] query_ctrls	name=Vertical Flip minimum=0 maximum=1
[2023-03-13 17:53:17:053] query_ctrls	step=1 default_value=0
[2023-03-13 17:53:17:053] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:053] query_ctrls	flags=00000000
[2023-03-13 17:53:17:053] query_ctrls Got ext_ctrl.id=0x980922 type=1
[2023-03-13 17:53:17:053] query_ctrls	name=Rotate minimum=0 maximum=270
[2023-03-13 17:53:17:053] query_ctrls	step=90 default_value=0
[2023-03-13 17:53:17:053] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:053] query_ctrls	flags=00000000
[2023-03-13 17:53:17:054] query_ctrls Got ext_ctrl.id=0x980928 type=1
[2023-03-13 17:53:17:054] query_ctrls	name=Min Number of Output Buffers minimum=1 maximum=32
[2023-03-13 17:53:17:054] query_ctrls	step=1 default_value=1
[2023-03-13 17:53:17:054] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:054] query_ctrls	flags=00000000
[2023-03-13 17:53:17:054] query_ctrls Got ext_ctrl.id=0x990001 type=6
[2023-03-13 17:53:17:054] query_ctrls	name=Codec Controls minimum=0 maximum=0
[2023-03-13 17:53:17:054] query_ctrls	step=0 default_value=0
[2023-03-13 17:53:17:054] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:054] query_ctrls	flags=00000000
[2023-03-13 17:53:17:054] query_ctrls Got ext_ctrl.id=0x9909de type=1
[2023-03-13 17:53:17:054] query_ctrls	name=VBV Buffer Size minimum=10 maximum=3000
[2023-03-13 17:53:17:054] query_ctrls	step=1 default_value=3000
[2023-03-13 17:53:17:054] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:054] query_ctrls	flags=00000000
[2023-03-13 17:53:17:056] query_ctrls Got ext_ctrl.id=0x990a61 type=1
[2023-03-13 17:53:17:056] query_ctrls	name=H264 Minimum QP Value minimum=0 maximum=63
[2023-03-13 17:53:17:056] query_ctrls	step=1 default_value=8
[2023-03-13 17:53:17:056] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:056] query_ctrls	flags=00000000
[2023-03-13 17:53:17:056] query_ctrls Got ext_ctrl.id=0x990a62 type=1
[2023-03-13 17:53:17:056] query_ctrls	name=H264 Maximum QP Value minimum=0 maximum=63
[2023-03-13 17:53:17:056] query_ctrls	step=1 default_value=51
[2023-03-13 17:53:17:056] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:056] query_ctrls	flags=00000000
[2023-03-13 17:53:17:056] query_ctrls Got ext_ctrl.id=0x990a67 type=3
[2023-03-13 17:53:17:056] query_ctrls	name=H264 Level minimum=0 maximum=15
[2023-03-13 17:53:17:056] query_ctrls	step=1 default_value=0
[2023-03-13 17:53:17:056] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:057] query_ctrls	flags=00000000
[2023-03-13 17:53:17:057] query_ctrls Got ext_ctrl.id=0x990a6b type=3
[2023-03-13 17:53:17:057] query_ctrls	name=H264 Profile minimum=0 maximum=7
[2023-03-13 17:53:17:057] query_ctrls	step=1 default_value=0
[2023-03-13 17:53:17:057] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:057] query_ctrls	flags=00000000
[2023-03-13 17:53:17:057] query_ctrls Got ext_ctrl.id=0x990b58 type=1
[2023-03-13 17:53:17:057] query_ctrls	name=HEVC Minimum QP Value minimum=0 maximum=63
[2023-03-13 17:53:17:057] query_ctrls	step=1 default_value=8
[2023-03-13 17:53:17:057] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:057] query_ctrls	flags=00000000
[2023-03-13 17:53:17:057] query_ctrls Got ext_ctrl.id=0x990b59 type=1
[2023-03-13 17:53:17:057] query_ctrls	name=HEVC Maximum QP Value minimum=0 maximum=63
[2023-03-13 17:53:17:057] query_ctrls	step=1 default_value=51
[2023-03-13 17:53:17:057] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:057] query_ctrls	flags=00000000
[2023-03-13 17:53:17:057] query_ctrls Got ext_ctrl.id=0x990b67 type=3
[2023-03-13 17:53:17:057] query_ctrls	name=HEVC Profile minimum=0 maximum=2
[2023-03-13 17:53:17:057] query_ctrls	step=1 default_value=0
[2023-03-13 17:53:17:057] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:057] query_ctrls	flags=00000000
[2023-03-13 17:53:17:057] query_ctrls Got ext_ctrl.id=0x990b68 type=3
[2023-03-13 17:53:17:057] query_ctrls	name=HEVC Level minimum=0 maximum=8
[2023-03-13 17:53:17:057] query_ctrls	step=1 default_value=0
[2023-03-13 17:53:17:057] query_ctrls	elem_size=4 elems=1 nr_of_dims=0
[2023-03-13 17:53:17:057] query_ctrls	flags=00000000
[2023-03-13 17:53:17:057] query_ctrls Enumerating all controls ext ended errno=22 Invalid argument
[2023-03-13 17:53:17:058] query_ctrls error querying V4L2_CID_MPEG_VIDEO_GOP_SIZE errno=22 Invalid argument
[2023-03-13 17:53:17:058] query_ctrls error querying V4L2_CID_MPEG_VIDEO_BITRATE errno=22 Invalid argument
[2023-03-13 17:53:17:058] query_ctrls error querying V4L2_CID_MPEG_VIDEO_H264_I_PERIOD errno=22 Invalid argument
[2023-03-13 17:53:17:058] query_ctrls error querying ext V4L2_CID_MPEG_VIDEO_GOP_SIZE errno=22 Invalid argument
[2023-03-13 17:53:17:058] query_ctrls error querying ext V4L2_CID_MPEG_VIDEO_BITRATE errno=22 Invalid argument
[2023-03-13 17:53:17:058] query_ctrls error querying ext V4L2_CID_MPEG_VIDEO_H264_I_PERIOD errno=22 Invalid argument
[2023-03-13 17:53:17:058] get_ctrls error getting VIDIOC_G_EXT_CTRLS errno=22 Invalid argument
[2023-03-13 17:53:17:058] try_ctrls error getting VIDIOC_TRY_EXT_CTRLS error_idx=0 errno=22 Invalid argument
[2023-03-13 17:53:17:058] try_ctrls Successful commands TRYed:
[2023-03-13 17:53:17:058] try_ctrls Testing TRY setting DEF_VAL, EINVAL expected
[2023-03-13 17:53:17:058] try_ctrls error getting VIDIOC_TRY_EXT_CTRLS error_idx=3 errno=22 Invalid argument
[2023-03-13 17:53:17:058] tienc: try_ctrls controls[0] id=0x9909cb got size=0 value=0
[2023-03-13 17:53:17:058] tienc: try_ctrls controls[1] id=0x9909cf got size=0 value=0
[2023-03-13 17:53:17:058] tienc: try_ctrls controls[2] id=0x990a66 got size=0 value=0
[2023-03-13 17:53:17:058] try_ctrls Testing TRY setting controls[0] to invalid, ERANGE expected with idx=0
[2023-03-13 17:53:17:058] try_ctrls error getting VIDIOC_TRY_EXT_CTRLS error_idx=0 errno=22 Invalid argument
[2023-03-13 17:53:17:058] try_ctrls Testing TRY setting controls[1] to invalid, ERANGE expected with idx=1
[2023-03-13 17:53:17:058] try_ctrls error getting VIDIOC_TRY_EXT_CTRLS error_idx=0 errno=22 Invalid argument
[2023-03-13 17:53:17:059] try_ctrls Testing TRY setting controls[2] to invalid, ERANGE expected with idx=2
[2023-03-13 17:53:17:059] try_ctrls error getting VIDIOC_TRY_EXT_CTRLS error_idx=0 errno=22 Invalid argument
[2023-03-13 17:53:17:059] set_ctrls error getting VIDIOC_S_EXT_CTRLS error_idx=3 errno=22 Invalid argument
[2023-03-13 17:53:17:059] set_ctrls S_EXT_CTRLS failed during pre-check
[2023-03-13 17:53:17:059] get_ctrls error getting VIDIOC_G_EXT_CTRLS errno=22 Invalid argument
[2023-03-13 17:53:17:059] tienc: VIDIOC_G_PARM got back framerate 30 / 1 = 30
[2023-03-13 17:53:17:059] tienc: VIDIOC_S_PARM got back framerate 30 / 1 = 30
[2023-03-13 17:53:17:059] tienc: VIDIOC_G_PARM got back framerate 30 / 1 = 30
[2023-03-13 17:53:17:059] tienc: get_format Enter
[2023-03-13 17:53:17:059] tienc: get_format printing returned v4l2_format
[2023-03-13 17:53:17:059] tienc: type = 10
[2023-03-13 17:53:17:059] tienc: width=416 height=240
[2023-03-13 17:53:17:059] tienc: pixelformat=842093913
[2023-03-13 17:53:17:059] tienc: field=1 colorspace=3
[2023-03-13 17:53:17:059] tienc: plane_fmt[0].sizeimage=149760
[2023-03-13 17:53:17:059] tienc: plane_fmt[0].bytesperline=416
[2023-03-13 17:53:17:059] tienc: num_planes=1 flags=0
[2023-03-13 17:53:17:059] tienc: get_format Enter
[2023-03-13 17:53:17:059] tienc: get_format printing returned v4l2_format
[2023-03-13 17:53:17:059] tienc: type = 9
[2023-03-13 17:53:17:059] tienc: width=416 height=240
[2023-03-13 17:53:17:059] tienc: pixelformat=1129727304
[2023-03-13 17:53:17:059] tienc: field=1 colorspace=3
[2023-03-13 17:53:17:059] tienc: plane_fmt[0].sizeimage=99840
[2023-03-13 17:53:17:059] tienc: plane_fmt[0].bytesperline=0
[2023-03-13 17:53:17:059] tienc: num_planes=1 flags=0
[2023-03-13 17:53:17:059] tienc: try_format Enter
[2023-03-13 17:53:17:059] tienc: try_format printing returned v4l2_format
[2023-03-13 17:53:17:059] tienc: type = 10
[2023-03-13 17:53:17:059] tienc: width=1920 height=1200
[2023-03-13 17:53:17:059] tienc: pixelformat=842094158
[2023-03-13 17:53:17:059] tienc: field=1 colorspace=0
[2023-03-13 17:53:17:059] tienc: plane_fmt[0].sizeimage=3456000
[2023-03-13 17:53:17:059] tienc: plane_fmt[0].bytesperline=1920
[2023-03-13 17:53:17:059] tienc: num_planes=1 flags=0
[2023-03-13 17:53:17:059] tienc: try_format Enter
[2023-03-13 17:53:17:059] tienc: try_format printing returned v4l2_format
[2023-03-13 17:53:17:059] tienc: type = 9
[2023-03-13 17:53:17:059] tienc: width=1920 height=1200
[2023-03-13 17:53:17:059] tienc: pixelformat=875967048
[2023-03-13 17:53:17:059] tienc: field=1 colorspace=3
[2023-03-13 17:53:17:059] tienc: plane_fmt[0].sizeimage=2304000
[2023-03-13 17:53:17:059] tienc: plane_fmt[0].bytesperline=0
[2023-03-13 17:53:17:059] tienc: num_planes=1 flags=0
[2023-03-13 17:53:17:059] tienc: set_format Enter
[2023-03-13 17:53:17:060] tienc: set_format printing returned v4l2_format
[2023-03-13 17:53:17:060] tienc: type = 10
[2023-03-13 17:53:17:060] tienc: width=1920 height=1200
[2023-03-13 17:53:17:060] tienc: pixelformat=842094158
[2023-03-13 17:53:17:060] tienc: field=1 colorspace=0
[2023-03-13 17:53:17:060] tienc: plane_fmt[0].sizeimage=3456000
[2023-03-13 17:53:17:060] tienc: plane_fmt[0].bytesperline=1920
[2023-03-13 17:53:17:060] tienc: num_planes=1 flags=0
[2023-03-13 17:53:17:060] tienc: set_format Enter
[2023-03-13 17:53:17:060] tienc: set_format printing returned v4l2_format
[2023-03-13 17:53:17:060] tienc: type = 9
[2023-03-13 17:53:17:063] tienc: width=1920 height=1200
[2023-03-13 17:53:17:063] tienc: pixelformat=875967048
[2023-03-13 17:53:17:063] tienc: field=1 colorspace=0
[2023-03-13 17:53:17:063] tienc: plane_fmt[0].sizeimage=2304000
[2023-03-13 17:53:17:063] tienc: plane_fmt[0].bytesperline=0
[2023-03-13 17:53:17:064] tienc: num_planes=1 flags=0
[2023-03-13 17:53:17:064] tienc: get_format Enter
[2023-03-13 17:53:17:064] tienc: get_format printing returned v4l2_format
[2023-03-13 17:53:17:064] tienc: type = 10
[2023-03-13 17:53:17:064] tienc: width=1920 height=1200
[2023-03-13 17:53:17:064] tienc: pixelformat=842094158
[2023-03-13 17:53:17:064] tienc: field=1 colorspace=0
[2023-03-13 17:53:17:064] tienc: plane_fmt[0].sizeimage=3456000
[2023-03-13 17:53:17:064] tienc: plane_fmt[0].bytesperline=1920
[2023-03-13 17:53:17:064] tienc: num_planes=1 flags=0
[2023-03-13 17:53:17:064] tienc: get_format Enter
[2023-03-13 17:53:17:064] tienc: get_format printing returned v4l2_format
[2023-03-13 17:53:17:064] tienc: type = 9
[2023-03-13 17:53:17:064] tienc: width=1920 height=1200
[2023-03-13 17:53:17:064] tienc: pixelformat=875967048
[2023-03-13 17:53:17:064] tienc: field=1 colorspace=0
[2023-03-13 17:53:17:064] tienc: plane_fmt[0].sizeimage=2304000
[2023-03-13 17:53:17:064] tienc: plane_fmt[0].bytesperline=0
[2023-03-13 17:53:17:064] tienc: num_planes=1 flags=0
[2023-03-13 17:53:17:064] tienc: alloc_bufs Enter
[2023-03-13 17:53:17:064] tienc: After VIDIOC_REQBUFS OUTPUT getting buf_cnt 5
[2023-03-13 17:53:17:064] tienc: QUERYBUF OUTPUT: buffer 0 length (planes)=1 length=3456000 offset=0
[2023-03-13 17:53:17:064] tienc: After mmap, buffers[0].mapped = 0x0xffffb05e0000
[2023-03-13 17:53:17:064] tienc: QUERYBUF OUTPUT: buffer 1 length (planes)=1 length=3456000 offset=0
[2023-03-13 17:53:17:068] tienc: After mmap, buffers[1].mapped = 0x0xffffb0294000
[2023-03-13 17:53:17:068] tienc: QUERYBUF OUTPUT: buffer 2 length (planes)=1 length=3456000 offset=0
[2023-03-13 17:53:17:068] tienc: After mmap, buffers[2].mapped = 0x0xffffaff48000
[2023-03-13 17:53:17:068] tienc: QUERYBUF OUTPUT: buffer 3 length (planes)=1 length=3456000 offset=0
[2023-03-13 17:53:17:068] tienc: After mmap, buffers[3].mapped = 0x0xffffafbfc000
[2023-03-13 17:53:17:068] tienc: QUERYBUF OUTPUT: buffer 4 length (planes)=1 length=3456000 offset=0
[2023-03-13 17:53:17:068] tienc: After mmap, buffers[4].mapped = 0x0xffffaf8b0000
[2023-03-13 17:53:17:068] tienc: alloc_bufs Enter
[2023-03-13 17:53:17:070] tienc: After VIDIOC_REQBUFS CAPTURE getting buf_cnt 5
[2023-03-13 17:53:17:070] tienc: QUERYBUF CAPTURE: buffer 0 length (planes)=1 length=2304000 offset=0
[2023-03-13 17:53:17:070] tienc: After mmap, buffers[0].mapped = 0x0xffffaf67d000
[2023-03-13 17:53:17:070] tienc: QUERYBUF CAPTURE: buffer 1 length (planes)=1 length=2304000 offset=0
[2023-03-13 17:53:17:070] tienc: After mmap, buffers[1].mapped = 0x0xffffaf44a000
[2023-03-13 17:53:17:070] tienc: QUERYBUF CAPTURE: buffer 2 length (planes)=1 length=2304000 offset=0
[2023-03-13 17:53:17:070] tienc: After mmap, buffers[2].mapped = 0x0xffffaf217000
[2023-03-13 17:53:17:070] tienc: QUERYBUF CAPTURE: buffer 3 length (planes)=1 length=2304000 offset=0
[2023-03-13 17:53:17:070] tienc: After mmap, buffers[3].mapped = 0x0xffffaefe4000
[2023-03-13 17:53:17:070] tienc: QUERYBUF CAPTURE: buffer 4 length (planes)=1 length=2304000 offset=0
[2023-03-13 17:53:17:070] tienc: After mmap, buffers[4].mapped = 0x0xffffaedb1000
[2023-03-13 17:53:17:071] tienc: streaming_loop Enter
[2023-03-13 17:53:17:071] tienc: All source frames send 1
[2023-03-13 17:53:17:071] tienc: All source frames send 1
[2023-03-13 17:53:17:071] tienc: All source frames send 1
[2023-03-13 17:53:17:071] tienc: All source frames send 1
[2023-03-13 17:53:17:071] tienc: All source frames send 1
[2023-03-13 17:53:17:071] tienc: CAPTURE QBUF buffer 0 success
[2023-03-13 17:53:17:071] tienc: CAPTURE QBUF buffer 1 success
[2023-03-13 17:53:17:071] tienc: CAPTURE QBUF buffer 2 success
[2023-03-13 17:53:17:071] tienc: CAPTURE QBUF buffer 3 success
[2023-03-13 17:53:17:071] tienc: CAPTURE QBUF buffer 4 success
[2023-03-13 17:53:17:071] tienc: OUTPUT VIDIOC_STREAMON succeeded
[2023-03-13 17:53:17:071] tienc: CAPTURE VIDIOC_STREAMON succeeded
[2023-03-13 17:53:19:230] 
[2023-03-13 18:37:47:935]