# encodeAnddecode **Repository Path**: lllyyxs/encodeAnddecode ## Basic Information - **Project Name**: encodeAnddecode - **Description**: upd 图传 linux 瑞芯微 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-07-13 - **Last Updated**: 2025-11-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## 简介 lubancat使用mpp对首帧图片进行h264编码,通过udp rtp协议发送给ubuntu上位机, ubuntu上位机接收到图片后,使用ffmpeg进行解码,调用opencv进行图片播放 ## 进度 ### 2025-07-14-0.20 rk3568可以将视频文件h264编码并发送给上位机 上位机可以接收到并在窗口播放 **存在的问题** 上位机ffmpeg解码部分,报log: Error sending packet [h264 @ 0x64065871d300] No start code is found. [h264 @ 0x64065871d300] Error splitting the input into NAL units. ### 2025-08-06 rk3568实现了图像采集编码线程、udp发送线程 另外单独开了一个进程来记录h264编码数据,利用共享内存+信号量的方式完成进程间通信 上位机实现了图像解码线程、udp接收线程 上位机与rk3568之间,通过确认seq进行丢包检测、重发 存在的问题是上位机的seq过滤函数有问题,原方案是hash表的方式,seq到65535之后无法再接收