mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 15:38:19 -07:00
commit
131406f364
6 changed files with 29 additions and 9 deletions
|
|
@ -5,7 +5,7 @@ function details() {
|
|||
Name: "Migz-Transcode Using CPU & FFMPEG",
|
||||
Type: "Video",
|
||||
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",
|
||||
Link: "https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/Community/Tdarr_Plugin_MC93_Migz1FFMPEG_CPU.js",
|
||||
Tags:'pre-processing,ffmpeg,video only,configurable,h265',
|
||||
|
|
|
|||
|
|
@ -5,10 +5,10 @@ function details() {
|
|||
Name: "Migz-Clean title metadata",
|
||||
Type: "Video",
|
||||
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",
|
||||
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 videoIdx = 0
|
||||
var audioIdx = 0
|
||||
var subtitleIdx = 0
|
||||
var convert = false
|
||||
|
||||
if (file.fileMedium !== "video") {
|
||||
|
|
@ -53,14 +55,32 @@ function plugin(file) {
|
|||
} catch (err) { }
|
||||
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.preset = `,${ffmpegCommandInsert} -c copy`
|
||||
response.reQueueAfter = true;
|
||||
response.processFile = true;
|
||||
}else{
|
||||
} else {
|
||||
response.infoLog += "☑File has no title metadata \n"
|
||||
}
|
||||
return response
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ function details() {
|
|||
Name: "Migz-Clean audio streams",
|
||||
Type: "Audio",
|
||||
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",
|
||||
Link: "https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/Community/Tdarr_Plugin_MC93_Migz3CleanAudio.js",
|
||||
Tags:'pre-processing,ffmpeg,audio only,configurable',
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ function details() {
|
|||
Name: "Migz-Clean subtitle streams",
|
||||
Type: "subtitless",
|
||||
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",
|
||||
Link: "https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/Community/Tdarr_Plugin_MC93_Migz4CleanSubs.js",
|
||||
Tags:'pre-processing,ffmpeg,subtitle only,configurable',
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ function details() {
|
|||
Name: "Migz-Convert audio streams",
|
||||
Type: "Audio",
|
||||
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",
|
||||
Link: "",
|
||||
Tags:'pre-processing,ffmpeg,audio only,configurable',
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ function details() {
|
|||
Name: "Migz-Organize Streams",
|
||||
Type: "Streams",
|
||||
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",
|
||||
Link: "https://github.com/HaveAGitGat/Tdarr_Plugins/blob/master/Community/Tdarr_Plugin_MC93_Migz6OrderStreams.js",
|
||||
Tags:'pre-processing,ffmpeg,'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue