The swiss army knife of lossless video/audio editing
convert all non webvtt to webvtt in webm
Mikael Finstad789f857e26b1
diff --git a/src/renderer/src/util/streams.ts b/src/renderer/src/util/streams.tsindex b98076a5..cb57c5d2 100644--- a/src/renderer/src/util/streams.ts+++ b/src/renderer/src/util/streams.ts@@ -126,8 +126,9 @@ function getPerStreamFlags({ stream, outputIndex, outFormat, manuallyCopyDisposi// https://github.com/mifi/lossless-cut/issues/418// https://www.reddit.com/r/PleX/comments/bcfvev/can_someone_eli5_subtitles/addCodecArgs('srt');- } else if (outFormat === 'webm' && stream.codec_name === 'mov_text') {+ } else if (outFormat === 'webm' && stream.codec_name !== 'webvtt') {// Only WebVTT subtitles are supported for WebM.+ // https://github.com/mifi/lossless-cut/issues/2179#issuecomment-2395413115addCodecArgs('webvtt');// eslint-disable-next-line unicorn/prefer-switch} else if (outFormat === 'srt') { // not technically lossless but why not