Server Version#: 1.19.2.2737
Player Version#: Web with chrome
I moved my plex server to a NUC, a J5005.
I had to delete the iHD_drv_video.so from my plex folder so it use the system one, without that hw transcoding was not working, but now it works fine most of the time.
But some of my media are in SD xvid avi. I dont want to reencode them (i have a lot of them, mostly stuff i cant find in HD and i dont want to reencode them and loose quality).
When i try to play them with the hw transcode box checked on my option, it just fail. (and it works fine with HW transcoding OFF)
Someone have an idea how to fix that ?
I read they are simmilars report of the issue, so i guess it will take a while to be fix by devs (a list of file extentions to exclude from hw transcoding would be nice in the options -or better, an option where we can list files with wildcard on witch ignore transcoding-)
Any idea how to make a quick and dirty fix meanwhile ?
lib wrapper or modification of the plex binaries are out of my league, but maybe someone did try ?
Or maybe i cant works something like a script that detect an avi file is acceded and loggin to plex, uncheck the box (plugin ?) for 10 sec so if i relaunch it it will work right away ?
āEverythingā canāt be supported āForeverā.
Applying an albeit absurd analogy; should there still be support for video tape?
Iām not trying to insult but am trying to say ālet it die, itās timeā.
XviD was all about having small files when people had very limited internet capabilities and storage; where anything was better than nothing. Weāve moved well past that now.
Not to mention when I go āshoppingā and look at the shelves - if itās food or toilet paper Iām after I get depressed, but when I shop for media thereās always a 264/265/xvid sitting on the shelf side by side and I say - who actually wants that?
If, when downloaded I could turn them into TP - thereās a good use for them.
If those Xvid are indeed in an avi container (and avi is only a container after all) then change that container to .mkv
As XvidDivX files tend to be small then expect it to take between 5 and 10 seconds per file in MKV Toolnix. https://www.bunkus.org/blog/
Thereās no quality loss at all.
Yeah i get that. What I was meaning was that despite other comments, avoiding files because they are AVI isnāt always an option. I have at least 2000 (very old) documentary episodes or documovies all originally in an AVI container. Be they DivX or XviD.
Not a single one is still exists as AVI. Not a single one to date had an issue with playback.
Just offering an option for the OP to try.
The shell script will require only two things: mediainfo and ffmpeg.
Given the top of a directory tree to scan
and given the top most directory of where to put the output
Batch convert all the AVI files it finds and puts them in MKV containers as well as converting them to viable H.264 encoding.
Preserves the directory tree under the top most directory
A small bitrate bump would be added to compensate for any encoding loss.
As example:
batch_convert /home/tv /home/new-mkv
would result in:
a. /home/tv/Kyle XY/Season 01/Kyle XY.S01E02.Sleepless in Seattle.avi
b. /home/new-mkv/Kyle XY/Season 01/Kyle XY.S01E02.Sleepless in Seattle.mkv
This would facilitate swapping out, en-mass, the old with the new if the entire tree were AVI files.
MPEG3 -> H.264 There will be something. Thatās what the fudge factor math is for now. Iām already accounting for the 10% change with H.264. I will need some testing and it can still be tweaked as needed.
this isnāt going to be a āone size fits allā script out of the box.
My goal is to write the framework to do batch processing of a directory tree based on a particular extension.
Well rencoding avi file could be a solution for some people, but i dont intend to waste space to store degraded quality video file of content that are already not really good.
The solution iām looking for that i think could realistically be done is renaming the Plex Transcoder program and insert a program that just foward the command line, removing the hw encoding parameters (like -hwaccel:0 vaapi ) according to a set of rules.
Hereās a script which will help out those who want to perform the replacement.
Itās written to be very extensible. Beware: The script is recursive. Modify with care
All script options are in the file itself.
What it currently supports is:
Optional āRecycleBinā directory to hold the original (upon successful conversion)
Optional source file deletion if not using a Recycle Bin (upon successful conversion)
Choice of CRF and Nominal Bitrate encoding modes:
Nominal bitrate encoding uses the fileās actual bitrate as the basis
Nominal bitrate encoding allows a percentage compensation to elevate above the bit rate existing in the file.
Ability to add informational [ your conversion info here ] info to the converted fileās name. The bitrate information is available as well as the codec along with other variables for you to use if so desired.
Only the top-level destination directory must exist when starting. The script will create only those subdirectories needed. Those subdirectories will mirror your exact structure.
Testing showed a 10% elevation resulted in no visible loss of quality converting 1035 Kb/s xvid AVI -> H.264 MKV . (Thatās some low quality stuff to begin with)
Edit the script to enable the Recycle Bin and specify a path (e.g /nas/recycle/tv)
Run the script.
cd /nas/tv
convert-avi.sh /nas/tv /nas/new-tv
The above searches for all avi and AVI files under /nas/tv and outputs to /nas/new-tv/... mirrored structure here... /filename [ your options if desired ].mkv
Hereās a small sample of what it looks like.
[chuck@lizum ~/kyle.536]$ ./convert-avi *03 ./output
Season 03/Kyle XY.S03E01.It Happened One Night.avi
Converting: Season 03/Kyle XY.S03E01.It Happened One Night.avi
frame= 1331 fps=331 q=17.0 size= 7739kB time=00:00:55.84 bitrate=1135.2kbits/s speed=13.9x
[chuck@lizum ~/kyle.537]$ frame= 1412 fps=314 q=-1.0 Lsize= 8964kB time=00:00:59.20 bitrate=1240.2kbits/s speed=13.2x
[chuck@lizum ~/kyle.537]$ ls -laR output/
output/:
total 0
drwxr-sr-x 3 chuck chuck 23 May 1 21:00 ./
drwsr-sr-x 7 chuck chuck 180 May 1 20:59 ../
drwxr-sr-x 2 chuck chuck 75 May 1 21:00 Season 03/
output/Season 03:
total 8964
drwxr-sr-x 2 chuck chuck 75 May 1 21:00 ./
drwxr-sr-x 3 chuck chuck 23 May 1 21:00 ../
-rw-r--r-- 1 chuck chuck 9178982 May 1 21:00 Kyle XY.S03E01.It Happened One Night [h264 bitrate += 10].mkv
[chuck@lizum ~/kyle.538]$
Again, you can customize this to your heartās desire. My goal was to create the framework.