android rtsp 拉流h264 h265,解码nv12转码nv21耗时卡顿问题及ffmpeg优化

上传者: Rookie_or_beginner | 上传时间: 2025-06-06 10:52:07 | 文件大小: 161.8MB | 文件类型: RAR
本项目旨在通过RTSP协议获取摄像头预览流,并在RK3568开发板上进行人脸识别与姿态识别等处理。由于RTSP协议通常使用H.264/H.265压缩格式,解码后的视频数据需要转换为适合处理的格式(如NV21)。为了满足实时性需求,我们选择FFmpeg作为解码工具,但遇到了解码性能不足、卡顿、掉帧等问题。经过分析,发现Java层解码效率较低,转码过程中产生较大的延迟,影响了预览流畅度。因此,项目中优化了FFmpeg解码过程,采用多线程处理,分离拉流、解码和渲染,使用时间戳控制帧的显示顺序,并增加了队列管理以清理过期帧,确保解码连续性和渲染流畅度。此外,还解决了在不同分辨率下性能瓶颈,提升了在高分辨率下的帧率表现。最终,目标是实现低延迟、高效的视频流处理,满足实时人脸识别与姿态检测需求。

文件下载

资源详情

[{"title":"( 899 个子文件 161.8MB ) android rtsp 拉流h264 h265,解码nv12转码nv21耗时卡顿问题及ffmpeg优化","children":[{"title":"00929d7f4bf0ca553de1ddf86aeacd52397144 <span style='color:#111;'> 1007B </span>","children":null,"spread":false},{"title":"01aa873d350ceac9af894d9fbc0d13c47828e9 <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"01b1f17d51d244ef15af281269caae7788a7c0 <span style='color:#111;'> 23.59KB </span>","children":null,"spread":false},{"title":"0263cabce8fafe8fdbff1c1b4c37f5659c3972 <span style='color:#111;'> 991B </span>","children":null,"spread":false},{"title":"02f372ed21dc4fb1280c90b99baa640ccb5654 <span style='color:#111;'> 810B </span>","children":null,"spread":false},{"title":"03c7883245dd802dd6a067f855743f30d3182a <span style='color:#111;'> 22.18KB </span>","children":null,"spread":false},{"title":"0493362995169cb156583d1df4e3ed283c70eb <span style='color:#111;'> 166B </span>","children":null,"spread":false},{"title":"051a6f973e69a86e6f07f1a1c87f17a31c7235 <span style='color:#111;'> 184B </span>","children":null,"spread":false},{"title":"08c4b855881e2bc745571e3bacf7d9937b9c7c <span style='color:#111;'> 609B </span>","children":null,"spread":false},{"title":"09b4e3b24a44dc77a8ca6e93381cad2d559559 <span style='color:#111;'> 741B </span>","children":null,"spread":false},{"title":"0a03ab9e5379e25de252ebffc3c5c0a329c943 <span style='color:#111;'> 1.00KB </span>","children":null,"spread":false},{"title":"0a5b213131c077764bcc9a2ef87e8e7ff9026b <span style='color:#111;'> 20.86KB </span>","children":null,"spread":false},{"title":"0a844209cf8e97e7bb16369d2f07c4550851db <span style='color:#111;'> 6.83KB </span>","children":null,"spread":false},{"title":"0ac5d3f473971164b0ab0eb7704bfc1c9a27a5 <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"0b8305df62c1578763e2c7e62cac9b1dec8ff2 <span style='color:#111;'> 5.14KB </span>","children":null,"spread":false},{"title":"0c16d6b961b5354df25d61fcc5cd1cc6beff48 <span style='color:#111;'> 1.12KB </span>","children":null,"spread":false},{"title":"0c3bc1a514f035bd5b8edec03e492bea93c007 <span style='color:#111;'> 2.37KB </span>","children":null,"spread":false},{"title":"0cc84ea71987edaeda5592ee0238d157fb9903 <span style='color:#111;'> 33.65KB </span>","children":null,"spread":false},{"title":"0ce353ae7c6740bfc54cbb370f40388a831cfa <span style='color:#111;'> 611B </span>","children":null,"spread":false},{"title":"0d6e1b496a4076240ea1109cadfb77a9bceba2 <span style='color:#111;'> 10.90KB </span>","children":null,"spread":false},{"title":"0da228d2b0557a52a5bb026275b15a31a6056f <span style='color:#111;'> 1.94KB </span>","children":null,"spread":false},{"title":"0dd7ddbecf25d6a0bce31588f2c16e1b860a94 <span style='color:#111;'> 22.79KB </span>","children":null,"spread":false},{"title":"0e2a06f4bc75a8b528f4ce94070e75355f8139 <span style='color:#111;'> 14.26KB </span>","children":null,"spread":false},{"title":"0f99a430ba249750056cb3ea1af9d548319cae <span style='color:#111;'> 59B </span>","children":null,"spread":false},{"title":"102457e4c26f3a7754a776096e9fa55392ec9b <span style='color:#111;'> 2.17KB </span>","children":null,"spread":false},{"title":"102d5f6e8d55fe3abcdebd4332179b3ff769b2 <span style='color:#111;'> 25.15KB </span>","children":null,"spread":false},{"title":"10b8bb2b6056bfbbe4e19e2fabceeb800e174c <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"1101a4cbc37498094247a8924d8679648a8b02 <span style='color:#111;'> 1.21KB </span>","children":null,"spread":false},{"title":"11747a6b53f063503992c3903d932f54cf6c57 <span style='color:#111;'> 815B </span>","children":null,"spread":false},{"title":"119b3ec185ea91fb39170757e2ae9954330709 <span style='color:#111;'> 1.94KB </span>","children":null,"spread":false},{"title":"11badace3d93a0e3729e756bc5d28f0deca979 <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"11e02bffc8781a6eaacb2e13abeb861e17ad07 <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false},{"title":"11f2ef87c894fcebd0c3a61a2a77f4f753f2e9 <span style='color:#111;'> 415B </span>","children":null,"spread":false},{"title":"12c3c156e65be8560eea8b6e9b484c8b1a2087 <span style='color:#111;'> 392B </span>","children":null,"spread":false},{"title":"12da11c92825c21886a94388ac068d9c9ee1d1 <span style='color:#111;'> 876B </span>","children":null,"spread":false},{"title":"1435f2140dd6d25644926322c8e7109d1adcbc <span style='color:#111;'> 865B </span>","children":null,"spread":false},{"title":"145a46288800add96ec711de6c93b04afd017f <span style='color:#111;'> 2.21KB </span>","children":null,"spread":false},{"title":"14cb475581a54c64dd002e516643f2dda1927b <span style='color:#111;'> 1.01KB </span>","children":null,"spread":false},{"title":"156099f134f971f42206d8f76c38f3ad725f0b <span style='color:#111;'> 27.29KB </span>","children":null,"spread":false},{"title":"165bfba561ea6141b0fff4426c1a38ee0cedeb <span style='color:#111;'> 171B </span>","children":null,"spread":false},{"title":"1812656d7a931d06b6cc88759724167d76ef0a <span style='color:#111;'> 30.95KB </span>","children":null,"spread":false},{"title":"181b3e7ac8d17df5daf0d12cf35b317cd796a0 <span style='color:#111;'> 5.38KB </span>","children":null,"spread":false},{"title":"18bb106e072c8af7f2a9b51a53b4bdc6ca75d2 <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false},{"title":"193e4a68ddc959ec3a55b0b31e7bded8f06746 <span style='color:#111;'> 51.07KB </span>","children":null,"spread":false},{"title":"1988052c23f34cd27df4cdda445705c57ed102 <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"1991c23cf3bc85cdd136a0c2caba5ff1d5a933 <span style='color:#111;'> 742B </span>","children":null,"spread":false},{"title":"1995bcfefae2e984b64c3ea621e0e29b9f1ab0 <span style='color:#111;'> 4.93KB </span>","children":null,"spread":false},{"title":"199a8691fea7f87fb772385a2816dc7827180e <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"19eb9c2993abcbdd79a886a2191878d459f8af <span style='color:#111;'> 12.48KB </span>","children":null,"spread":false},{"title":"1ad8e79736cd5c26506669bc28433216443202 <span style='color:#111;'> 1.15KB </span>","children":null,"spread":false},{"title":"1b14be6fa1926597682614a2fa337bcf5c1319 <span style='color:#111;'> 5.13KB </span>","children":null,"spread":false},{"title":"1bb434814107eb79d7a30b676d344b0df2f8ce <span style='color:#111;'> 438B </span>","children":null,"spread":false},{"title":"1c5b0365b481be15c61b4bd62fd3e5d153500b <span style='color:#111;'> 30.96KB </span>","children":null,"spread":false},{"title":"1d06d3e8bbd6c08d05fd0b3e9c0f9c14534335 <span style='color:#111;'> 441B </span>","children":null,"spread":false},{"title":"1d27c5908449354badf3e00cf5e3002a4f97ac <span style='color:#111;'> 2.96KB </span>","children":null,"spread":false},{"title":"1de5688fac2f8870a2d6d66bfa59e2a08284bb <span style='color:#111;'> 766B </span>","children":null,"spread":false},{"title":"1e8c596621a3c28f83794324748fda958047bd <span style='color:#111;'> 697B </span>","children":null,"spread":false},{"title":"1f95c6c304905da1d92986183ef843c8c21f9d <span style='color:#111;'> 8.38KB </span>","children":null,"spread":false},{"title":"1ffb1d0f9381da82f267e79ef197117f61ac59 <span style='color:#111;'> 6.83KB </span>","children":null,"spread":false},{"title":"210e9d4dbaa6ff6d83d4c353d56f32dcf777a5 <span style='color:#111;'> 543B </span>","children":null,"spread":false},{"title":"212adebc4dc67f04137112cba4f1c7611c839b <span style='color:#111;'> 785B </span>","children":null,"spread":false},{"title":"217e1a9a9b508c4a333eba302e6ece8075d6ed <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"232b66bfef3a25083c47d40b00cf12e46846f1 <span style='color:#111;'> 2.12KB </span>","children":null,"spread":false},{"title":"23eb69032e7c517b24d23d7ca88980400cede4 <span style='color:#111;'> 7.42KB </span>","children":null,"spread":false},{"title":"2441d5b53c2162e8ce061e5bb49f4af7e28a97 <span style='color:#111;'> 8.48KB </span>","children":null,"spread":false},{"title":"259ddcb5285213d1cea7f8b100ffc94c66a69d <span style='color:#111;'> 26B </span>","children":null,"spread":false},{"title":"25cf8ab0d8c0125ea95cfc56ef98ad53d8271e <span style='color:#111;'> 5.19KB </span>","children":null,"spread":false},{"title":"265c2073d106c9397bfd0e0674aa128ecec2e7 <span style='color:#111;'> 557B </span>","children":null,"spread":false},{"title":"2699e301d2fa2c6c838bcd37e25ece6837567b <span style='color:#111;'> 3.77KB </span>","children":null,"spread":false},{"title":"26ef3eaf5be622c51e359699dd393d2be67a9b <span style='color:#111;'> 8.63KB </span>","children":null,"spread":false},{"title":"26fae57abbe748ad385730f325382f84c98993 <span style='color:#111;'> 178B </span>","children":null,"spread":false},{"title":"28815ca78af6b1cf8c45485dbf2a560941601e <span style='color:#111;'> 7.72KB </span>","children":null,"spread":false},{"title":"288b28fe564d77c294050a619752c586015d8a <span style='color:#111;'> 1.68KB </span>","children":null,"spread":false},{"title":"2907892ff1dc404848c44db0f942035bc1e9dd <span style='color:#111;'> 1.77KB </span>","children":null,"spread":false},{"title":"29b2ab92db50243ae4adbcb80608f78f2d8223 <span style='color:#111;'> 3.93KB </span>","children":null,"spread":false},{"title":"2a521f0d2faae8f5b479abf993b9e95e9b9ed7 <span style='color:#111;'> 6.57KB </span>","children":null,"spread":false},{"title":"2d2a3c376aa403e0fddc6d3e19f1963928d305 <span style='color:#111;'> 1.69KB </span>","children":null,"spread":false},{"title":"2d91dc8db88b7c16ff8eb00e22b5118ec9f3d3 <span style='color:#111;'> 498B </span>","children":null,"spread":false},{"title":"2e74f6c9ad121312469952c22e06a7907ff71c <span style='color:#111;'> 10.91KB </span>","children":null,"spread":false},{"title":"2fd1cfcc02cf1aca32859a8522731e6ecc7b34 <span style='color:#111;'> 51.17KB </span>","children":null,"spread":false},{"title":"3083ceec5e79c5757f12f79d69cd18a53d09e3 <span style='color:#111;'> 240B </span>","children":null,"spread":false},{"title":"31329d3ad2daee0057e20c01120d4ba1838806 <span style='color:#111;'> 3.48KB </span>","children":null,"spread":false},{"title":"31effe436772a03ed20c71016a6b28a7a0aebd <span style='color:#111;'> 2.58KB </span>","children":null,"spread":false},{"title":"33c4b16f7f53d44293aaed3b37223367c92f1b <span style='color:#111;'> 3.40KB </span>","children":null,"spread":false},{"title":"33fdafe87fd58b30a31bd3f20c148ac9f102f0 <span style='color:#111;'> 4.12KB </span>","children":null,"spread":false},{"title":"34b42ac414a193511490f24bb0fbc857a87f02 <span style='color:#111;'> 2.90KB </span>","children":null,"spread":false},{"title":"361cb662dbf137a5a0b732f50fbe1ad4deafb6 <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false},{"title":"363d1ca1c0c18a94e4ed34779741498c14d07b <span style='color:#111;'> 701B </span>","children":null,"spread":false},{"title":"37fc70816af9b6a7842820996a24f82967210d <span style='color:#111;'> 4.25KB </span>","children":null,"spread":false},{"title":"384c050cdabb84ef2bfc25aa05332a6c45b1ef <span style='color:#111;'> 869B </span>","children":null,"spread":false},{"title":"396ad86dcccbfae2832f501802c54df5cf53ce <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"3b6ebd807d14a0ef8c976c41aca190d5196f07 <span style='color:#111;'> 792B </span>","children":null,"spread":false},{"title":"3bbefd27b155a5bd377e98aec23db739d116f6 <span style='color:#111;'> 1.49KB </span>","children":null,"spread":false},{"title":"3c44d91cb76edf65d54772f478eafa9d26a7ae <span style='color:#111;'> 2.71KB </span>","children":null,"spread":false},{"title":"3e63044f10057b0fc59dce702efaa8b022baed <span style='color:#111;'> 793B </span>","children":null,"spread":false},{"title":"3ebec9e9a3b33a97f02a6d64d0051b74d2b496 <span style='color:#111;'> 22.79KB </span>","children":null,"spread":false},{"title":"3f8cbbdadca2a0809fb7441119a488be715759 <span style='color:#111;'> 2.83KB </span>","children":null,"spread":false},{"title":"3fbd33971598fded3fbd780d765a48993cc9ce <span style='color:#111;'> 1003B </span>","children":null,"spread":false},{"title":"3fd9a5e6b2d5ea703fd01b6bd3da81d4b06492 <span style='color:#111;'> 10.82KB </span>","children":null,"spread":false},{"title":"4010f088682073bba8b2f1fe873a3dff1a54b6 <span style='color:#111;'> 2.71KB </span>","children":null,"spread":false},{"title":"......","children":null,"spread":false},{"title":"<span style='color:steelblue;'>文件过多,未全部展示</span>","children":null,"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明