Which system do you use? Android, Ubuntu, OOWOW or others?
Ubuntu
Which version of system do you use? Please provide the version of the system here:
Ubuntu 24.04, kernel 5.15.119
Please describe your issue below:
The gstreamer method as prescribed here does not work:
https://docs.khadas.com/products/sbc/vim4/applications/hdmi-input-5.15
The hdmiin_demo does work and shows my source, but the gstreamer method will not save to file, nor will it display if using autovideosink.
My user is a member of group “video” and I have tried also with sudo. The encoded file in tmp is always zero size.
I have been trying this in a console on the desktop.
Post a console log of your issue below:
gst-launch-1.0 v4l2src device=/dev/video71 io-mode=dmabuf num-buffers=300 ! video/x-raw,format=NV12,width=1920,height=1080,framerate=30/1,interlace-mode=interleaved ! amlvenc ! h264parse ! qtmux ! filesink location=/tmp/test71.mp4
Setting pipeline to PAUSED ...
[API:aml_v4l2src_connect:271]Enter, devname : /dev/video71
driver : vdin_video
device : mesont7
bus_info : vdin1 v4l2
version : 539099424
strcmp cap.driver: vdin_video
func_name: aml_src_get_hdmi_method
initialize func addr: 0x7f9e6b0cbc
finalize func addr: 0x7f9e6b0ff0
start func addr: 0x7f9e6b1198
stop func addr: 0x7f9e6b12d8
change_divide_framerate, L69, dev /dev/video71, change_frame 1
change_divide_framerate L91 Set framerate div 2 success
[2024-08-19 17:24:53] DEBUG [amlv4l2src hdmisrc.c:102:hdmi_src_initialize]enter
USERNAME 4914 0.0 0.0 80764 3904 pts/0 S 16:54 0:00 hdmictrl
USERNAME 5242 0.0 0.0 2380 816 pts/1 S+ 17:24 0:00 sh -c -- ps -aux | grep hdmictrl
USERNAME 5244 0.0 0.0 6140 2016 pts/1 S+ 17:24 0:00 grep hdmictrl
[2024-08-19 17:24:53] DEBUG [amlv4l2src hdmisrc.c:68:hdmi_src_obtain_devname]enter
[2024-08-19 17:24:53] DEBUG [amlv4l2src hdmisrc.c:79:hdmi_src_obtain_devname]hdmi_src_obtain_devname, pid=5245
[2024-08-19 17:24:53] DEBUG [amlv4l2src hdmisrc.c:87:hdmi_src_obtain_devname]hdmi_src_obtain_devname end, pid=5245
[2024-08-19 17:24:53] DEBUG [amlv4l2src hdmisrc.c:79:hdmi_src_obtain_devname]hdmi_src_obtain_devname, pid=0
[2024-08-19 17:24:53] DEBUG [amlv4l2src hdmisrc.c:83:hdmi_src_obtain_devname]ready to execl /usr/bin/hdmictrl, pid=0
[2024-08-19 17:24:53] DEBUG [amlv4l2src hdmictrl.c:304:main]enter, prepare enter hdmi_rx_svctx_init
[2024-08-19 17:24:53] DEBUG [amlv4l2src hdmictrl.c:256:hdmi_rx_svctx_init]enter
[2024-08-19 17:24:53] DEBUG [amlv4l2src hdmictrl.c:264:hdmi_rx_svctx_init]prepare get the GetInstance