web/queue: add remuxing progress & general improvements

and a bunch of other stuff:
- size and percentage in queue
- indeterminate progress bar
- if libav wasm freezes, the worker kill itself
- cleaner states
- cleaner props
This commit is contained in:
wukko
2025-01-25 01:25:53 +06:00
parent c4c47bdc27
commit 44a99bdb3a
12 changed files with 117 additions and 53 deletions

View File

@@ -15,6 +15,9 @@ const ff = new LibAVWrapper((progress) => {
progress: {
durationProcessed: progress.out_time_sec,
speed: progress.speed,
size: progress.total_size,
currentFrame: progress.frame,
fps: progress.fps,
}
}
})
@@ -45,7 +48,7 @@ const remux = async (file: File) => {
self.postMessage({
cobaltRemuxWorker: {
progressInfo: {
progress: {
duration: Number(file_info.format.duration),
}
}