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.

TDA4VM: J721S2 V4L2 H264 encoder issue

Part Number: TDA4VM
Other Parts Discussed in Thread: TDA4VL,

We use J721S2 and SDK8.4

We use encoder sample code.

We set driver_name ="wave5-enc".

We want to encode NV12 video to H264.

But check frame rate function will fail.(VIDIOC_ENUM_FRAMEINTERVALS failed )

How can i solve the issue?

This is fail log:

./tienc.out -i /run/media/sda1/2022_11_08_15_35_55_Data_0_ch6.yuv -h 1920 -w 1080 -f NV12 -c H264
tienc: main Enter
tienc: Found format NV12
tienc: Found format H264
tienc: Opened input file: /run/media/sda1/2022_11_08_15_35_55_Data_0_ch6.yuv
tienc: Discovering number of frames in file
tienc: Found 141 frames in input file
tienc: Found 141 frames
FD = 5
VIDIOC_QUERYCAP start
VIDIOC_QUERYCAP End
strcmp start wave5-enc
tienc: No device specified, using /dev/video1
tienc: query_device Enter
tienc: Querycaps: fd=0x5 driver=wave5-enc card=wave5-enc bus_info=platform:wave5-enc
tienc: Querycaps: device_caps=0x4204000 capabilities=0x84204000
tienc: Calling VIDIOC_ENUM_FMT on CAPTURE
tienc: desc.index = 0, pixelformat = HEVC, desciption = HEVC
tienc: desc.index = 1, pixelformat = H264, desciption = H.264
tienc: Calling VIDIOC_ENUM_FMT on OUTPUT
tienc: desc.index = 0, pixelformat = YU12, desciption = Planar YUV 4:2:0
tienc: desc.index = 1, pixelformat = NV12, desciption = Y/CbCr 4:2:0
tienc: desc.index = 2, pixelformat = NV21, desciption = Y/CrCb 4:2:0
tienc: desc.index = 3, pixelformat = YM12, desciption = Planar YUV 4:2:0 (N-C)
tienc: desc.index = 4, pixelformat = NM12, desciption = Y/CbCr 4:2:0 (N-C)
tienc: desc.index = 5, pixelformat = NM21, desciption = Y/CrCb 4:2:0 (N-C)
tienc: Calling VIDIOC_ENUM_FRAMESIZES
tienc: VIDIOC_ENUM_FRAMESIZES got CONTINUOUS
tienc: frmsizes min_width=0 max_width=0 step_width=1
tienc: frmsizes min_height=0 max_height=0 step_height=1
tienc: Calling VIDIOC_ENUM_FRAMEINTERVALS
VIDIOC_ENUM_FRAMEINTERVALS failed 25 Inappropriate ioctl for device
Requested frame interval not found, exiting