1
0
mirror of https://github.com/snobu/destreamer.git synced 2026-02-08 07:59:42 +00:00

Fix progress bar, remove temp file on ffmpeg error (#66)

* Delete the video file on ffmpeg error

* rework chunk calculation (with more tests it turns out it was not good for all durations)

Co-authored-by: kylon <kylonux@gmail.com>
This commit is contained in:
kylon
2020-04-16 18:21:02 +02:00
committed by GitHub
parent 176fa6e214
commit d89c0eea8c
3 changed files with 5 additions and 7 deletions

View File

@@ -137,5 +137,5 @@ export function ffmpegTimemarkToChunk(timemark: string) {
const mins = parseInt(timeVals[1]);
const secs = parseInt(timeVals[2]);
return hrs * 1000 + mins * 100 + secs;
return (hrs * 60) + mins + (secs / 60);
}