Comments (12)
Which chip are you using?
from ffmpeg-rockchip.
from ffmpeg-rockchip.
You can reduce the latency to a certain extent by disabling async mode in both rkrga filter and rkmpp encoder.
Add :async_depth=0
to scale_rkrga
filter and -surfaces 1
to h264_rkmpp
encoder.
from ffmpeg-rockchip.
谢谢你的回复,但是我发现还是没有并没有起到很大的效果,用vlc拉流后依然会过很长时间才显示第一帧,然后开始长时间的卡顿,之后恢复到流畅,测试了一下延迟大概在800ms左右,请问如何进一步地降低延迟以及避免一开始的卡顿现象?
hank you for your reply, but I found that it still did not have a great effect. After using vlc to pull the stream, it will still take a long time to display the first frame, and then it will start to freeze for a long time, and then it will return to smoothness. Test The delay is about 800ms. How can I further reduce the delay and avoid the initial lag?
from ffmpeg-rockchip.
Can you try this branch? https://github.com/nyanmisaka/ffmpeg-rockchip/commits/refactor-dec-logic/
from ffmpeg-rockchip.
再次感谢您的回复。我尝试了这个方法,这个方法对于减低延迟是有效的,它将延迟从730ms降低到了570ms。但是我又发现了一个新的问题,在长时间的运行后,它的延迟似乎在逐渐增加,在将近5分钟的运行后延迟达到了1400ms,请问有没有解决的方法?
Thanks again for your reply. I tried this method and it was effective in reducing the latency, it reduced the latency from 730ms to 570ms. But I discovered a new problem. After running for a long time, its delay seemed to be gradually increasing. After nearly 5 minutes of running, the delay reached 1400ms. Is there any solution?
from ffmpeg-rockchip.
I've run out of ideas. This branch adopts the rockchip maintainer's logic to reduce decoder latency.
1400ms sounds abnormal and may be caused by overheating of the chip and frequency reduction. Please check the temperature and use taskset -c 4-7 ffmpeg ...
to bind the transcoding task to the cortex-A76 big core.
Alternatively, you can switch to gstreamer-rockchip instead and see if it helps.
https://github.com/JeffyCN/rockchip_mirrors/tree/gstreamer-rockchip
from ffmpeg-rockchip.
OK, I got it, I'll try again, thank you very much for your help!
from ffmpeg-rockchip.
@bjw1107 when you push and pull streaming, just try set protocol tcp mode. eg: ffmpeg -hwaccel rkmpp -hwaccel_output_format drm_prime -afbc rga -f rtsp -rtsp_transport tcp -i rtsp://xxxx/Channels/101 -c:a copy -strict -2 -c:v h264_rkmpp -rc_mode CBR -b:v 400k -f rtsp -rtsp_transport tcp rtsp://xxxx/amera1
from ffmpeg-rockchip.
from ffmpeg-rockchip.
@bjw1107 specifiy transmission protocol is TCP, which can alleviate lag and screen flicker issues, but whether there will be cumulative delays requires long-term testing。You can also tell me your test results
from ffmpeg-rockchip.
Related Issues (20)
- Help building ffplay HOT 8
- 编译opencv with ffmpeg 时出错 HOT 1
- RK3566 performance issues on debian HOT 2
- HW decoding HEVC w/Jellyfin doesn't work when subtitles enabled HOT 7
- Rockchip BSP/vendor kernel is necessary, 5.10 and 6.1 are two tested versions...? HOT 4
- 更换了Armbian_23.11.1_Orangepi5-plus_bookworm_legacy_5.10.160.img后好像hevc 10解码失效了😭 HOT 2
- external library error? rkmpp decoder issue HOT 5
- Scaling affects color output HOT 2
- Tone-mapping slow after upgrading kernel. HOT 7
- leaking file descriptors HOT 11
- RTSP使用h264_rkmpp无法使用 HOT 1
- RTSP使用h264_rkmpp无法使用 HOT 1
- Use `h264_rkmpp` decoder video to fast and Use `h264` is no issue. HOT 3
- Use `h264_rkmpp` play rtsp stream, `avcodec_receive_frame` allways return -11. HOT 30
- lost the last frame in complex filter HOT 3
- Encoder endofstream problem (lost few final frames) HOT 2
- [hevc_rkmpp] Zerolatency encoding HOT 2
- consider supporting RV1126? HOT 4
- Green screen with the attached video sample HOT 36
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ffmpeg-rockchip.