Giter Site home page Giter Site logo

[技术咨询] RK3588使用mk动态库推流(低帧率1FPS),再通过addStreamProxy拉流,帧率变为1000FPS about zlmediakit HOT 8 OPEN

TRYOKETHEPEN avatar TRYOKETHEPEN commented on June 15, 2024
[技术咨询] RK3588使用mk动态库推流(低帧率1FPS),再通过addStreamProxy拉流,帧率变为1000FPS

from zlmediakit.

Comments (8)

xiongguangjie avatar xiongguangjie commented on June 15, 2024

z这个应该是编码器码流里面携带的帧率

from zlmediakit.

TRYOKETHEPEN avatar TRYOKETHEPEN commented on June 15, 2024

z这个应该是编码器码流里面携带的帧率

你好,编码器使用的是RK3588的MPP硬件编码器,fps相关参数如下:
image
来自文档https://github.com/rockchip-linux/mpp/blob/develop/doc/Rockchip_Developer_Guide_MPP_CN.md#351-control%E4%B8%8Emppenccfg
image
来自文档https://github.com/rockchip-linux/mpp/blob/develop/doc/Rockchip_Developer_Guide_MPP_CN.md#42-%E7%BC%96%E7%A0%81%E5%99%A8demo

开发板按照如下设置编码器后:
encodefpssetting

只是会使此处的fps变化,时间戳增量仍然异常,录制视频帧率仍然是900~1000fps:
encode固定帧率

异常应该与编码器无关。

from zlmediakit.

TRYOKETHEPEN avatar TRYOKETHEPEN commented on June 15, 2024

另外进行试验如下:
输入视频流为25FPS,对输入的每n帧中丢弃(n-1)帧,只对其中1帧进行AI视觉处理并输出。
n≥6时,时间戳增量稳定出现异常。
n=4或5时,时间戳增量不稳定异常,刷新一下可能又正常了。
n≤3时,时间戳增量稳定正常。

n=8:
8抽7
n=5:
5抽4
5抽4临界
n=4:
4抽3
n=3:
3抽2

from zlmediakit.

xiongguangjie avatar xiongguangjie commented on June 15, 2024

ZLMediakit 的帧率,是通过解析sps里面的信息获取的(这个是h264的标准规定的,参考h264 sps vui 的解析),播放器也是这么做的,我看你的代码,dts 应该从0开始计数,你的代码直接获取系统时间,作为dts的,你要看dts的间隔值

from zlmediakit.

TRYOKETHEPEN avatar TRYOKETHEPEN commented on June 15, 2024

ZLMediakit 的帧率,是通过解析sps里面的信息获取的(这个是h264的标准规定的,参考h264 sps vui 的解析),播放器也是这么做的,我看你的代码,dts 应该从0开始计数,你的代码直接获取系统时间,作为dts的,你要看dts的间隔值

(1)sps我去学习一下,感谢回复。
(2)dts的间隔值是正常的。我也尝试了从0开始,每次+1000,现象一样。
(3)另外,这个yolo流转record4流,昨晚尝试了开启转hls后用web播放器播放,是正常的1FPS。

from zlmediakit.

xiongguangjie avatar xiongguangjie commented on June 15, 2024

ZLMediakit 的帧率,是通过解析sps里面的信息获取的(这个是h264的标准规定的,参考h264 sps vui 的解析),播放器也是这么做的,我看你的代码,dts 应该从0开始计数,你的代码直接获取系统时间,作为dts的,你要看dts的间隔值

(1)sps我去学习一下,感谢回复。 (2)dts的间隔值是正常的。我也尝试了从0开始,每次+1000,现象一样。 (3)另外,这个yolo流转record4流,昨晚尝试了开启转hls后用web播放器播放,是正常的1FPS。
(2), 时间间隔正常,那你的截图中时间戳异常是咋回事,是怎么判断识别的,如果hls 正常的,其他协议应该也一样,因为都是用的同一个时间戳

from zlmediakit.

TRYOKETHEPEN avatar TRYOKETHEPEN commented on June 15, 2024

“时间间隔正常,那你的截图中时间戳异常是咋回事” 这就是我提这个issue要问的问题呀

from zlmediakit.

xiongguangjie avatar xiongguangjie commented on June 15, 2024

“时间间隔正常,那你的截图中时间戳异常是咋回事” 这就是我提这个issue要问的问题呀

你是通过什么办法来判断时间戳异常的?你可以通过rtsp协议抓包来分析时间戳是否异常

from zlmediakit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.