- 积分
- 30
贡献150
飞刀46 FD
注册时间2018-4-27
在线时间9 小时
扫一扫,手机访问本帖
|
[root@rk3399:/userdata]# v4l2-ctl --list-formats-ext -d /dev/video1
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture Multiplanar
[0]: 'YUYV' (YUYV 4:2:2)
Size: Stepwise 32x16 - 1920x1568 with step 8/8
[1]: '422P' (Planar YVU 4:2:2)
Size: Stepwise 32x16 - 1920x1568 with step 8/8
[2]: 'NV16' (Y/CbCr 4:2:2)
Size: Stepwise 32x16 - 1920x1568 with step 8/8
[3]: 'NV61' (Y/CrCb 4:2:2)
Size: Stepwise 32x16 - 1920x1568 with step 8/8
[4]: 'YM16' (Planar YUV 4:2:2 (N-C))
Size: Stepwise 32x16 - 1920x1568 with step 8/8
[5]: 'NV21' (Y/CrCb 4:2:0)
Size: Stepwise 32x16 - 1920x1568 with step 8/8
[6]: 'NV12' (Y/CbCr 4:2:0)
Size: Stepwise 32x16 - 1920x1568 with step 8/8
[7]: 'NM21' (Y/CrCb 4:2:0 (N-C))
Size: Stepwise 32x16 - 1920x1568 with step 8/8
[8]: 'NM12' (Y/CbCr 4:2:0 (N-C))
Size: Stepwise 32x16 - 1920x1568 with step 8/8
[9]: 'YU12' (Planar YUV 4:2:0)
Size: Stepwise 32x16 - 1920x1568 with step 8/8
[10]: 'YM24' (Planar YUV 4:4:4 (N-C))
Size: Stepwise 32x16 - 1920x1568 with step 8/8
[11]: 'GREY' (8-bit Greyscale)
Size: Stepwise 32x16 - 1920x1568 with step 8/8
[12]: 'XR24' (32-bit BGRX 8-8-8-8)
Size: Stepwise 32x16 - 1920x1568 with step 8/8
[13]: 'RGBP' (16-bit RGB 5-6-5)
Size: Stepwise 32x16 - 1920x1568 with step 8/8
然后我用
gst-launch-1.0 v4l2src device=/dev/video1 ! video/x-raw, format=NV12, width=640, \
height=480, framerate=30/1 ! waylandsink
这个可以显示。
然后[root@rk3399:/userdata]# gst-launch-1.0 v4l2src device=/dev/video1 ! video/x-raw
, format=YV12, width=640, height=480, framerate=30/1 ! waylandsink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.002559083
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
这个YV12格式为啥不能显示呢?
资料上不是说“”“OK3399 使用 mppvideodec 组件进行视频硬解码,它的输出格式为:NV12,I420,YV12”?
|
|