Merge pull request #56 from Migz93/master

Update: Migz Plugins
make-only-subtitle-default
HaveAGitGat 6 years ago committed by GitHub
commit 131406f364
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5,7 +5,7 @@ function details() {
Name: "Migz-Transcode Using CPU & FFMPEG", Name: "Migz-Transcode Using CPU & FFMPEG",
Type: "Video", Type: "Video",
Operation:"Transcode", Operation:"Transcode",
Description: `[TESTING]Files will be transcoded using CPU with ffmpeg, settings are dependant on file bitrate, working by the logic that H265 can support the same ammount of data at half the bitrate of H264. \n\n`, Description: `Files will be transcoded using CPU with ffmpeg, settings are dependant on file bitrate, working by the logic that H265 can support the same ammount of data at half the bitrate of H264. \n\n`,
Version: "1.0", Version: "1.0",
Link: "https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/Community/Tdarr_Plugin_MC93_Migz1FFMPEG_CPU.js", Link: "https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/Community/Tdarr_Plugin_MC93_Migz1FFMPEG_CPU.js",
Tags:'pre-processing,ffmpeg,video only,configurable,h265', Tags:'pre-processing,ffmpeg,video only,configurable,h265',

@ -5,10 +5,10 @@ function details() {
Name: "Migz-Clean title metadata", Name: "Migz-Clean title metadata",
Type: "Video", Type: "Video",
Operation: "Clean", Operation: "Clean",
Description: `[TESTING]This plugin removes video title metadata if it exists. \n\n`, Description: `This plugin removes title metadata from video/audio/subtitles, if it exists. \n\n`,
Version: "1.10", Version: "1.10",
Link: "https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/Community/Tdarr_Plugin_MC93_Migz2CleanTitle.js", Link: "https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/Community/Tdarr_Plugin_MC93_Migz2CleanTitle.js",
Tags:'pre-processing,ffmpeg,video only', Tags:'pre-processing,ffmpeg',
} }
} }
@ -26,6 +26,8 @@ function plugin(file) {
var ffmpegCommandInsert = '' var ffmpegCommandInsert = ''
var videoIdx = 0 var videoIdx = 0
var audioIdx = 0
var subtitleIdx = 0
var convert = false var convert = false
if (file.fileMedium !== "video") { if (file.fileMedium !== "video") {
@ -53,14 +55,32 @@ function plugin(file) {
} catch (err) { } } catch (err) { }
videoIdx++ videoIdx++
} }
if (file.ffProbeData.streams[i].codec_type.toLowerCase() == "audio") {
try {
if (typeof file.ffProbeData.streams[i].tags.title != 'undefined') {
ffmpegCommandInsert += ` -metadata:s:a:${audioIdx} title="" `
convert = true
}
} catch (err) { }
audioIdx++
}
if (file.ffProbeData.streams[i].codec_type.toLowerCase() == "subtitle") {
try {
if (typeof file.ffProbeData.streams[i].tags.title != 'undefined') {
ffmpegCommandInsert += ` -metadata:s:s:${subtitleIdx} title="" `
convert = true
}
} catch (err) { }
subtitleIdx++
}
} }
if(convert == true){ if (convert == true){
response.infoLog += "☒File has title metadata \n" response.infoLog += "☒File has title metadata \n"
response.preset = `,${ffmpegCommandInsert} -c copy` response.preset = `,${ffmpegCommandInsert} -c copy`
response.reQueueAfter = true; response.reQueueAfter = true;
response.processFile = true; response.processFile = true;
}else{ } else {
response.infoLog += "☑File has no title metadata \n" response.infoLog += "☑File has no title metadata \n"
} }
return response return response

@ -5,7 +5,7 @@ function details() {
Name: "Migz-Clean audio streams", Name: "Migz-Clean audio streams",
Type: "Audio", Type: "Audio",
Operation: "Clean", Operation: "Clean",
Description: `[TESTING]This plugin keeps only specified language audio tracks & can tags those that have an unknown language. \n\n`, Description: `This plugin keeps only specified language audio tracks & can tags those that have an unknown language. \n\n`,
Version: "2.00", Version: "2.00",
Link: "https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/Community/Tdarr_Plugin_MC93_Migz3CleanAudio.js", Link: "https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/Community/Tdarr_Plugin_MC93_Migz3CleanAudio.js",
Tags:'pre-processing,ffmpeg,audio only,configurable', Tags:'pre-processing,ffmpeg,audio only,configurable',

@ -5,7 +5,7 @@ function details() {
Name: "Migz-Clean subtitle streams", Name: "Migz-Clean subtitle streams",
Type: "subtitless", Type: "subtitless",
Operation: "Clean", Operation: "Clean",
Description: `[TESTING] This plugin keeps only specified language subtitle tracks & can tag those that have an unknown language. \n\n`, Description: `This plugin keeps only specified language subtitle tracks & can tag those that have an unknown language. \n\n`,
Version: "2.00", Version: "2.00",
Link: "https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/Community/Tdarr_Plugin_MC93_Migz4CleanSubs.js", Link: "https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/Community/Tdarr_Plugin_MC93_Migz4CleanSubs.js",
Tags:'pre-processing,ffmpeg,subtitle only,configurable', Tags:'pre-processing,ffmpeg,subtitle only,configurable',

@ -5,7 +5,7 @@ function details() {
Name: "Migz-Convert audio streams", Name: "Migz-Convert audio streams",
Type: "Audio", Type: "Audio",
Operation: "Transcode", Operation: "Transcode",
Description: `[TESTING]This plugin can convert any 2.0 audio track/s to AAC and can create downmixed audio tracks. \n\n`, Description: `This plugin can convert any 2.0 audio track/s to AAC and can create downmixed audio tracks. \n\n`,
Version: "2.00", Version: "2.00",
Link: "", Link: "",
Tags:'pre-processing,ffmpeg,audio only,configurable', Tags:'pre-processing,ffmpeg,audio only,configurable',

@ -5,7 +5,7 @@ function details() {
Name: "Migz-Organize Streams", Name: "Migz-Organize Streams",
Type: "Streams", Type: "Streams",
Operation: "Organize", Operation: "Organize",
Description: `[TESTING]Organizes streams into Video first, then Audio (2ch, 6ch, 8ch) and finally Subtitles. \n\n`, Description: `Organizes streams into Video first, then Audio (2ch, 6ch, 8ch) and finally Subtitles. \n\n`,
Version: "1.00", Version: "1.00",
Link: "https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/Community/Tdarr_Plugin_MC93_Migz6OrderStreams.js", Link: "https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/Community/Tdarr_Plugin_MC93_Migz6OrderStreams.js",
Tags:'pre-processing,ffmpeg,' Tags:'pre-processing,ffmpeg,'

Loading…
Cancel
Save