20250304解决在飞凌的OK3588-C的Linux R4下解决使用gstreamer保存的mp4打不开
sync
poweroff
root@ok3588:/# sync
root@ok3588:/# sync
root@ok3588:/# cd 107
root@ok3588:/107# ls -l
total 0
root@ok3588:/107# sync
root@ok3588:/107# poweroff
20250304解决在飞凌的OK3588-C的Linux R4下解决使用gstreamer保存的mp4打不开
2025/3/4 10:58
缘起:在飞凌的OK3588-C的Linux R4下使用gstreamer录像。
以前录像15秒/半小时,直接通过adb拿到电脑上都是正常的。
但是现在需要批量测试机芯。于是每一款机芯录像2分钟之后马上断电,4款机芯都录像完成之后统一拷贝到TF卡。
结果发现几乎一般的mp4视频异常了。
有体积/大小,但是不能播放。
解决方法:录像完成之后,不要马上断电,执行sync几次。
之后使用poweroff关机。这样得到的mp4视频100%是正常的了。
@程帅?有没有客户报告用gstreamer给相机/机芯录像。录像文件打不开片【录像的时候同时在HDMI显示器显示,显示是正常的】
录像指令:9500
gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=7200 ! video/x-raw,format=NV12, width=1920,height=1080 ! tee name=t ! queue ! mpph264enc ! queue ! h264parse ! qtmux ! filesink location=105#7200-9500-1080p60.mp4 t. ! queue ! waylandsink
录像105 405 9500 9520机芯,9500异常/打不开。直接使用gstreamer播放emmc储存的视频也异常。【非adb拿到电脑的问题】
测试步骤。2分钟录像。断电,换机芯。
2分钟录像之后 直接断电,会不会存在 写盘/EMMC不及时,丢数据了?
正常流程肯定是要接解除文件占用再断电的
否则文件确实有可能丢 这个东西的测试 多次测同一个摄像头就行
以前都是测试10s左右?要不就是测试半小时的!
这样操作之后,发现一个很神奇的现象,使用gstreamer录像的机芯很多文件【4个机芯,2个打不开】打不开了。异常概率:50%
我不知道是否是这个原因。
以前从来没有出现这个现象的!
在emmc中直接使用gstreamer播放测试。确认是录像的过程中已经损坏。
录像指令:
105 30*60*2=3600
gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=3600 ! video/x-raw,format=NV12, width=2560,height=1440 ! tee name=t ! queue ! mpph264enc ! queue ! h264parse ! qtmux ! filesink location=101#3600-105-1440p30.mp4 t. ! queue ! waylandsink
405 60*60*2=7200
gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=7200 ! video/x-raw,format=NV12, width=1920,height=1080 ! tee name=t ! queue ! mpph264enc ! queue ! h264parse ! qtmux ! filesink location=101#7200-405-1080p60.mp4 t. ! queue ! waylandsink
9500
gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=7200 ! video/x-raw,format=NV12, width=1920,height=1080 ! tee name=t ! queue ! mpph264enc ! queue ! h264parse ! qtmux ! filesink location=101#7200-9500-1080p60.mp4 t. ! queue ! waylandsink
9520 60*60*2=7200
gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=7200 ! video/x-raw,format=NV12, width=1920,height=1080 ! tee name=t ! queue ! mpph264enc ! queue ! h264parse ! qtmux ! filesink location=101#7200-9520-1080p60.mp4 t. ! queue ! waylandsink
播放指令:gst-launch-1.0 filesrc location=1.mp4 ! qtdemux ! queue ! h264parse ! mppvideodec ! waylandsink "render-rectangle=<0,0,1920,1080>"
root@ok3588:/# ls -l
total 96
drwxr-xr-x 2 root root 4096 Jan 1 1970 103
drwxr-xr-x 2 root root 4096 Jan 1 1970 111
drwxr-xr-x 2 root root 4096 Jan 1 1970 113
drwxr-xr-x 2 root root 4096 Jan 1 1970 116
drwxr-xr-x 2 root root 4096 Jan 1 1970 117
drwxr-xr-x 2 root root 4096 Jan 1 1970 120
drwxr-xr-x 2 root root 4096 Mar 9 2023 bin
-rw-r--r-- 1 root root 351 Mar 9 2023 busybox.fragment
lrwxrwxrwx 1 root root 8 Mar 9 2023 data -> userdata
drwxr-xr-x 14 root root 3800 Jan 1 08:00 dev
drwxr-xr-x 23 root root 4096 Jan 1 08:00 etc
drwxr-xr-x 4 root root 4096 Jan 1 08:00 home
drwxr-xr-x 6 root root 4096 Aug 17 2023 lib
lrwxrwxrwx 1 root root 3 Mar 9 2023 lib64 -> lib
lrwxrwxrwx 1 root root 11 Mar 9 2023 linuxrc -> bin/busybox
drwx------ 2 root root 16384 Mar 9 2023 lost+found
drwxr-xr-x 14 root root 4096 Mar 9 2023 media
lrwxrwxrwx 1 root root 23 Mar 9 2023 misc -> /dev/block/by-name/misc
drwxr-xr-x 4 root root 4096 Mar 9 2023 mnt
drwxr-xr-x 3 root root 4096 Aug 6 2024 oem
drwxr-xr-x 2 root root 4096 Mar 9 2023 opt
dr-xr-xr-x 277 root root 0 Jan 1 08:00 proc
drwx------ 2 root root 4096 Mar 9 2023 root
drwxr-xr-x 7 root root 340 Jan 1 08:00 run
drwxr-xr-x 2 root root 4096 Sep 14 2023 sbin
lrwxrwxrwx 1 root root 10 Mar 9 2023 sdcard -> mnt/sdcard
dr-xr-xr-x 14 root root 0 Jan 1 08:00 sys
drwxrwxrwt 7 root root 400 Jan 1 08:00 tmp
lrwxrwxrwx 1 root root 9 Mar 9 2023 udisk -> mnt/udisk
drwxr-xr-x 5 root root 4096 Jan 1 08:00 userdata
drwxr-xr-x 11 root root 4096 Sep 14 2023 usr
drwxr-xr-x 5 root root 4096 Mar 9 2023 var
root@ok3588:/# cd 103
root@ok3588:/103# ls -l
total 906676
-rw-r--r-- 1 root root 0 Jan 1 1970 103#3600-105-1440p30.mp4
-rw-r--r-- 1 root root 207202126 Jan 1 1970 103#3600-105-1440p30xin.mp4
-rw-r--r-- 1 root root 233480459 Jan 1 1970 103#7200-405-1080p60.mp4
-rw-r--r-- 1 root root 253666012 Jan 1 1970 103#7200-9500-1080p60.mp4
-rw-r--r-- 1 root root 234076281 Jan 1 1970 103#7200-9520-1080p60.mp4
root@ok3588:/103#
root@ok3588:/103#
ueue ! waylandsinkse ! qtmux ! filesink location=103#3600-105-1440p30.mp4 t. ! q
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...
Redistribute latency...
Got EOS from element "pipeline0".
Execution ended after 0:02:00.113722276
Setting pipeline to NULL ...
Freeing pipeline ...
root@ok3588:/103# sync
root@ok3588:/103# sync
root@ok3588:/103# ls -l
total 1109108
-rw-r--r-- 1 root root 207282496 Jan 1 08:02 103#3600-105-1440p30.mp4
-rw-r--r-- 1 root root 207202126 Jan 1 08:02 103#3600-105-1440p30xin.mp4
-rw-r--r-- 1 root root 233480459 Jan 1 08:02 103#7200-405-1080p60.mp4
-rw-r--r-- 1 root root 253666012 Jan 1 1970 103#7200-9500-1080p60.mp4
-rw-r--r-- 1 root root 234076281 Jan 1 08:02 103#7200-9520-1080p60.mp4
root@ok3588:/103#
root@ok3588:/103#
root@ok3588:/103# cd /run/media/mmcblk1p1/
root@ok3588:/run/media/mmcblk1p1# ls -l
total 55200
drwxr-xr-x 2 root root 32768 Jan 15 2025 Alarms
drwxr-xr-x 4 root root 32768 Dec 10 2024 Android
drwxr-xr-x 2 root root 32768 Jan 15 2025 Audiobooks
drwxr-xr-x 2 root root 32768 Jan 15 2025 DCIM
drwxr-xr-x 2 root root 32768 Jan 15 2025 Documents
drwxr-xr-x 2 root root 32768 Jan 15 2025 Download
drwxr-xr-x 2 root root 32768 Jan 7 2025 LOST.DIR
drwxr-xr-x 3 root root 32768 Dec 10 2024 Movies
drwxr-xr-x 3 root root 32768 Dec 10 2024 Music
drwxr-xr-x 2 root root 32768 Jan 15 2025 Notifications
drwxr-xr-x 3 root root 32768 Dec 10 2024 Pictures
drwxr-xr-x 2 root root 32768 Jan 15 2025 Podcasts
-rwxr-xr-x 1 root root 56008000 Jan 7 2025 'QGroundControl64 (1).apk'
drwxr-xr-x 2 root root 32768 Jan 15 2025 Recordings
drwxr-xr-x 2 root root 32768 Jan 15 2025 Ringtones
drwxr-xr-x 2 root root 32768 Dec 10 2024 'System Volume Information'
-rwxr-xr-x 1 root root 0 Jan 1 1980 tes.txt
-rwxr-xr-x 1 root root 0 Jan 1 1980 test.txt
root@ok3588:/run/media/mmcblk1p1# cp /103/ . -rf
root@ok3588:/run/media/mmcblk1p1# cd /
root@ok3588:/# sync
root@ok3588:/# sync
root@ok3588:/# poweroff
root@ok3588:/# Stopping input-event-daemon:
input-event-daemon: Exiting...
done
Stopping dnsmasq: FAIL
Stopping vsftpd: stopped /usr/sbin/vsftpd (pid 1466)
OK
Stopping sshd: killall: sshd: no process killed
OK
Stopping pulseaudio: OK
stop finishedStopping lighttpd: OK
Stopping dropbear sshd: OK
## Error: "secondary_display" not defined
stoping weston... [08:07:50.841] caught signal 15
[08:07:50.842] destroy output while page flip pending
[08:07:50.842] background surface gone
done.
[08:07:50.844] event2 - adc-keys: device removed
killall: rkaiq_3A_server: no process killed
Stopping network: [08:07:50.910] event0 - rk805 pwrkey: device removed
OK
[08:07:50.971] destroy output while page flip pending
Stopping bluetoothd: OK
Stopping iptables: [08:07:50.995] destroy output while page flip pending
[08:07:50.995] Output 'HDMI-A-1' no heads left, disabling.
OK
Stopping system message bus: done
Saving random seed: OK
/usr/bin/modetest
Stopping klogd: OK
Stopping syslogd: OK
The system is going down NOW!
Sent SIGTERM to all processes
Sent SIGKILL to all processes
Requesting system poweroff
[ 477.195707] reboot: Power down
相关文章:

20250304解决在飞凌的OK3588-C的Linux R4下解决使用gstreamer保存的mp4打不开
sync poweroff rootok3588:/# sync rootok3588:/# sync rootok3588:/# cd 107 rootok3588:/107# ls -l total 0 rootok3588:/107# sync rootok3588:/107# poweroff 20250304解决在飞凌的OK3588-C的Linux R4下解决使用gstreamer保存的mp4打不开 2025/3/4 10:58 缘起:…...

build gcc
1,下载源码 wget https://gcc.gnu.org/pub/gcc/infrastructure/mpfr-4.1.0.tar.bz2 wget https://gcc.gnu.org/pub/gcc/infrastructure/gmp-6.1.0.tar.bz2 wget https://gcc.gnu.org/pub/gcc/infrastructure/mpc-1.2.1.tar.gz git clone --mirror https://github…...
【每日论文】How far can we go with ImageNet for Text-to-Image generation?
下载PDF或查看论文,请点击:LlamaFactory - huggingface daily paper - 每日论文解读 | LlamaFactory | LlamaFactory 摘要 近年来,通过在大规模数据集上训练,文本到图像(T2I)生成模型已经取得了显著成果&a…...

STM32 两个单片机之间的通信
STM32 两个单片机之间的通信 原创 HS 平凡灵感码头 2025年03月04日 11:25 广东 以上我们就是有A B两个板子来进行通信,A板将接收按键的键值,然后发送给B板,B板接收键值,然后判断键值控制LED翻转,然后把键值按字符形式…...
Linux 下使用traceroute来进行网络诊断分析
简介 traceroute 命令是一种网络诊断工具,用于跟踪数据包从系统到目标服务器的路径。它有助于识别网络延迟和路由问题。 安装 Debian/Ubuntu sudo apt install traceroute -yRHEL/CentOS sudo yum install traceroute -yFedora sudo dnf install traceroute -…...

基于vue框架的游戏商城系统cq070(程序+源码+数据库+调试部署+开发环境)带论文文档1万字以上,文末可获取,系统界面在最后面。
系统程序文件列表 项目功能:用户,分类,商品信息,游戏高手,游戏代练 开题报告内容 基于Vue框架的游戏商城系统开题报告 一、研究背景与意义 随着互联网技术的飞速发展和游戏产业的蓬勃兴起,游戏商城作为游戏产业链中的重要一环,迎来了前所…...

SpringBoot接入DeepSeek(硅基流动版)+ 前端页面调试(WebSocket连接模式)
文章目录 前言正文一、项目环境二、项目代码2.1 pom.xml2.2 DeepSeekController.java2.3 启动类2.4 logback-spring.xml2.5 application.yaml2.6 WebsocketConfig.java2.7 AiChatWebSocketHandler.java2.8 SaveChatSessionParamRequest.java2.9 index.html 三、页面调试3.1 主页…...

idea实现热部署
1.在pom.xml文件添加依赖 java <dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-devtools</artifactId><optional>true</optional></dependency> 更新可见配置成功: 2.在appli…...

记一次误禁用USB导致键盘鼠标失灵的修复过程
背景说明 在电脑上插入了一个USB hub,然后弹窗提示:“集线器端口上出现电涌”,点开让选择“重置”或者“关闭”,不小心点了关闭,结果这个usb口就被关了,再插任何东西都没反应,找了很多办法都恢…...

0x03 http协议和分层架构
HTTP协议 简介 Hyper Text Transfer Protocol,超文本传输协议,规定了浏览器和服务器之间数据传输的规则 http协议基于TCP协议:面向连接,安全基于请求-响应模型:一次请求对应一次响应HTTP协议是无状态的协议ÿ…...

【leetcode hot 100 189】轮转数组
错误解法一:申请一个数组,第i个数放在新数组的ik或ik-nums.length上 class Solution {public void rotate(int[] nums, int k) {int[] resultsnew int[nums.length];for(int i0; i<nums.length; i){if(ik<nums.length){results[ik] nums[i];}els…...

医药行业哪些招聘管理系统有AI功能?
随着医药行业竞争加剧,企业对高端研发、临床、市场人才的需求日益迫切。传统招聘模式因效率低、成本高、匹配度不足等问题,已难以满足行业需求。2025年,以AI为核心的招聘管理系统成为解决痛点的关键工具。 一、医药行业招聘的痛点与AI解决方案…...

.net8 使用 license 证书授权案例解析
创建 webapi 项目 使用 .NET CLI 创建一个 ASP.NET Core Web API 应用,并添加指定的 NuGet 包,可以按照以下步骤操作: 创建 ASP.NET Core Web API 项目: dotnet new webapi -n WebAppLicense cd WebAppLicense添加 Standard.Li…...
golang的io
https://www.bilibili.com/video/BV1gx4y1r7xb 1. 原生io包 io包是Go语言标准库中底层的I/O接口层,定义了通用的读写规则和错误处理逻辑。每次读写都是直接调用底层系统 I/O,每次读取1字节,系统调用次数多。适用于小数据量、实时性要求高。i…...

全向广播扬声器在油气田中的关键应用 全方位守护安全
油气田作为高风险作业场所,安全生产始终是重中之重。在紧急情况下,如何快速、有效地传达信息,确保人员安全撤离,是油气田安全管理的关键环节。全向广播扬声器凭借其全方位覆盖、高音质输出和强大的环境适应性,成为油气…...
76.读取计时器运行时间 C#例子 WPF例子
TimerManager:一个增强的定时器类,带时间管理功能 在使用定时器时,我们常常需要知道定时器的运行状态,比如它已经运行了多久,或者还剩下多少时间。然而,.NET 的 System.Timers.Timer 类本身并没有直接提供…...

嵌入式开发:傅里叶变换(5):基于STM32,实现CMSIS中的DSP库
目录 步骤 1:准备工作 步骤 2:创建 Keil 项目,并配置工程 步骤 3:在MDK工程上添加 CMSIS-DSP 库 步骤 5:编写代码 步骤 6:配置时钟和优化 步骤 7:调试与验证 步骤 8:优化和调…...

探秘基带算法:从原理到5G时代的通信变革【六】CRC 校验
文章目录 2.5 CRC 校验2.5.1 前言2.5.2 CRC算法简介2.5.3 CRC计算的详细过程2.5.4 CRC校验的两种方法详解**分离比较法****整体运算法****不同位出错与余数的关系****总结** 2.5.5 CRC计算的C实现及工具介绍**C实现CRC计算****CRC计算工具推荐** **2.5.6 总结:CRC校…...

MySQL——DQL、多表设计
目录 一、DQL 1.基本查询 2.条件查询 3.分组查询 4.排序查询 5.分页查询 二、多表设计 1.一对多 2.一对一 3.多对多 一、DQL 1.基本查询 注意: *号代表查询所有字段,在实际开发中尽量少用(不直观、影响效率) 2.条件查询…...
XML 编辑器:全面指南与最佳实践
XML 编辑器:全面指南与最佳实践 引言 XML(可扩展标记语言)编辑器是处理XML文件的关键工具,对于开发人员、系统管理员以及任何需要处理XML数据的人来说至关重要。本文将全面介绍XML编辑器的概念、功能、选择标准以及最佳实践,旨在帮助读者了解如何选择和使用合适的XML编辑…...
内存分配函数malloc kmalloc vmalloc
内存分配函数malloc kmalloc vmalloc malloc实现步骤: 1)请求大小调整:首先,malloc 需要调整用户请求的大小,以适应内部数据结构(例如,可能需要存储额外的元数据)。通常,这包括对齐调整,确保分配的内存地址满足特定硬件要求(如对齐到8字节或16字节边界)。 2)空闲…...

docker详细操作--未完待续
docker介绍 docker官网: Docker:加速容器应用程序开发 harbor官网:Harbor - Harbor 中文 使用docker加速器: Docker镜像极速下载服务 - 毫秒镜像 是什么 Docker 是一种开源的容器化平台,用于将应用程序及其依赖项(如库、运行时环…...

大型活动交通拥堵治理的视觉算法应用
大型活动下智慧交通的视觉分析应用 一、背景与挑战 大型活动(如演唱会、马拉松赛事、高考中考等)期间,城市交通面临瞬时人流车流激增、传统摄像头模糊、交通拥堵识别滞后等问题。以演唱会为例,暖城商圈曾因观众集中离场导致周边…...

解决Ubuntu22.04 VMware失败的问题 ubuntu入门之二十八
现象1 打开VMware失败 Ubuntu升级之后打开VMware上报需要安装vmmon和vmnet,点击确认后如下提示 最终上报fail 解决方法 内核升级导致,需要在新内核下重新下载编译安装 查看版本 $ vmware -v VMware Workstation 17.5.1 build-23298084$ lsb_release…...

【大模型RAG】Docker 一键部署 Milvus 完整攻略
本文概要 Milvus 2.5 Stand-alone 版可通过 Docker 在几分钟内完成安装;只需暴露 19530(gRPC)与 9091(HTTP/WebUI)两个端口,即可让本地电脑通过 PyMilvus 或浏览器访问远程 Linux 服务器上的 Milvus。下面…...

ardupilot 开发环境eclipse 中import 缺少C++
目录 文章目录 目录摘要1.修复过程摘要 本节主要解决ardupilot 开发环境eclipse 中import 缺少C++,无法导入ardupilot代码,会引起查看不方便的问题。如下图所示 1.修复过程 0.安装ubuntu 软件中自带的eclipse 1.打开eclipse—Help—install new software 2.在 Work with中…...

有限自动机到正规文法转换器v1.0
1 项目简介 这是一个功能强大的有限自动机(Finite Automaton, FA)到正规文法(Regular Grammar)转换器,它配备了一个直观且完整的图形用户界面,使用户能够轻松地进行操作和观察。该程序基于编译原理中的经典…...

如何在Windows本机安装Python并确保与Python.NET兼容
✅作者简介:2022年博客新星 第八。热爱国学的Java后端开发者,修心和技术同步精进。 🍎个人主页:Java Fans的博客 🍊个人信条:不迁怒,不贰过。小知识,大智慧。 💞当前专栏…...

小智AI+MCP
什么是小智AI和MCP 如果还不清楚的先看往期文章 手搓小智AI聊天机器人 MCP 深度解析:AI 的USB接口 如何使用小智MCP 1.刷支持mcp的小智固件 2.下载官方MCP的示例代码 Github:https://github.com/78/mcp-calculator 安这个步骤执行 其中MCP_ENDPOI…...
游戏开发中常见的战斗数值英文缩写对照表
游戏开发中常见的战斗数值英文缩写对照表 基础属性(Basic Attributes) 缩写英文全称中文释义常见使用场景HPHit Points / Health Points生命值角色生存状态MPMana Points / Magic Points魔法值技能释放资源SPStamina Points体力值动作消耗资源APAction…...