1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-24 19:32:29 +01:00

auto html5ify ffv1

fixes #2110
This commit is contained in:
Mikael Finstad 2024-08-15 12:59:30 +02:00
parent c3e110ac27
commit e3da5e841a
No known key found for this signature in database
GPG Key ID: 25AB36E3E81CBC26

View File

@ -352,7 +352,8 @@ export function willPlayerProperlyHandleVideo({ streams, hevcPlaybackSupported }
// https://github.com/mifi/lossless-cut/issues/975 // https://github.com/mifi/lossless-cut/issues/975
// https://github.com/mifi/lossless-cut/issues/1407 // 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 // 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', 'mpeg2video', 'tscc2', 'dvvideo', 'mjpeg']; // https://github.com/mifi/lossless-cut/issues/2110
const chromiumSilentlyFailCodecs = ['prores', 'mpeg4', 'mpeg2video', 'tscc2', 'dvvideo', 'mjpeg', 'ffv1'];
if (!hevcPlaybackSupported) chromiumSilentlyFailCodecs.push('hevc'); if (!hevcPlaybackSupported) chromiumSilentlyFailCodecs.push('hevc');
return realVideoStreams.some((stream) => !chromiumSilentlyFailCodecs.includes(stream.codec_name)); return realVideoStreams.some((stream) => !chromiumSilentlyFailCodecs.includes(stream.codec_name));
} }