Comments (9)
Did you try Beta 3 that adds support?
from plexcleaner.
See the breaking changes section from the develop branch readme.
https://github.com/ptr727/PlexCleaner/tree/develop
from plexcleaner.
Glad to hear!
Looks pretty close to the readme (I only tested QSV, don't have nvidia or amd hardware to test with). Can you please verify, and advise on changes I should make to the readme if incorrect?
from plexcleaner.
I swear handbrake has h264/h265nvec for gpu encoding.
On linux I switch to vaapi
from plexcleaner.
Windows 11 64bit system
https://api.github.com/repos/ptr727/PlexCleaner/releases
BETA DOWNLOAD
https://github.com/ptr727/PlexCleaner/releases/download/3.0.35-gcfbd0d5385/PlexCleaner.7z
My Code to attempt execution stable release works fine beta throws error.
PlexCleaner.cmd
@echo off & setLocal EnableDelayedExpansion
set media_path_TV="\\Con-NAS\MEDIA-SERVER\TV Shows"
set root_path="%~dp0"
"%root_path:"=%win-x64\PlexCleaner" --settingsfile "%root_path:"=%win-x64\PlexCleaner.json" defaultsettings
"%root_path:"=%win-x64\PlexCleaner" --settingsfile "%root_path:"=%win-x64\PlexCleaner.json" --logfile "%root_path:"=%win-x64\PlexCleaner.log" process --mediafiles %media_path_TV%
pause
exit
ERROR
'--settingsfile' was not matched. Did you mean one of the following?
--settingsfile
Option '--settingsfile' is required.
Unrecognized command or argument '--settingsfile'.
Unrecognized command or argument 'C:\Users\Conor\Desktop\win-x64\PlexCleaner.json'.
Stable release works fine but obviously no GPU encoding support :(
STABLE DOWNLOAD
https://github.com/ptr727/PlexCleaner/releases/latest/download/PlexCleaner.7z
from plexcleaner.
Ok i got it working no idea why this matters i am sure you will know @ptr727
But this is the solution.
PlexCleaner.cmd
@echo off & setLocal EnableDelayedExpansion
set media_path_TV="\\Con-NAS\MEDIA-SERVER\TV Shows"
set root_path="%~dp0"
"%root_path:"=%win-x64\PlexCleaner" defaultsettings --settingsfile "%root_path:"=%win-x64\PlexCleaner.json"
"%root_path:"=%win-x64\PlexCleaner" process --settingsfile "%root_path:"=%win-x64\PlexCleaner.json" --logfile "%root_path:"=%win-x64\PlexCleaner.log" --mediafiles %media_path_TV%
pause
exit
These need to be ordered first in the que before any other vars get called.
defaultsettings
process
After plexcleaner.exe in command line for some reason stable release does not care on the order of these variables.
from plexcleaner.
This was my changes to your defaultsettings in beta to get GPU encoding to work on a NVIDIA GPU.
So far works flawlessly for me :) I will leave it in this post for anyone who wants to use it.
NVIDIA GPU HARDWARE ENCODING WINDOWS
PlexCleaner.json H264 Encoding
Click me [TO EXPAND]
"ConvertOptions": {
"FfMpegOptions": {
"Video": "h264_nvenc -crf 20 -preset medium",
"Audio": "ac3",
"Global": "-analyzeduration 2147483647 -probesize 2147483647 -hwaccel cuda -hwaccel_output_format cuda",
"Output": "-max_muxing_queue_size 1024 -abort_on empty_output"
},
"HandBrakeOptions": {
"Video": "nvenc_h264 --quality 20 --encoder-preset medium",
"Audio": "copy --audio-fallback ac3"
}
},
PlexCleaner.json H265 Encoding
Click me [TO EXPAND]
"ConvertOptions": {
"FfMpegOptions": {
"Video": "hevc_nvenc -crf 20 -preset medium",
"Audio": "ac3",
"Global": "-analyzeduration 2147483647 -probesize 2147483647 -hwaccel cuda -hwaccel_output_format cuda",
"Output": "-max_muxing_queue_size 1024 -abort_on empty_output"
},
"HandBrakeOptions": {
"Video": "nvenc_h265 --quality 20 --encoder-preset medium",
"Audio": "copy --audio-fallback ac3"
}
},
AMD GPU HARDWARE ENCODING LINUX VAAPI
PlexCleaner.json
Click me [TO EXPAND]
"ConvertOptions": {
"FfMpegOptions": {
"Video": "h264_vaapi -crf 20 -preset medium",
"Audio": "ac3",
"Global": "-analyzeduration 2147483647 -probesize 2147483647 -hwaccel vaapi -hwaccel_output_format vaapi",
"Output": "-max_muxing_queue_size 1024 -abort_on empty_output"
},
"HandBrakeOptions": {
"Video": "x264 --quality 20 --encoder-preset medium",
"Audio": "copy --audio-fallback ac3"
}
},
other h264 encoders
h264_amf
other h265 encoders
hevc_amf
hevc_vaapi
from plexcleaner.
@ptr727 Ofcourse, Thanks for a fantastic tool!
So in my comment above i put h264 and h265 for Windows NVIDIA GPU's
Now with NVIDIA be it linux mac windows not any issues i have found.
I have put VAAPI for linux above to specific for AMD on Linux.
I will do a AMD WINDOWS GPU config shortly the only issue i have found so far in relation to AMD GPU's is that on ffmpeg and the gpu side it will be fine. But HandBrake does not seem to supply documentation about AMD GPU's this could be the bottleneck that still consumes CPU.
I will give AMD more looking into and provide a config for Windows users.
AMD ENCODER WINDOWS :
Windows:
h264_amf
hevc_amf
Linux:
h264_vaapi
hevc_vaapi
AMD GPU HANDBRAKE CLI encoder settings for Windows ?
Need to find some documentation on this.
MKVTool
MkvMerge
--disable-track-statistics-tags --no-global-tags --no-track-tags --no-attachments --no-buttons --normalize-language-ietf extlang --output
Theres a few i am looking at if they have any GPU documentation still.
Conclusion
NVIDIA no problems at all h264 and h265 is perfect even for handbrake.
AMD is part way there just lacking in the handbrake config.
from plexcleaner.
Implemented in v3.
from plexcleaner.
Related Issues (20)
- Unrecognized command or argument '/PlexCleaner/PlexCleaner.dll'.
- Not Observing Optimizations on x264 to x265 (HEVC) HOT 4
- HandBrakeCLI hangs or runs extremely slowly in parallel mode HOT 1
- Docker logs grow "out of control" HOT 1
- Add support for Matroska BCP 47 language tags HOT 1
- Some sort of bitrate related bug HOT 9
- Add support for logic to retain `FlagOriginal` tagged tracks HOT 1
- FFmpeg removes IETF language tags
- HandBrake removes IETF language tags
- MediaInfo segmentation fault on Alpine HOT 8
- MkvToolJsonSchema Failed to lookup ISO639 Language from IETF LanguageIetf HOT 5
- unable get ffmpeg HOT 2
- alpine: mediainfo not found HOT 4
- latest/savoury: mkvmerge not found HOT 4
- ffmpeg cannot download HOT 11
- IndexOutOfRangeException on some video files HOT 3
- HandBrake not installing on Alpine
- UploadArtifact v4 broke matrix operation
- 7zip download - incorrect url HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from plexcleaner.