Skip to content

57 bug high cpu usage when chaining ffdecoder with writegear#59

Merged
abhiTronix merged 6 commits into
devfrom
57-bug-high-cpu-usage-when-chaining-ffdecoder-with-writegear
Apr 18, 2026
Merged

57 bug high cpu usage when chaining ffdecoder with writegear#59
abhiTronix merged 6 commits into
devfrom
57-bug-high-cpu-usage-when-chaining-ffdecoder-with-writegear

Conversation

@abhiTronix
Copy link
Copy Markdown
Owner

@abhiTronix abhiTronix commented Apr 18, 2026

Brief Description

When using FFdecoder and WriteGear (from vidgear) together to decode and re-encode video frames, users may experience very high CPU utilization.

Requirements / Checklist

  • I have read the DeFFcode PR Guidelines.
  • I have read the DeFFcode Documentation.
  • I have updated the documentation files accordingly(if required).

Related Issue

#57

Context

When running FFdecoder.generateFrame() directly into WriteGear.write(), the CPU usage spikes to its absolute maximum. This PR adds a "Best Practices" or "Troubleshooting" section in the documentation explaining why this CPU spike happens and providing parameters to mitigate it depending on the user's goal.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Miscellaneous (if available):

None

- Enable navigation.prune for better sidebar performance
- Add creation date and fallback to git-revision-date plugin
- Configure mkdocstrings filters and fix options nesting
- Add mermaid diagram support via superfences custom fences
- Enable generic arithmatex and magiclink shorthand options
- Replace exclude plugin with exclude_docs directive
- Fix typo: "Recipies" -> "Recipes" in nav section
@abhiTronix abhiTronix added this to the v0.2.7 milestone Apr 18, 2026
@abhiTronix abhiTronix self-assigned this Apr 18, 2026
@abhiTronix abhiTronix added Documentation 📑 Improvements or additions to DeFFcode documentation. WIP 🏗️ Work in Progress labels Apr 18, 2026
@abhiTronix abhiTronix linked an issue Apr 18, 2026 that may be closed by this pull request
3 tasks
@abhiTronix abhiTronix added the Bug Fix 🐛 💣 Bug fix in progress !!! label Apr 18, 2026
@abhiTronix abhiTronix changed the base branch from master to dev April 18, 2026 09:27
@abhiTronix abhiTronix moved this to In Progress in VidGear + Deffcode Apr 18, 2026
@abhiTronix abhiTronix added CI : Skipped 🎲 Skip Continuous Integration checks for this PR. and removed WIP 🏗️ Work in Progress labels Apr 18, 2026
@abhiTronix abhiTronix merged commit 8524daa into dev Apr 18, 2026
1 of 9 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in VidGear + Deffcode Apr 18, 2026
@abhiTronix abhiTronix deleted the 57-bug-high-cpu-usage-when-chaining-ffdecoder-with-writegear branch April 18, 2026 09:35
@abhiTronix abhiTronix mentioned this pull request Apr 18, 2026
@abhiTronix abhiTronix added the Solved 🥅 Final goal achieved. label Apr 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Fix 🐛 💣 Bug fix in progress !!! CI : Skipped 🎲 Skip Continuous Integration checks for this PR. Documentation 📑 Improvements or additions to DeFFcode documentation. Solved 🥅 Final goal achieved.

Projects

Development

Successfully merging this pull request may close these issues.

[Bug]: High CPU Usage when chaining FFdecoder with WriteGear

1 participant