Repository navigation
Conversation
Drop any number of karaoke zips and loose cdg+mp3 files at once; they pair by basename and convert sequentially through the shared ffmpeg.wasm worker. Outputs auto-download as each finishes (Save to folder via the File System Access API on Chromium), so memory stays flat at any batch size; only the latest finished item is retained for preview. - classifyBatch replaces selectInput (single input is the degenerate case; a zip dropped with a loose pair now converts both) - pure queue reducer + module-scope sequential runner (converting.ts idiom), consumed via useSyncExternalStore - session-scoped duplicate skip (basename + size, visible row with Convert anyway; never applies to a lone deliberate re-drop) - Skip / Stop batch cancel verbs, per-item Retry, continue-on-error - worker recycled every 10 conversions to reset the wasm heap - wake lock + beforeunload guard while a batch runs - batch_* analytics events; conversion_* gain batch_id/index/size - single-file flow unchanged, including hold-for-partner
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements #73. Draft for test-driving, not for merge.
What this does
Drop any number of karaoke zips and/or loose
.cdg+.mp3files. Loose files pair by case-insensitive basename; each zip is its own item. Items convert sequentially through the existing shared ffmpeg.wasm worker and appear in a queue with per-item state (queued / converting with progress + ETA / saved / failed with reason / cancelled / skipped duplicate). Dropping more files mid-run appends. One item keeps today's single-file UI exactly.Outputs auto-download as each finishes; on Chromium a "Save to folder" button streams them to a picked directory instead. Only the latest finished item's blob is retained (for the preview), so memory stays flat regardless of batch size.
Design decisions (details in #73)
classifyBatchreplacesselectInput; one deliberate behavior change: a zip dropped together with a loose pair converts both (the zip used to silently win).Test evidence
Known limitations (v1, by design)