mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-15 02:05:54 -07:00
commit
3d152f9d63
1 changed files with 3 additions and 3 deletions
|
|
@ -66,9 +66,6 @@ function plugin(file, librarySettings, inputs) {
|
||||||
return response
|
return response
|
||||||
}
|
}
|
||||||
|
|
||||||
bitrateSettings = `-b:v ${targetBitrate}k -minrate ${minimumBitrate}k -maxrate ${maximumBitrate}k`
|
|
||||||
response.infoLog += `Container for output selected as ${inputs.container}. \n Current bitrate = ${~~(file.file_size / (duration * 0.0075))} \n Bitrate settings: \nTarget = ${targetBitrate} \nMinimum = ${minimumBitrate} \nMaximum = ${maximumBitrate} \n`
|
|
||||||
|
|
||||||
if (file.ffProbeData.streams[0].codec_name == 'hevc' && file.container == inputs.container) {
|
if (file.ffProbeData.streams[0].codec_name == 'hevc' && file.container == inputs.container) {
|
||||||
response.processFile = false
|
response.processFile = false
|
||||||
response.infoLog += `☑File is already in ${inputs.container} & hevc. \n`
|
response.infoLog += `☑File is already in ${inputs.container} & hevc. \n`
|
||||||
|
|
@ -82,6 +79,9 @@ function plugin(file, librarySettings, inputs) {
|
||||||
return response
|
return response
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bitrateSettings = `-b:v ${targetBitrate}k -minrate ${minimumBitrate}k -maxrate ${maximumBitrate}k`
|
||||||
|
response.infoLog += `Container for output selected as ${inputs.container}. \n Current bitrate = ${~~(file.file_size / (duration * 0.0075))} \n Bitrate settings: \nTarget = ${targetBitrate} \nMinimum = ${minimumBitrate} \nMaximum = ${maximumBitrate} \n`
|
||||||
|
|
||||||
//codec will be checked so it can be transcoded correctly
|
//codec will be checked so it can be transcoded correctly
|
||||||
if (file.video_codec_name == 'h263') {
|
if (file.video_codec_name == 'h263') {
|
||||||
response.preset = `-c:v h263_cuvid`
|
response.preset = `-c:v h263_cuvid`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue