1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-22 10:22:31 +01:00

auto-convert mpeg2video

fixes #1736
This commit is contained in:
Mikael Finstad 2023-10-19 16:22:59 +08:00
parent 1cf88d966c
commit 1e1e7e32da
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

View File

@ -274,7 +274,7 @@ export function willPlayerProperlyHandleVideo({ streams, hevcPlaybackSupported }
// https://github.com/mifi/lossless-cut/issues/975
// https://github.com/mifi/lossless-cut/issues/1407
// https://github.com/mifi/lossless-cut/issues/1505 https://samples.ffmpeg.org/archive/video/mjpeg/mov+mjpeg+pcm_u8++MPlayerRC1PlaybackCrash_david@pastornet.net.au.mov
const chromiumSilentlyFailCodecs = ['prores', 'mpeg4', 'tscc2', 'dvvideo', 'mjpeg'];
const chromiumSilentlyFailCodecs = ['prores', 'mpeg4', 'mpeg2video', 'tscc2', 'dvvideo', 'mjpeg'];
if (!hevcPlaybackSupported) chromiumSilentlyFailCodecs.push('hevc');
return realVideoStreams.some((stream) => !chromiumSilentlyFailCodecs.includes(stream.codec_name));
}