dangeroustech / dangeroustech/StreamDL
feat: parse FFmpeg progress for structured download status
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 19
- Forks
- 0
- Avg merge
- 29m
- Merged PRs (30d)
- 1
Description
Problem
StreamDL has no structured download progress data. FFmpeg output goes to logs only, so users cannot see speed, percentage, or ETA without parsing debug output manually.
This blocks a proper TUI (#552) and limits observability for long VOD downloads.
Proposed scope
Parse FFmpeg stderr progress lines during live and VOD downloads and expose structured state internally, e.g.:
- Channel / download type (live vs vod)
- Bytes downloaded / duration recorded
- Speed, percentage (when determinable), ETA
Suggested approach
- Parse FFmpeg
-progressoutput or stderrtime=/speed=/size=lines indownload_stream.go - Hold active download state in memory (similar pattern to notice buffer / active user tracking)
- Log at DEBUG by default; reserve INFO for tick summary + notices
Out of scope (follow-ups)
- Full bubbletea TUI (#552) — this issue is the data layer only
- Push notifications / webhooks
Dependencies / related
- #552 — TUI for download progress and stream management
- Notice buffer (merged #574) — errors/warnings already flushed per tick; progress is complementary
Acceptance criteria
- Active downloads expose parseable progress while FFmpeg is running
- Unit tests for progress line parsing (sample FFmpeg stderr fixtures)
- No regression to existing download completion / move / post_script behaviour
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in download_stream.go and trace how FFmpeg is launched for live and VOD downloads. Define the in-memory active download state and parse the proposed progress fields, then add unit tests using sample FFmpeg stderr fixtures. Done means active downloads expose parseable progress without regressing completion, move, or post_script behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 54/100