Comments (6)
Bear in mind that memcpy
and Resize
time should not be counted in HW decoding time.
In particular, av_hwframe_transfer_data()
already includes memcpy
for AV_PIX_FMT_DRM_PRIME => AV_PIX_FMT_NV12 conversion.
Therefore your code contains redundant memcpy
.
from ffmpeg-rockchip.
I have a similar problem, even without using memcpy and Resize.
from ffmpeg-rockchip.
I've counted the cost on several interfaces. ‘av_read_frame’ cost almost 20ms per frame. I send data three times just receive decoded data once sussessfully. The log message indicates that the queue is full. In other words, the result can only be returned once if the data is read three times and it takes almost 60 ms. According to the information I have observed from the log, it seems that the decoding time is larger than reading time. But from the experiments done by others, if I do not carry out the copy operation (just export drm_prime), the decoding time is only a few ms.
from ffmpeg-rockchip.
I did find an issue regarding the high latency. Please try this patch and see if it helps.
from ffmpeg-rockchip.
That's great. It works. :)
from ffmpeg-rockchip.
Closed by e753665
from ffmpeg-rockchip.
Related Issues (17)
- Hello When I compile, I encounter an error. HOT 2
- 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 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
- avcodec_send_frame(codec_ctx_, frame_) failed. HOT 7
- Generic error in external library HOT 2
- addr = mpp_buffer_get_ptr(desc->buffers[i]); core dump HOT 2
- Reducing Latency in ffplay with ffmpeg-rockchip Compared to gstreamer for RTSP Streams HOT 8
- 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.