Hi,
We are working on iMX8QM custom board with 4.14.78 Kernel BSP release, in which HDMI-RX/HDMI-IN is configured.
We need to overlay, capture & play both audio & video through HDMI-RX.
Can you please suggest the gstreamer commands to overlay, capture & play the videos & audios fir HDMI RX.
Best regards,
Prashanth Kumar K
Hi,
While overlaying HDMI RX on the HDMI TX screen, board is crashing, the crash log as below ,
root@imx8qmmek:~# gst-launch-1.0 -e v4l2src device=/dev/video3 ! video/x-raw,width=1920,height=1080, framerate=60/1 ! waylandsink
Setting pipeline to PAUSED ...
Pipelin[e is l2i1v4e. 1a0n3d1 d8o1es] nUonta bneleed PtRoE ROhLLa ..n.dle kernel NULL pointer dereference at virtual address 00000004
r[etti n g2 p1ip4e.l1i1n4e9 4to8 ]P LMAYeINmG a.b..o
ktN ewi ncfloo:c
: GstSystemClock
[ 214.123911] Exception class = DABT (current EL), IL = 32 bits
[ 214.130656] SET = 0, FnV = 0
[ 214.133733] EA = 0, S1PTW = 0
[ 214.136870] Data abort info:
[ 214.140518] ISV = 0, ISS = 0x00000006
[ 214.144363] CM = 0, WnR = 0
[ 214.147334] user pgtable: 4k pages, 48-bit VAs, pgd = ffff8008ea6bf000
[ 214.154691] [0000000000000004] *pgd=000000096a7c0003, *pud=00000009736a4003, *pmd=0000000000000000
[ 214.164471] Internal error: Oops: 96000006 [#1] PREEMPT SMP
[ 214.170040] Modules linked in:
[ 214.173095] CPU: 5 PID: 4029 Comm: v4l2src0:src Not tainted 4.14.78 #75
[ 214.179708] Hardware name: iW-RainboW-G27D-i.MX8QM_SMARC (DT)
[ 214.185451] task: ffff8008f2fb6c00 task.stack: ffff00002b990000
[ 214.191378] PC is at mxc_hdmi_enum_framesizes+0x20/0x40
[ 214.196600] LR is at mxc_isi_cap_enum_framesizes+0xb0/0x168
[ 214.202166] pc : [<ffff0000089fcde0>] lr : [<ffff0000089efac0>] pstate: 80000145
[ 214.209558] sp : ffff00002b993bb0
[ 214.212869] x29: ffff00002b993bb0 x28: ffff8008f3046900
[ 214.218177] x27: 0000000000000000 x26: ffff8008f20aa910
[ 214.223485] x25: 0000000000000000 x24: ffff000009669678
[ 214.228793] x23: 000000000000004a x22: ffff00002b993d30
[ 214.234100] x21: ffff8008f20aa018 x20: 0000000000000001
[ 214.239409] x19: ffff00002b993d30 x18: 0000ffff83f22a70
[ 214.244717] x17: 0000ffff83f36268 x16: ffff00000822a3d0
[ 214.250025] x15: 0000000000000000 x14: 000000000000001f
[ 214.255333] x13: 0000000000000000 x12: 0000ffff74004ce0
[ 214.260641] x11: 0000000000000000 x10: 0000000000000000
[ 214.265949] x9 : 0000000000000200 x8 : ffff00002b993d5c
[ 214.271257] x7 : 0000000056595559 x6 : 0000000056595559
[ 214.276565] x5 : ffff00002b993d34 x4 : ffff8008f7fde0c0
[ 214.281873] x3 : 0000000000000000 x2 : ffff00002b993be0
[ 214.287181] x1 : ffff8008f7fde018 x0 : 0000000000000000
[ 214.292490] Process v4l2src0:src (pid: 4029, stack limit = 0xffff00002b990000)
[ 214.299710] Call trace:
[ 214.302151] Exception stack(0xffff00002b993a70 to 0xffff00002b993bb0)
[ 214.308588] 3a60: 0000000000000000 ffff8008f7fde018
[ 214.316416] 3a80: ffff00002b993be0 0000000000000000 ffff8008f7fde0c0 ffff00002b993d34
[ 214.324243] 3aa0: 0000000056595559 0000000056595559 ffff00002b993d5c 0000000000000200
[ 214.332071] 3ac0: 0000000000000000 0000000000000000 0000ffff74004ce0 0000000000000000
[ 214.339898] 3ae0: 000000000000001f 0000000000000000 ffff00000822a3d0 0000ffff83f36268
[ 214.347725] 3b00: 0000ffff83f22a70 ffff00002b993d30 0000000000000001 ffff8008f20aa018
[ 214.355553] 3b20: ffff00002b993d30 000000000000004a ffff000009669678 0000000000000000
[ 214.363380] 3b40: ffff8008f20aa910 0000000000000000 ffff8008f3046900 ffff00002b993bb0
[ 214.371208] 3b60: ffff0000089efac0 ffff00002b993bb0 ffff0000089fcde0 0000000080000145
[ 214.379035] 3b80: ffff00002b993bb0 ffff0000089efa94 0000ffffffffffff 0000000000000001
[ 214.386862] 3ba0: ffff00002b993bb0 ffff0000089fcde0
[ 214.391738] [<ffff0000089fcde0>] mxc_hdmi_enum_framesizes+0x20/0x40
[ 214.398002] [<ffff0000089b7544>] __video_do_ioctl+0x204/0x2f8
[ 214.403743] [<ffff0000089b7064>] video_usercopy+0x1ec/0x4a8
[ 214.409312] [<ffff0000089b7334>] video_ioctl2+0x14/0x20
[ 214.414532] [<ffff0000089b3444>] v4l2_ioctl+0x7c/0x198
[ 214.419669] [<ffff000008229b9c>] do_vfs_ioctl+0xa4/0x8d8
[ 214.424975] [<ffff00000822a44c>] SyS_ioctl+0x7c/0x98
[ 214.429935] Exception stack(0xffff00002b993ec0 to 0xffff00002b994000)
[ 214.436373] 3ec0: 000000000000000b 00000000c02c564a 0000ffff82f56530 0000ffff83e9a910
[ 214.444200] 3ee0: 0000000000000000 0000ffff84102350 0000000000000001 0000000000000040
[ 214.452027] 3f00: 000000000000001d 0000ffff82f578e0 0000000000000000 0000000000000000
[ 214.459855] 3f20: 0000ffff74004ce0 0000000000000000 000000000000001f 0000000000000000
[ 214.467682] 3f40: 0000ffff8405d2c8 0000ffff83f36268 0000ffff83f22a70 0000000030badc00
[ 214.475510] 3f60: 0000000056595559 0000000030bacdc0 0000ffff74001620 0000ffff740028f0
[ 214.483337] 3f80: 0000ffff82f56530 0000ffff83c71000 0000000000000000 0000ffff83c58688
[ 214.491165] 3fa0: 000000000000000b 0000ffff82f56460 0000ffff83c3916c 0000ffff82f56440
[ 214.498992] 3fc0: 0000ffff83e9a91c 0000000080000000 000000000000000b 000000000000001d
[ 214.506819] 3fe0: 0000000000000000 0000000000000000 0000000000000000 0000000000000000
[ 214.514649] [<ffff000008083b18>] __sys_trace_return+0x0/0x4
[ 214.520217] Code: 39747000 34000120 f9470023 52800000 (b9400463)
[ 214.526308] ---[ end trace 7cc6a83e823274f0 ]---
Message from syslogd@imx8qmmek at Mon Jan 21 04:20:14 2019 ...
imx8qmmek kernel: [ 214.164471] Internal error: Oops: 96000006 [#1] PREEMPT SMP
Message from syslogd@imx8qmmek at Mon Jan 21 04:20:14 2019 ...
imx8qmmek kernel: [ 214.292490] Process v4l2src0:src (pid: 4029, stack limit = 0xffff00002b990000)
Message from syslogd@imx8qmmek at Mon Jan 21 04:20:14 2019 ...
imx8qmmek kernel: [ 214.520217] Code: 39747000 34000120 f9470023 52800000 (b9400463)
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:03.821538625
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
^C
root@imx8qmmek:~#
root@imx8qmmek:~#
Both below gstreamer commands I tried, but observation is above crash prints.
1) gst-launch-1.0 -e v4l2src device=/dev/video3 ! video/x-raw,width=1920,height=1080, framerate=60/1 ! waylandsink
2) gst-launch-1.0 v4l2src device=/dev/video3 ! videoconvert ! autovideosink
Is any additional plugins need to add in gstreamer commands?
Best Regards,
Prashanth Kumar K
Hello,
To record video through the camera, you can use the below gstreamer pipeline:
gst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-raw,width=1280,height=720,framerate=30/1' ! filesink location=/tmp/test.raw.
Please make sure that you are connecting the camera on the correct MIPI port.
Best regards,
Diego