|
发表于 2022-8-22 09:09:59
只看该作者
板凳
1.
firefly@firefly:~$ bash -x /usr/local/bin/test_hdmirx.sh
++ v4l2-ctl --list-devices
++ grep -A1 hdmirx
++ grep -v hdmirx
++ awk -F ' ' '{print $NF}'
Failed to open /dev/video0: No such device
+ device_id=/dev/video8
+ v4l2-ctl -d /dev/video8 --set-dv-bt-timings query
VIDIOC_S_DV_TIMINGS: failed: Invalid argument
++ v4l2-ctl -d /dev/video8 --get-dv-timings
++ grep 'Active width'
++ awk -F ' ' '{print $NF}'
+ width=1920
++ v4l2-ctl -d /dev/video8 --get-dv-timings
++ grep 'Active heigh'
++ awk -F ' ' '{print $NF}'
+ heigh=1080
+ trap onCtrlC INT
+ export XDG_RUNTIME_DIR=/run/user/1000
+ XDG_RUNTIME_DIR=/run/user/1000
+ gst-launch-1.0 alsasrc device=hw:2,0 '!' audioconvert '!' audioresample '!' queue '!' alsasink device=hw:1,0
+ echo '[Ctrl + C] exit'
[Ctrl + C] exit
+ true
+ sleep 10
+ gst-launch-1.0 v4l2src device=/dev/video8 '!' queue '!' video/x-raw,format=RGB '!' capssetter replace = true caps=video/x-raw,format=BGR,width=1920,height=1080 '!' glimagesink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstAudioSrcClock
Redistribute latency...
Redistribute latency...
Setting pipeline to PAUSED ...
arm_release_ver of this libmali is 'g6p0-01eac0', rk_so_ver is '5'.
Pipeline is live and does not need PREROLL ...
Got context from element 'sink': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplayWayland\)\ gldisplaywayland0";
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device '/dev/video8' has no supported format
Additional debug info:
gstv4l2object.c(3752): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Call to TRY_FMT failed for RGB3 @ 3840x2160: Invalid argument
Execution ended after 0:00:00.015498799
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
+ true
+ sleep 10
+ true
+ sleep 10
+ true
+ sleep 10
+ true
+ sleep 10
+ true
+ sleep 10
+ true
+ sleep 10
+ true
+ sleep 10
+ true
+ sleep 10
+ true
+ sleep 10
+ true
+ sleep 10
+ true
+ sleep 10
2.
firefly@firefly:~$ ll /dev/video*
-rw-rw---- 1 root video 4 Aug 22 01:05 /dev/video-dec0
-rw-rw---- 1 root video 4 Aug 22 01:05 /dev/video-enc0
crw-rw----+ 1 root video 81, 0 Aug 22 01:05 /dev/video0
crw-rw----+ 1 root video 81, 1 Aug 22 01:05 /dev/video1
crw-rw----+ 1 root video 81, 2 Aug 22 01:05 /dev/video2
crw-rw----+ 1 root video 81, 3 Aug 22 01:05 /dev/video3
crw-rw----+ 1 root video 81, 4 Aug 22 01:05 /dev/video4
crw-rw----+ 1 root video 81, 5 Aug 22 01:05 /dev/video5
crw-rw----+ 1 root video 81, 6 Aug 22 01:05 /dev/video6
crw-rw----+ 1 root video 81, 7 Aug 22 01:05 /dev/video7
crw-rw----+ 1 root video 81, 8 Aug 22 01:05 /dev/video8
firefly@firefly:~$ v4l2-ctl --list-devices | grep -A1 hdmirx | grep -v hdmirx | awk -F ' ' '{print $NF}'
Failed to open /dev/video0: No such device
/dev/video8
|
|