Giter Site home page Giter Site logo

nixta1 / plex_generate_previews_nv-intel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stevezau/plex_generate_vid_previews

0.0 0.0 0.0 98 KB

This is a script to manually generate Plex preview thumbnails using Nvidia or Intel GPU

Python 100.00%

plex_generate_previews_nv-intel's Introduction

What is this script?

This script was created to speed up the Plex preview thumbnails process. It will use multi threaded processes with a mixture of nvidia GPU and CPU for max throughput

Questions or support?

Create github issue OR see thread https://forums.plex.tv/t/script-to-regenerate-video-previews-multi-threaded/788360

STEP 1 - Install dependencies (make sure they are in your path)

  1. FFmpeg: https://www.ffmpeg.org/download.html
  2. MediaInfo: https://mediaarea.net/fr/MediaInfo/Download

STEP 2 - Install Python 3 dependencies

pip3 install loguru rich plexapi gpustat==1.0.0rc1 requests pymediainfo

STEP 3 - Download script and edit the Vars

Download the plex_generate_previews.py script to your machine. Open it in your fav editor and update variables.

To get your plex url and token

  1. Open plex web https://app.plex.tv/ and go to any video file
  2. Open the ... menu and select "get info"
  3. Click "view xml" on bottom left
  4. Use the url (without the path) for the PLEX_URL var in the python script. For example https://xxxx.plex.direct:32400/ or https://127.0.0.1:32400/ if running locally.
  5. Find Plex-Token in the url and insert the value into PLEX_TOKEN var in the python script.

STEP 4 - Run

You can specify an OPTIONAL cmd line arg which will tell the script to only work files which contain that text python3 plex_preview_thumbnail_generator.py <ONLY_PROCESS_FILES_IN_PATH>

plex_generate_previews_nv-intel's People

Contributors

cjmanca avatar corentinb avatar ellisonpatterson avatar jasonsansone avatar nixta1 avatar stevezau avatar

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.