Giter VIP home page Giter VIP logo

Comments (9)

ptr727 avatar ptr727 commented on June 4, 2024 1

Did you try Beta 3 that adds support?

from plexcleaner.

ptr727 avatar ptr727 commented on June 4, 2024 1

See the breaking changes section from the develop branch readme.
https://github.com/ptr727/PlexCleaner/tree/develop

from plexcleaner.

ptr727 avatar ptr727 commented on June 4, 2024 1

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.

C0nw0nk avatar C0nw0nk commented on June 4, 2024

I swear handbrake has h264/h265nvec for gpu encoding.

On linux I switch to vaapi

from plexcleaner.

C0nw0nk avatar C0nw0nk commented on June 4, 2024

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.

C0nw0nk avatar C0nw0nk commented on June 4, 2024

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.

C0nw0nk avatar C0nw0nk commented on June 4, 2024

@ptr727

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.

C0nw0nk avatar C0nw0nk commented on June 4, 2024

@ptr727 Ofcourse, Thanks for a fantastic tool!

#139 (comment)

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.

ptr727 avatar ptr727 commented on June 4, 2024

Implemented in v3.

from plexcleaner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.