Comments (8)
I did find an issue regarding the high latency. Please try this patch and see if it helps.
from ffmpeg-rockchip.
I would suggest not to use ffplay at all, since it does not suppport the drm prime frames.
from ffmpeg-rockchip.
@daoan1412
FFmpeg does not recommend using ffplay to test latency too.
https://trac.ffmpeg.org/wiki/StreamingGuide#Testinglatency
By default, ffplay (as a receiver for testing latency) introduces significant latency of its own, so if you use it for testing (see troubleshooting section) it may not reflect latency accurately.
So I doubt such a high latency is caused by ffplay/SDL itself and the internal software frame copies.
And the autovideosink
in Rockchip gstreamer contains many hacks/optimizations specific to libmali driver. VOP2/GPU can directly access the DRM frames decoded by the MPP decoder through DMA, thus avoiding extra copies and latencies.
from ffmpeg-rockchip.
definetly the frame copies, internal ffmpeg yuv copy method is quite potato.
from ffmpeg-rockchip.
@nyanmisaka @hbiyik
However, my tests on a Linux x64 machine with an Nvidia card, using the same commands, showed almost no latency difference between ffplay and gstreamer. This leads me to believe that the issue does not lie in buffer copying. Moreover, I also conducted tests on the rk3588 platform with an Android version, building FFmpeg from source, and displaying it on the screen, which also did not show any significant real-time delay.
from ffmpeg-rockchip.
I will put PR wiki entry about how to get hw acceleration when rendering, but currently it is a little early, soon will be ready though
from ffmpeg-rockchip.
hi @nyanmisaka it seems that this patch has fixed the high latency issue for ffplay. Currently, I notice only about a 500ms delay compared to gstreamer, which is acceptable for my application.
from ffmpeg-rockchip.
Closed by e753665
from ffmpeg-rockchip.
Related Issues (20)
- Hello When I compile, I encounter an error. HOT 2
- The decoding time of a single frame is too long. HOT 6
- Rendering Docs HOT 5
- 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 6
- 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
- addr = mpp_buffer_get_ptr(desc->buffers[i]); core dump HOT 2
- avcodec_receive_packet blocking
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.