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.
Tool/software:
Hi, experts,
we want to use v4l2 to encode,is there any demo on AM62p(sdk10)?
execute command: v4l2-compliance -d 1 , there is a fault :
v4l2-compliance 1.26.1-5142, 64 bits, 64-bit time_t
v4l2-compliance SHA: 4aee01a02792 2023-12-12 21:40:38
Compliance test for wave5-enc device /dev/video1:
Driver Info:
Driver name : wave5-enc
Card type : wave5-enc
Bus info : platform:30210000.video-codec
Driver version : 6.6.32
Capabilities : 0x84204000
Video Memory-to-Mem[ 64.870342] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000008
ory Multiplanar
Streaming
Extended Pix Format
Device Ca[ 64.880753] Mem abort info:
pabilities
Device Caps : 0x04204000
Video Memory-to-Me[ 64.889106] ESR = 0x0000000096000006
mory Multiplanar
Streaming
Extended Pix Format
Detected [ 64.898395] EC = 0x25: DABT (current EL), IL = 32 bits
Stateful Encoder
Required ioctls:
test VIDIOC_QUERYCAP: 64.909242] SET = 0, FnV = 0
2mOK
test invalid ioctls: OK
Allow for multipl[ 64.917835] EA = 0, S1PTW = 0
e opens:
test second /dev/video1 open: OK
test VIDI[ 64.926522] FSC = 0x06: level 2 translation fault
OC_QUERYCAP: OK
test VIDIOC_G/S_PRIORITY: OK[ 64.936932] Data abort info:
test for unlimited opens: OK
Debug ioctls:
test[ 64.945353] ISV = 0, ISS = 0x00000006, ISS2 = 0x00000000
VIDIOC_DBG_G/S_REGISTER: OK (Not Supported)
test VID[ 64.956374] CM = 0, WnR = 0, TnD = 0, TagAccess = 0
IOC_LOG_STATUS: OK (Not Supported)
Input ioctls:
t[ 64.966964] GCS = 0, Overlay = 0, DirtyBit = 0, Xs = 0
est VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported[ 64.977810] user pgtable: 4k pages, 48-bit VAs, pgdp=0000000090791000
)
test VIDIOC_G/S_FREQUENCY: OK (Not Supported)
tes[ 64.989792] [0000000000000008] pgd=080000009040e003, p4d=080000009040e003, pud=080000008e842003, pmd=0000000000000000
t VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported)
test VIDI[ 65.005922] Internal error: Oops: 0000000096000006 [#1] PREEMPT SMP
[ 65.017697] Modules linked in: ox01g10 max96701 cdns_csi2rx rpmsg_ctrl rpmsg_char crct10dif_ce pvrsrvkm(O) display_connector rti_wdt wave5 j721e_csi2rx k3_j72xx_bandgap rtc_ti_k3 max96724 tidss v4l2_mem2mem videobuf2_dma_contig ti_k3_r5_remoteproc videobuf2_v4l2 v4l2_fwnode drm_dma_helper videobuf2_memops videobuf2_common v4l2_async sa2ul drm_kms_helper videodev authenc mcrc64 mc cdns_dphy_rx i2c_atr cfg80211 rfkill cryptodev(O) fuse drm drm_panel_orientation_quirks backlight ipv6
[ 65.060298] CPU: 0 PID: 954 Comm: v4l2-compliance Tainted: G O 6.6.32-g6de6e418c80e-dirty #4
[ 65.070106] Hardware name: Texas Instruments AM62P5 SK (DT)
[ 65.075663] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 65.082610] pc : wave5_vpu_enc_try_fmt_cap+0x4c/0xf4 [wave5]
[ 65.088300] lr : wave5_vpu_enc_try_fmt_cap+0x38/0xf4 [wave5]
[ 65.093963] sp : ffff8000823f3b60
[ 65.097265] x29: ffff8000823f3b70 x28: ffff000014842010 x27: 0000000000000000
[ 65.104388] x26: ffff000010ccb130 x25: ffff0000039d2d00 x24: 0000000000000000
[ 65.111511] x23: ffff00001049f880 x22: ffff000014842010 x21: ffff8000796b61d8
[ 65.118633] x20: ffff000014842000 x19: ffff00001273ec00 x18: 0000000000000000
[ 65.125755] x17: 0000000000000000 x16: 0000000000000000 x15: 0000ffffc6af6660
[ 65.132877] x14: ffffffffffffffff x13: ffffffffffffffff x12: ffffffffffffffff
[ 65.139999] x11: ffffffffffffffff x10: ffffffffffffffff x9 : 0000000000000000
[ 65.147121] x8 : ffff00001273eccf x7 : 0000000000000000 x6 : ffff00001273ec00
[ 65.154244] x5 : 00000000fffffffe x4 : ffff8000796b6298 x3 : 00000000000000f0
[ 65.161367] x2 : 00000000000001a0 x1 : 0000000000000000 x0 : 0000000000000000
[ 65.168490] Call trace:
[ 65.170927] wave5_vpu_enc_try_fmt_cap+0x4c/0xf4 [wave5]
[ 65.176246] v4l_try_fmt+0x324/0x3f0 [videodev]
[ 65.180863] __video_do_ioctl+0x330/0x3fc [videodev]
[ 65.185865] video_usercopy+0x2c8/0x658 [videodev]
[ 65.190696] video_ioctl2+0x18/0x24 [videodev]
[ 65.195180] v4l2_ioctl+0x40/0x60 [videodev]
[ 65.199488] __arm64_sys_ioctl+0xac/0xf0
[ 65.203410] invoke_syscall+0x48/0x114
[ 65.207153] el0_svc_common.constprop.0+0xc0/0xe0
[ 65.211848] do_el0_svc+0x1c/0x28
[ 65.215154] el0_svc+0x2c/0x84
[ 65.218206] el0t_64_sync_handler+0x120/0x12c
[ 65.222555] el0t_64_sync+0x190/0x194
[ 65.226214] Code: b9400001 29410e62 b9001261 52800001 (f9400404)
[ 65.232292] ---[ end trace 0000000000000000 ]---
OC_ENUMAUDIO: OK (Not Supported)
test VIDIOC_G/S/ENUMINPUT: OK (Not Supported)
test VIDIOC_G/S_AUDIO: OK (Not Supported)
Inputs: 0 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:
test VIDIOC_ENUM/G/S/QUERY_STD: 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: 46 Private Controls: 0
Format ioctls:
test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK
test VIDIOC_G/S_PARM: OK
test VIDIOC_G_FBUF: OK (Not Supported)
test VIDIOC_G_FMT: OK
Segmentation fault
Hi,
Are you seeing these errors with SDK relased 10.0 image?
If not, can you check if the Linux kernel you are testing with has the below patch:
Beat Regards,
Suren
Hi Suren,
so, we also can use ffmpeg to encode h265, the ffmpeg also can use hardware encode accelerator to encode, is that right? is there any encode demo?
Best Regards,
Hi,
I apologize, currently the ffmpeg plugin only works for decoding. Encoding is not supported.
Best Regards,
Suren
Hi,
so currently, only the Gstreamer can support encoding, we also can't use V4l2 interface to encoding, is that right?
Best Regards,
Hi,
GStreamer's v4l2h264enc/v4l2h264enc and v4l2h264dec/v4l2h265dec are the only plugins that we support.
Best Regards,
Suren
Hi Suren,
do you have any plan to use V4l2 implements encode function?
Best Regards,
Lin
Hi,
Currently we don’t have a standalone application to verify Encode/decode functionality. All that we have are the GStreamer based plugins to validate.
Best Regards,
Suren