mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-09 15:38:19 -07:00
Update Tdarr_Plugin_a9hd_FFMPEG_Transcode_Specific_Audio_Stream_Codecs.js
This commit is contained in:
parent
c957093f09
commit
c5a1ee55a9
1 changed files with 2 additions and 2 deletions
|
|
@ -97,7 +97,7 @@ module.exports.plugin = function plugin(file, librarySettings, inputs) {
|
|||
|
||||
|
||||
|
||||
var codecs_to_transcode = inputs.codecs_to_transcode
|
||||
var codecs_to_transcode = inputs.codecs_to_transcode.split(',')
|
||||
var hasStreamsToTranscode = false
|
||||
|
||||
|
||||
|
|
@ -107,7 +107,7 @@ module.exports.plugin = function plugin(file, librarySettings, inputs) {
|
|||
|
||||
if (file.ffProbeData.streams[i].codec_type.toLowerCase() == "audio" &&
|
||||
file.ffProbeData.streams[i].codec_name &&
|
||||
codecs_to_transcode.toLowerCase().includes(file.ffProbeData.streams[i].codec_name.toLowerCase())
|
||||
codecs_to_transcode.includes(file.ffProbeData.streams[i].codec_name.toLowerCase())
|
||||
) {
|
||||
|
||||
ffmpegCommand += ` -map 0:${i} -c:${i} ${encoder} `
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue