Commit graph

22 commits

Author SHA1 Message Date
HaveAGitGat
6dda238806 Format classic plugin names 2024-05-21 15:10:09 +01:00
Boosh1
03d8a75033 Added HDR support, Cleaned up info log & initial test fix
- Added HDR support. Tested as working but can have issues. Warning applied
- Made duration check a bit better with try statement
- Cleaned up how the info log was used so it's more consistent & fixed up trailing spaces & line breaks
- Initial test fix up but more will be needed
2024-03-02 19:33:42 +00:00
Boosh1
890c2642e1 Updates to video loop & darwin support
- Corrected some Mac/Darwin support, incorrect 10 bit options (In future will remove videotoolbox support and split into separate plugin)
- Improved video check loops, some logic did seem to not correctly stop when needed & the remove stream option had the wrong syntax so probably wouldn't have worked
2024-02-03 22:32:59 +00:00
Boosh1
8aadba1496 Final things, remove tag mkvpropedit & bump the Version number ;) 2024-01-26 21:02:18 +00:00
Boosh1
a17ac70d25 Noticed one last -vf filter check used a colon incorrectly
Changed to a comma which matches all other formatting with the -vf cmd & updated tests
2024-01-26 20:53:55 +00:00
Boosh1
f4c02bc997 Found new edge cases so changed how HW decode is triggered
Ended up finding more cases where errors would pop up and looks to all to do with HW decode.
- Now ensured that unless the incoming format is in the white list then sw decode is done instead
- Correctly removed -hwaccel cmd when sw decode happens preventing accidental hwdecode
- Specify the format to decode when using sw
- renamed oldformat var to match its use case (now swDecode)
- Info log updated with when SW decode happens and will report which incoming format caused it
2024-01-24 15:58:49 +00:00
Boosh1
23bef4c778 Protection against errors if unable to use MediaInfo or ffprobe
Just changed the videoBR logic to be inside a try block to avoid errors on rare instances where Media info & ffprobe fail
2024-01-17 20:30:08 +00:00
Boosh1
7f87af3c1b Quick update to tooltip 2024-01-16 12:10:55 +00:00
Boosh1
afe538fcbd Restored some cases for HW decode but commented out 2024-01-16 11:59:17 +00:00
Boosh1
a5dc4934ee Corrected -vf cmd so it's added on the end better 2024-01-15 21:28:41 +00:00
Boosh1
eb92f001be Updated new description & tests
Description updated since mkvpropedit is gone
Tests updated for recent changes
2024-01-10 19:51:29 +00:00
Boosh1
c7c47a16b0 Updated with better hw control
- Removed mkvpropedit remux behaviour - No longer seems to be needed (It's upto the user to have the mkvpropedit option enabled on Tdarr side)
- Corrected parts of the ffmpeg cmd to define the output format based on container
- Updated win32 hwaccel cmd to use a more correct type
- Enabled hwupload & hwupload frames
2024-01-09 23:27:15 +00:00
Boosh1
9494a2fcad Added new tests & also fixed up a few issues
- Added check to ensure video bitrate is actually a number
- Updated QSV decoders since VC1 & VP8 aren't supported on latest hardware (according to wikipedia...) & AV1 added
- Added new video codec check which enables protection for 10 bit encoding, basically trying to encode from something like mpeg4 into 10bit could cause issues
2024-01-02 20:48:41 +00:00
Boosh1
3ac61410a0 Update Tdarr_Plugin_bsh1_Boosh_FFMPEG_QSV_HEVC.js
New fix for HW decode. H264 High10 is the problem. Enable SW decode for that and normal HW decode on the rest.
2023-10-10 21:19:43 +01:00
Boosh1
95ec657cfd Update Tdarr_Plugin_bsh1_Boosh_FFMPEG_QSV_HEVC.js
Fixed up an issue with HW decoding. If the -hwaccel qsv is set then ffmpeg seems to automatically enable hw decoding even when we don't want it. There's been several reports of issues with certain files & I think this is the cause. I've tested and that appears to resolve the transcode error
2023-10-07 18:55:45 +01:00
John Clayton
6329f43625 Use filtergraph to specify 10-bit pixel format 2023-09-17 10:30:20 -06:00
HaveAGitGat
f53b29efd4 Update ts lint rules 2023-08-20 17:25:04 +01:00
HaveAGitGat
cf63623882 Update tests, lint fix 2023-03-10 08:58:07 +00:00
HaveAGitGat
a09237aae7 Add boosh changes 2023-03-10 08:49:29 +00:00
HaveAGitGat
fbed3a0a84 Use file.ffProbeData?.format?.duration if available 2023-02-12 23:03:18 +00:00
Boosh1
2179a1f634
Update plugin - Tdarr_Plugin_bsh1_Boosh_FFMPEG_QSV_HEVC - OS support, custom ffmpeg cmd input + clean-up (#306)
* 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>
2022-05-20 07:48:12 +02:00
Boosh1
1c211ad3fd
Add QSV HEVC plugin (#265)
Co-authored-by: HaveAGitGat <43864057+HaveAGitGat@users.noreply.github.com>
2022-03-08 16:36:45 +01:00