当前位置: 首页 > news >正文

20240626让飞凌的OK3588-C开发板在相机使用1080p60分辨率下预览

20240626让飞凌的OK3588-C开发板在相机使用1080p60分辨率下预览
2024/6/26 15:15


4.2.1 全编译测试
在源码路径内,提供了编译脚本 build.sh,运行该脚本对整个源码进行编译,需要在终端切换到解压
出来的源码路径,找到 build.sh 文件。
forlinx@ubuntu:~$ cd /home/forlinx/3588/OK3588_Linux_fs
以下操作需要在源码目录下操作,全编译方法:
1、生成编译所需配置(此时需要 forlinx 用户密码,密码也是 forlinx)
forlinx@ubuntu: ~/3588/OK3588_Linux_fs$ sudo ./build.sh BoardConfig-linuxfs-ok3588.mk
2、进行全编译
forlinx@ubuntu: ~/3588/OK3588_Linux_fs$ sudo ./build.sh
编译成功后,使系统镜像将在 rockdev 文件夹下生成,如下图:

4.2.2 单独编译
用户在内核源码路径下进行操作。
forlinx@ubuntu: ~/3588/OK3588_Linux_fs$ sudo ./build.sh kernel


v4l2-ctl --list-devices
v4l2-ctl --list-formats-ext -d /dev/video0


抖动
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw, format=NV12, width=1920,height=1080, framerate=30/1 ! waylandsink

出错
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw, format=NV12, width=1920,height=1080, framerate=60/1 ! waylandsink

抖动
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw, format=NV12, width=1920,height=1080 ! waylandsink

root@ok3588:/# 
root@ok3588:/# 
V12, width=1920,height=1080, framerate=30/1 ! waylandsink! video/x-raw, format=NV
Setting pipeline to PAUSED ...
Using mplane plugin for capture 
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:29.580406555
Setting pipeline to NULL ...
Caught SIGSEGV
exec gdb failed: No such file or directory
Spinning.  Please run 'gdb gst-launch-1.0 1570' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
^C
root@ok3588:/# 
root@ok3588:/# 
V12, width=1920,height=1080, framerate=60/1 ! waylandsink! video/x-raw, format=NV
Setting pipeline to PAUSED ...
Using mplane plugin for capture 
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.001854125
Setting pipeline to NULL ...
Freeing pipeline ...
root@ok3588:/# 

root@ok3588:/# 
root@ok3588:/# 

root@ok3588:/# 
V12, width=1920,height=1080 ! waylandsinkice=/dev/video0 ! video/x-raw, format=NV
Setting pipeline to PAUSED ...
Using mplane plugin for capture 
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:03.758202503
Setting pipeline to NULL ...
Caught SIGSEGV
exec gdb failed: No such file or directory
Spinning.  Please run 'gdb gst-launch-1.0 1588' to continue debugging, Ctrl-C to quit, or Ctrl-\ to dump core.
^C
root@ok3588:/# 


录像时在HDMI OUT可以预览
gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=100000 ! video/x-raw,format=NV12, width=1920,height=1080 ! tee name=t ! queue ! mpph264enc ! queue ! h264parse ! qtmux ! filesink location=fpga10000-9500.mp4 t. ! queue ! waylandsink

在HDMI OUT预览时不要保存mp4文件
gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=100000 ! video/x-raw,format=NV12, width=1920,height=1080 ! tee name=t ! queue ! mpph264enc ! queue ! h264parse ! qtmux  t. ! queue ! waylandsink

在HDMI OUT预览时,帧数也不要了!
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,format=NV12, width=1920,height=1080 ! tee name=t ! queue ! mpph264enc ! queue ! h264parse ! qtmux  t. ! queue ! waylandsink

root@ok3588:/# 
 ! qtmux  t. ! queue ! waylandsinkame=t ! queue ! mpph264enc ! queue ! h264parse 
Setting pipeline to PAUSED ...
Using mplane plugin for capture 
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Redistribute latency...
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 1:00:46.847308499
Setting pipeline to NULL ...
Freeing pipeline ...
root@ok3588:/# 


D:\20240423wyb\20240626>
D:\20240423wyb\20240626>
D:\20240423wyb\20240626>adb pull /fpga10000-9500.mp4
/fpga10000-9500.mp4: 1 file pulled, 0 skipped. 6.0 MB/s (3281516705 bytes in 522.460s)

D:\20240423wyb\20240626>

http://www.lryc.cn/news/387985.html

相关文章:

  • python数据分析——数据分类汇总与统计
  • iOS17系统适配
  • 树洞陪聊陪玩交友程序系统源码,解锁交友新体验
  • 区间动态规划——最长回文子序列长度(C++)
  • 无人机远程控制:北斗短报文技术详解
  • 240627_关于CNN中图像维度变化问题
  • 食品行业怎么用JSON群发短信
  • MySQL高级-MVCC-隐藏字段
  • 探索PcapPlusPlus开源库:网络数据包处理与性能优化
  • 深入理解SSH:网络安全的守护者
  • DDD学习笔记四
  • Head First设计模式中的典型设计模式解析与案例分析
  • iptables 防火墙(一)
  • 数据库物理结构设计-定义数据库模式结构(概念模式、用户外模式、内模式)、定义数据库、物理结构设计策略
  • QT加载安装外围依赖库的翻译文件后翻译失败的现象分析:依赖库以饿汉式的形式暴露单例接口导致该现象的产生
  • 13_旷视轻量化网络--ShuffleNet V2
  • Linux系统编程--进程间通信
  • docker-本地部署-后端
  • TLS + OpenSSL + Engine + PKCS#11 + softhsm2 安全通信
  • Unity实现简单的MVC架构
  • 【简单讲解下OneFlow深度学习框架】
  • FastGPT 调用Qwen 测试Hello world
  • Golang-GMP
  • 【PythonWeb开发】Flask自定义模板路径和静态资源路径
  • Java对象创建过程
  • Does a vector database maintain pre-vector chunked data for RAG systems?
  • Rust-11-错误处理
  • 自动化测试:使用Postman进行接口测试与脚本编写
  • ONLYOFFICE 8.1 桌面编辑器测评:引领数字化办公新潮流
  • 基于大语言模型LangChain框架:知识库问答系统实践