ffmpegwasm / ffmpegwasm/ffmpeg.wasm

Slow decoding with avcodec_send_packet?

未关闭
#240 1 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C
星标
17.8k
派生
1.1k
PR 合并指标
30 天内没有已合并 PR

描述

I noticed that FFmpeg wasm decoding an 1080p 30fps video can only achieve around 25fps on my MacBook Pro (2GHz 4-core i5). However native FFmpeg binary or regular video player can easily achieve >60fps.

I timed different functions in the decoding loop - it turns out calling `avcodec_send_packet` in FFmpeg takes about 40ms (which counts for about 25fps). I suspect this core function being slow is because FFmpeg wasm disables most hardware acceleration and it's single threaded by default?

Just want to check if this is a known issue and if there's existing solutions for boosting the performance. Many thanks!

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。