Commit graph

29 commits

Author SHA1 Message Date
HaveAGitGat
c729fad9f5 Revert "Add new tests (#311)"
This reverts commit 2a0a7e1bfc.
2022-05-22 17:43:42 +01:00
HaveAGitGat
2a0a7e1bfc
Add new tests (#311)
* Add new tests

* Add tdarrSkipTest logic

* Add Tdarr_Plugin_00td_action_add_audio_stream_codec test

* Add Tdarr_Plugin_00td_action_handbrake_basic_options test

* Add Tdarr_Plugin_00td_action_handbrake_ffmpeg_custom test

* Add Tdarr_Plugin_00td_action_keep_one_audio_stream test

* Fix lint

* Fix reorder streams bug

* Add Tdarr_Plugin_00td_action_re_order_all_streams_v2 test

* Add Tdarr_Plugin_00td_action_remux_container test

* Add Tdarr_Plugin_00td_action_standardise_audio_stream_codecs test

* Lint

* Add Tdarr_Plugin_00td_filter_by_bitrate test

* Add Tdarr_Plugin_00td_filter_by_resolution test

* Add Tdarr_Plugin_00td_filter_by_size test

* Log all errors together, use chalk

* Add Tdarr_Plugin_075a_FFMPEG_HEVC_Generic test

* Add Tdarr_Plugin_075a_Transcode_Customisable test

* Add Tdarr_Plugin_075b_FFMPEG_HEVC_Generic_Video_Audio_Only test

* Add Tdarr_Plugin_075c_FFMPEG_HEVC_Generic_Video_Audio_Only_CRF20 test

* Add Tdarr_Plugin_075d_FFMPEG_HEVC_GPU_Generic_Video_Audio_Only_CRF20 test

* Add Tdarr_Plugin_076a_re_order_audio_streams test

* Add chalk

* Add Tdarr_Plugin_076b_re_order_subtitle_streams

* Add Tdarr_Plugin_077b_HandBrake_NVENC_264_Configurable test

* Add Tdarr_Plugin_a8hc_HaveAGitGat_HandBrake_H264_VeryFast1080p30 test

* Add Tdarr_Plugin_a9hc_HaveAGitGat_HandBrake_H264_Fast1080p30 test

* Add Tdarr_Plugin_a9hd_FFMPEG_Transcode_Specific_Audio_Stream_Codecs test

* Update qsv to vaapi (will handle input at later date)

* Add Tdarr_Plugin_a9he_New_file_size_check test

* useCloneDeep

* Add Tdarr_Plugin_a37x_Drawmonster_MP4_No_Title_Meta test

* Add Tdarr_Plugin_A47j_FFMPEG_NVENC_HEVC_Video_Only test

* Add Tdarr_Plugin_b38x_Nosirus_h265_aac_no_meta test

* Add Tdarr_Plugin_b39x_the1poet_surround_sound_to_ac3 test

* Add Tdarr_Plugin_bsh1_Boosh_FFMPEG_QSV_HEVC test

* Add Tdarr_Plugin_c0r1_SetDefaultAudioStream test

* Lint

* Add Tdarr_Plugin_d5d3_iiDrakeii_FFMPEG_NVENC_Tiered_MKV test

* Add Tdarr_Plugin_d5d4_iiDrakeii_Not_A_Video_Mjpeg_Fix test

* Add Tdarr_Plugin_da11_Dallas_FFmpeg_Presets_H264_MP4 test

* Tdarr_Plugin_DOOM_NVENC_Tiered_MKV_CleanAll test

* Remove logging

* Add Tdarr_Plugin_drdd_standardise_all_in_one test

* Add Tdarr_Plugin_e3jc_Tharic_H.264_MKV_480p30_No_Subs_No_Title_Meta test

* Add Tdarr_Plugin_e3jd_Tharic_H.264_MKV_720p30_No_Subs_No_Title_Meta test

* Add Tdarr_Plugin_e3je_Tharic_H.264_MKV_1080p30_No_Subs_No_Title_Meta test

* Add Tdarr_Plugin_e5c3_CnT_Keep_Preferred_Audio test

* Add Tdarr_Plugin_ER01_Transcode audio and video with HW (PC and Mac) test

* Add Tdarr_Plugin_fd5T_Sparticus_4K_AC3_No_Subs test

* Add Tdarr_Plugin_Greg_MP3_FFMPEG_CPU test

* Add Tdarr_Plugin_henk_Add_Specific_Audio_Codec test

* Add Tdarr_Plugin_hk75_Drawmonster_MP4_AAC_No_Subs_No_metaTitle test

* Add Tdarr_Plugin_hk76_GilbN_MP4_AAC_No_metaTitle test

* Add outputModify func

* Base tests on linux for now

* Add Tdarr_Plugin_jeons001_Downmix_to_stereo_and_apply_DRC test

* Add Tdarr_Plugin_lmg1_Reorder_Streams test

* Add Tdarr_Plugin_MC93_Migz1FFMPEG test

* Add Tdarr_Plugin_MC93_Migz1FFMPEG_CPU test

* Add Tdarr_Plugin_MC93_Migz1Remux test

* Add Tdarr_Plugin_MC93_Migz2CleanTitle test

* Add Tdarr_Plugin_MC93_Migz2CleanTitle test

* Add Tdarr_Plugin_MC93_Migz3CleanAudio test

* Add Tdarr_Plugin_MC93_Migz4CleanSubs test

* Add Tdarr_Plugin_MC93_Migz5ConvertAudio test

* Add Tdarr_Plugin_MC93_Migz6OrderStreams test

* Add Tdarr_Plugin_MC93_MigzImageRemoval test

* Add Tdarr_Plugin_MP01_MichPasCleanSubsAndAudioCodecs test

* Add Tdarr_Plugin_Mthr_VaapiHEVCTranscode test

* Add Tdarr_Plugin_nc7x_Drawmonster_No_Title_Meta test

* Add Tdarr_Plugin_r002_rootuser_FFMPEG_HQ_HEVC_MKV_Animation test

* Add Tdarr_Plugin_raf4_Floorpie_FFmpeg_Tiered_HEVC_MKV test

* Add Tdarr_Plugin_s7x8_winsome_h265 test
2022-05-22 18:32:59 +02: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