Commit graph

28 commits

Author SHA1 Message Date
HaveAGitGat
275025ece8 Add tdarrSkipTest logic 2022-05-21 13:40:08 +01:00
Zach Gelnett
c4707a5ee2
Fix error with ts files and cleanup (#271)
* 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>
2022-03-31 16:36:14 +02:00
HaveAGitGat
d6d2bc4edc Fix lint 2022-02-07 05:58:39 +00:00
HaveAGitGat
2cf805a6f6 Re-add string 2022-02-07 05:57:01 +00:00
Zach Gelnett
f8a1ada42b Updating to comply with eslint. Unabe to get stream matching function to
work so changed eqeqeq to warning.
2022-02-07 05:56:48 +00:00
Zach Gelnett
886ce0b2ae 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).
2022-02-07 05:56:48 +00:00
Zach Gelnett
829cb2739e
Updating variables so all are lowerCamelCase (#254)
* 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>
2022-01-15 11:25:57 +01:00
Zach Gelnett
93bc0c3a93
Fixed NaN Issue For Bitrates And findMediaInfoItem for Subtitles (#228)
* 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>
2022-01-02 18:24:26 +01:00
HaveAGitGat
7cc3b20d19 Disable global-require 2022-01-01 15:36:43 +00:00
HaveAGitGat
f037743bea Move imports into plugin function 2021-12-31 16:47:05 +00:00
HaveAGitGat
3042b35800 Use const lib = require('../methods/lib')(); for fresh imports 2021-12-31 16:22:15 +00:00
HaveAGitGat
db22ca561e update imports 2021-12-31 16:13:18 +00:00
HaveAGitGat
9e04b43e75 revertChanges 2021-12-28 23:05:31 +00:00
HaveAGitGat
2ba3df1977
Update lib (#227)
* Update library.js

* update imports

* update defaults
2021-12-28 22:37:51 +01:00
HaveAGitGat
c01d5db9e5
Add docker file link 2021-12-14 08:41:32 +01:00
HaveAGitGat
90e2b3923a Plugin update 2021-12-11 19:48:53 +00:00
HaveAGitGat
c208ace5f2 lint 2021-12-09 07:51:19 +00:00
HaveAGitGat
0b3a53bfec
Merge branch 'master' into JB69Plugin 2021-12-09 07:43:37 +00:00
Zach Gelnett
daf8970bd9 Fixed a typo (missing space) causing the script to not read the video
and audio bitrate for some files resulting in a larger file after
processing.
2021-05-16 20:26:31 -04:00
Zach Gelnett
c601495c55 Trying to fix this lint fun!! 2021-04-19 19:04:19 -04:00
Zach Gelnett
f9264cb44c Updated to hopefully pass the lint check. 2021-04-15 18:00:52 -04:00
Zach Gelnett
2fce8abb1a
Merge branch 'master' into JB69Plugin 2021-04-14 17:01:48 -04:00
Zach Gelnett
114c574716 Modified the plugins to use the built in file object rather than
creating their own mediainfo and ffprobe objects.
2021-04-14 16:55:29 -04:00
HaveAGitGat
7904647075 lint init 2020-12-10 17:43:41 +01:00
Zach Gelnett
51e3461c04 JarBinks made changes to allow this to work without the reorder plugin.
Fixed an issue with processing ts files as well as modified the check
for already processed to check video encoding, video resolution height,
and audio codec.
2020-08-19 18:35:07 -04:00
JarBinks
90ff03b668
JarBinks-Updates/Fixes/Bugs
- Added another 25% to resulting HEVC bitrate (Personal Preference)
- Better selection of best audio stream (Language/Channels/Bitrate) (Bug)
- Removed usage of Tdarr ffmpeg object in favor of internal object :-( (There was some mixing causing issues)
- Improved handling of converting video bit rate from 10 to 8 and 8 to 10 (Enhancement)
- Better handling of knowing when script has already been run on a file (Enhancement)
- Removed ffmpeg command output from script (Unnecessary)
- TODO: Need to move video decision out of stream loop similar to audio decisions
2020-06-30 00:37:44 -04:00
JarBinks
1ccd0e371d
Updates/Fixes
- Added @10% to target video bitrate
- Audio track selection now works better
- Added more to the documentation (A round the additional programs needed)
- Modified some of the user feedback to be clearer
- Cleaned up the usage of " vs. '
- Tested to work with the 10bit flag set to false
2020-05-25 15:20:58 -04:00
JarBinks
7d0a34af14
Create Tdarr_Plugin_JB69_JBHEVCQSV_MinimalFile.js 2020-05-22 15:31:16 -04:00