Subtitle Fix

Added fix for subtitles per https://discordapp.com/channels/623392507828371476/626268797472604160/695001638628360212

Fixes error:

`
Stream map '0:s' matches no streams.

To ignore this, add a trailing '?' to the map.
`
make-only-subtitle-default
Miasma 6 years ago committed by GitHub
parent 74c5b19251
commit 06e28fa832
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -101,7 +101,7 @@ function plugin(file) {
//mitigate errors due to embeded pictures
try {
if ((file.ffProbeData.streams[i].codec_name.toLowerCase() == "png" || file.ffProbeData.streams[i].codec_name.toLowerCase() == "bmp" || file.ffProbeData.streams[i].codec_name.toLowerCase() == "mjpeg") && file.ffProbeData.streams[i].codec_type.toLowerCase() == "video" ) {
map = `-map 0:v:0 -map 0:a -map 0:s`
map = `-map 0:v:0 -map 0:a -map 0:s?`
}
}
catch (err) { }

Loading…
Cancel
Save