* Create Tdarr_Plugin_bsh1_Boosh_FFMPEG_QSV_HEVC.js
* Update Tdarr_Plugin_bsh1_Boosh_FFMPEG_QSV_HEVC.js
* Update Tdarr_Plugin_bsh1_Boosh_FFMPEG_QSV_HEVC.js
* Update Tdarr_Plugin_bsh1_Boosh_FFMPEG_QSV_HEVC.js
Corrected some tooltips. Plugin should now have all the descriptions correct & should round bitrates down to avoid decimals on the ffmpeg cmd.
* Initial sweep through noted issues
Initial sweep through all issues. Spelling should be corrected.
Unneeded returns & parenthesis removed.
Force conform added for mp4>mkv etc.
Encoder pre-set speed changed to slow default.
10 bit option now correctly allows encode to 10bit with separate check if file is already 10bit.
Comments & layout improved
* Another round of fixes
Spelling cleaned up again
10bit encode logic corrected again
Vars cleaned up
Comments formatted a bit better
* Fix checkPlugins error
* Fixed input types
Input types should be fixed
Merged change to replace "function details"
Minor correction to a comment in the wrong place
* Very minor update to strings
Just adding some full stops to ends of lines
* Create Tdarr_Plugin_bsh1_Boosh_FFMPEG_QSV_HEVC.js
* Update Tdarr_Plugin_bsh1_Boosh_FFMPEG_QSV_HEVC.js
* Update Tdarr_Plugin_bsh1_Boosh_FFMPEG_QSV_HEVC.js
* Update Tdarr_Plugin_bsh1_Boosh_FFMPEG_QSV_HEVC.js
Corrected some tooltips. Plugin should now have all the descriptions correct & should round bitrates down to avoid decimals on the ffmpeg cmd.
* Initial sweep through noted issues
Initial sweep through all issues. Spelling should be corrected.
Unneeded returns & parenthesis removed.
Force conform added for mp4>mkv etc.
Encoder pre-set speed changed to slow default.
10 bit option now correctly allows encode to 10bit with separate check if file is already 10bit.
Comments & layout improved
* Another round of fixes
Spelling cleaned up again
10bit encode logic corrected again
Vars cleaned up
Comments formatted a bit better
* Fix checkPlugins error
* Lint
* Changed strings to numbers for bitrate settings
Also added "k" to some strings for the info logs so they are more consistent
* Fix for possible issue where target bitrate ends up higher than current bitrate
Been reported that a file ended up coming out larger and in fact the target bitrate somehow ended up being double the current bitrate instead of half.
Never seen this myself but I've changed two things.
Adjusted the targetBitrate calculation to ensure halving it happens last. Then added in a protection incase the target bitrate ends up equal or higher than the current bitrate.
* Fix for If checks after changing strings to numbers
Due to changing the strings to numbers some IF checks needed updating to check if things were "0" now instead of just blank.
* Tidy up of tooltips to add more info
Tidied up tooltips for hevc options to make them clearer and formatted better
Also removed some lines which were unneeded
* Reverting change from string to number
Changed the inputs back to strings. As numbers we can't default them to a blank value which is better for users
Also moved HDR check to top of video check to ensure it's caught before we start trying to remux anything.
* Changed inputs back to numbers
Text entries now changed back to numbers. Tooltip explains that 0 means disabled and a valid number is needed to use them.
* Very minor fix
Left space at end of "extraArguments" to ensure it doesn't disrupt the rest of the ffmpeg cmd line
* Lint error
* Updated to account for OS types
Updated to account for OS types & clean up of decode & encode steps. Another clean-up of tooltips as well
* Another cleanup
Cleanup tooltips & comments
* Another change to tooltips
* Another cleanup
Also corrected messy info for the OS options
* Another cleanup of Tooltips
Try and make them much clearer...
* Remove bad comment
* Revert "Merge branch 'master' of https://github.com/Boosh1/Tdarr_Plugins"
This reverts commit 116fdc5df958cde059289d0caa8466e187f3f616, reversing
changes made to bf4f1bfeb5e896279aca85a467e1fea7e0026309.
* Revert "Revert "Merge branch 'master' of https://github.com/Boosh1/Tdarr_Plugins""
This reverts commit 5de425147a640f1328f6192e0155fdfe5da59143.
Co-authored-by: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com>
* Add 10bit output boolean
Certain media benefits from being pushed into 10bit if not already. This could be improved by detecting if the source file already is 10bit and maybe assigning a special main10 profile.
* edits per review comments
* Fix rename issue
* Cleanup
Had to revert from a ternary since ESLint got mad
Co-authored-by: supersnellehenk <rick@marojeri.nl>
* Fixed the NaN issue with BitRates. Some files had bitrate missing in the
MediaInfo data so pulling from the "extra" section for those. Also
resolved an issue with the way the findMediaInfoItem function wasn't
working with subtitle tracks (well it wasn't working for all files due
to the general section because of a previous attempted subtitle fix but
this should be much much much better and work in most all cases).
* Updating to comply with eslint. Unabe to get stream matching function to
work so changed eqeqeq to warning.
* Re-add string
* parseInt
* Merge remote-tracking branch 'refs/remotes/origin/master'
* Modified variable names to use the lowerCamelCase naming convetion
* Fixed eslint issue
* Fixed an out of memory issue that prevented .ts files from being
processed by removing the framerate portion of the video filter
command when processing a .ts file.
Removed a bunch of variables used for building the ffmpeg command and
moved the actual strings down to where the logic is used. Reducing
plugin file size and variable ussage.
Fixed a minor bug related to changing the video height where it would
always use the 1080 value rather than using the value used in the input.
* Fixed issue with template line.
* Removed the commented code. Cleaned up other comments to improve
readability.
Co-authored-by: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com>
Made a plugin that converts from Apples ALAC codec to FLAC, losslessly. I use this myself and figured someone else might use it because there are no music library plugins.
* Fix sonarr dir match
Not everyone has the same paths between Sonarr and Tdarr, especially when running in Docker. This fixes the issue where those paths don't match by just looking at the show folder.
* Clearer logs
* Adds missing details and fixes tooltip formating
The audio & subtitle stream titles are not altogether removed. Should probably add another option for that down the road.
* Fix lint errors
* Adds missing details and fixes tooltip formating
The audio & subtitle stream titles are not altogether removed. Should probably add another option for that down the road.
* Fix lint errors
Co-authored-by: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com>
MediaInfo data so pulling from the "extra" section for those. Also
resolved an issue with the way the findMediaInfoItem function wasn't
working with subtitle tracks (well it wasn't working for all files due
to the general section because of a previous attempted subtitle fix but
this should be much much much better and work in most all cases).
Lets you set upper and lower bounds more accurately and prints out more accurate error figures. Default has error range of 2%, this default has error range of 1% (.5% above or below).
In testing it appears that going even to 99.8 <> 100.2 would also be acceptable and present little to no false positives with an error range of .4%. I've seen random failures that are just barely caught at 98% of original.
newData & oldData maintain up to 3 to 5 decimal places of accuracy sometimes. This allows ratio to more accurately reflect that. 2 places should be sufficient.
Bug where a Chinese original language movie would be set as und or undefined because of the return value from TMBD as 'cn'. The iso-language expects 'zh' for Chinese.
Also the array is unnecessary given TMDB should only every report a single language and is not reliant on imdb multiple languages.
* Fixed the NaN issue with BitRates. Some files had bitrate missing in the
MediaInfo data so pulling from the "extra" section for those. Also
resolved an issue with the way the findMediaInfoItem function wasn't
working with subtitle tracks (well it wasn't working for all files due
to the general section because of a previous attempted subtitle fix but
this should be much much much better and work in most all cases).
* Updating to comply with eslint. Unabe to get stream matching function to
work so changed eqeqeq to warning.
* Re-add string
* parseInt
* Merge remote-tracking branch 'refs/remotes/origin/master'
* Modified variable names to use the lowerCamelCase naming convetion
* Fixed eslint issue
Co-authored-by: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com>
* Add/update encodeURIComponent to allow for successful path uri encoding
* Breakup line to meet 120 char limit enforced by the tests
* concat string
Co-authored-by: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com>
* ignore cert mismatch for *.plex.direct
add parameter to ignore cert mismatches for custom domains since plex tries to push everything through their generated subdomains and it may see a cert issue.
* removed incorrect instruction no longer required
* Fixed the NaN issue with BitRates. Some files had bitrate missing in the
MediaInfo data so pulling from the "extra" section for those. Also
resolved an issue with the way the findMediaInfoItem function wasn't
working with subtitle tracks (well it wasn't working for all files due
to the general section because of a previous attempted subtitle fix but
this should be much much much better and work in most all cases).
* Updating to comply with eslint. Unabe to get stream matching function to
work so changed eqeqeq to warning.
* Re-add string
* parseInt
Co-authored-by: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com>
* Create Tdarr_Plugin_goof1_URL_Plex_Refresh
* forgot .js
* Fix lint errors
* requested mods, waiting fir UI menu specs
* moving requires into function as shown in example and a stupid mistake
* escape \ in new lines for info bubbles
* rewording for clarity
* handle path sub edge cases
* added filler return and fixed path builder bug
* Add check for inputUI type
* Fix inputUI types
* Create Tdarr_Plugin_goof1_URL_Plex_Refresh
* forgot .js
* requested mods, waiting fir UI menu specs
* Fix lint errors
* moving requires into function as shown in example and a stupid mistake
* lint, add checkPlugins fixes and add promises to requests
Co-authored-by: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com>
* Create parameter for new audio stream either before or after
parameter is empty; new stream will be created after the orginal.
parameter is 'before'; new stream is created before the existing stream
* Create parameter for new audio stream either before or after
parameter is empty; new stream will be created after the orginal.
parameter is 'before'; new stream is created before the existing stream
* Bug fix
* Add dropdown
* Set after
* lint
* Lint fix
Co-authored-by: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com>
* added downmix and DNC plugin
* removed unused functions and code. corrected link address
* renamed the file to match the correct shorthand. updated links and id too
* made adjustments to requirements for processing to only process files with 1 audio stream
* Lint fix
* Run checkPlugins and add recommended changes
Co-authored-by: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com>
* Tdarr_Plugin_Greg_MP3_FFMPEG_CPU.js
Trying to contribute a frequently mentioned feature, built and tested on a clustered Tdarr 2.00.10 in Debian/Ubuntu.
* trying to use ellint
* lint
* eslint with this projects configuration
* linting complete
* code review feedback incorporation
Made many changes based on the review from https://github.com/supersnellehenk !
* removed invalid Tag:
* trying to pass failed checks
added module exports dependencies, and moved global import. linting is happy after the change too.
* ESLint ignore
* Make some simplifications, added default values
* Update details, fix bug
Co-authored-by: Rick Meijer <rick@marojeri.nl>
Co-authored-by: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com>
* Update Tdarr_Plugin_henk_Add_Specific_Audio_Codec.js
Solves an issue where the plugin errors out on datatreams that do not have a copyright tag. It now only scans audio streams.
In addition, improved the routine, by checking if the desired output codex is already processed (not any audio stream)
* Fix lint issues
Co-authored-by: Rick Meijer <rick@marojeri.nl>
* Create Tdarr_Plugin_vdka_Tiered_CPU_CRF_Based_Configurable.js
Same as my GPU based one basically, just for CPU
* Update Tdarr_Plugin_vdka_Tiered_CPU_CRF_Based_Configurable.js
* Update Tdarr_Plugin_vdka_Tiered_CPU_CRF_Based_Configurable.js
* Update Tdarr_Plugin_vdka_Tiered_CPU_CRF_Based_Configurable.js
changed to using a switch and a single preset line, cleaned up linting
* Update Tdarr_Plugin_vdka_Tiered_CPU_CRF_Based_Configurable.js
eslint was a mistake
* Update Tdarr_Plugin_vdka_Tiered_CPU_CRF_Based_Configurable.js
i will never forget whoever invented eslint
* Update Tdarr_Plugin_vdka_Tiered_CPU_CRF_Based_Configurable.js
* Update Tdarr_Plugin_vdka_Tiered_CPU_CRF_Based_Configurable.js
being environmentally concious and not running the rest of the plugin unecessarily
* Update Tdarr_Plugin_vdka_Tiered_CPU_CRF_Based_Configurable.js
* Update Tdarr_Plugin_vdka_Tiered_CPU_CRF_Based_Configurable.js
If the audio is AC3 the log says "ll surround audio streams are in aac! " which is wrong, and confuses me when looking at log.
Updated to show correct info.
Since FFMPEG does not support converting 7.1 to AC3 the plugin was previously downmixing 7.1 audio to 5.1. Since I'm also running Tdarr_Plugin_MC93_Migz5ConvertAudio to downmix tracks anyway, this caused me to end up with duplicate 5.1 tracks in all of my videos. This update does not fix the fundamental issue of ffmpeg not converting 7.1 to AC3, instead it just makes the plugin ignore 7.1 streams entirely. Combined with Tdarr_Plugin_MC93_Migz5ConvertAudio, this should allow users to have stereo and 5.1 audio streams encoded in AC3 while keeping the original 7.1 stream if it exist.
Files not in H265 will be transcoded into H265 using hw with ffmpeg, assuming mkv container. Plugin uses QS if the node runs on a PC, or Videotoolbox if run on a Mac. Much thanks to Migz for bulk of the important code. Quality is controlled via bitrate adjustments - H264 to H265 assumes 0.5x bitrate. Resolution change from 1080p to 720p assumes 0.7x bitrate. Audio conversion is either 2 channel ac3 or 6 channel ac3, for maximal compatibility and small file size. All subtitles removed. The idea is to homogenize your collection to 1080p or higher movies with 5.1 audio, or 720p TV shows with 2.0 audio.`,
1) Update CPU plugin description as it mentions using a GPU which is incorrect.
2) Update CPU & GPU plugins to remove `\n` and `\\n` from the description fields as the description field doesn't seem to use these as new lines and were instead displaying as text.
1. Made changes to all plugins following lint testing. There are still various warnings/errors but my very limited knowledge of javascript means I just don't understand what the errors mean. Or in some cases I don't understand how to split the variable across several lines to confirm to the line limits.
I did manage to get it from
952 problems (943 errors, 9 warnings)
down to
37 problems (28 errors, 9 warnings)
2. Fix Flawed logic in FFMPEG plugins which would cause remux conditions to never trigger. Was checking if file was HEVC & VP9 which is impossible as they're both codecs.
3. Fixed a bug with CleanTitle where plugin would fail if a stream in the file didn't have a title.
4. Modify CleanSubtitle plugin to not remove sdh subtitles.
5. Include new plugin to just perform remuxes. Mainly aimed at remuxing to mkv or mp4.