Comments (5)
Hey,
The selection of the audio track is user specific. That means that the script only affects you. It doesn't change it for other users. However, I can make a v2 in which I support user selection.
So '--User user1 --User user2' to apply the script to the users that have access to your server who have the username user1 or user2. Or '--User @ALL' to target everyone.
The second point is a bit harder. I would first need to look if I can see the audio format in Plex. Then I would need to incorporate somesort of if-elif-else-except system for choosing an audio stream.
And if I understand your example correctly, the script would basically be: 'Select the audio track with the highest channel count that doesn't need transcoding.' Is this correct?
I'm very busy right now but I'll look when I can update the script. I'll update the script in general to make it a bit better optimized and such.
from plex-scripts.
Spot on on both first and second points, that would be sick if it can be done. I basically would have to either remux everything right after download to remove the audio track if it canβt as the server I rent is not powerful enough to transcode down 4k remuxes and I want to direct play wverything only.
Super stupid how Plex doesnt have an option to force/require direct play only but thats another issue I guess lol.
Well thanks so much for your help mate, just let me know if you will eventualy add these options or not so that I can download 1080p content instead if need be.
Happy holidays and thanks again!
from plex-scripts.
Super stupid how Plex doesnt have an option to force/require direct play only but thats another issue I guess lol.
If you have Plex pass, I can make a script that kills any transcode session. It wouldn't allow you to start a transcode stream. But if you have media that can only be watched via transcoding, you would literally not be able to watch the media.
Just saying some thoughts out loud. If you come up with a plan/an idea, I'll make it for you. Don't consider 'but I don't think that's possible'. Say anything.
from plex-scripts.
Super stupid how Plex doesnt have an option to force/require direct play only but thats another issue I guess lol.
If you have Plex pass, I can make a script that kills any transcode session. It wouldn't allow you to start a transcode stream. But if you have media that can only be watched via transcoding, you would literally not be able to watch the media.
Just saying some thoughts out loud. If you come up with a plan/an idea, I'll make it for you. Don't consider 'but I don't think that's possible'. Say anything.
That is the least of my worries at the current moment as I think I'd rather get the media streamable by just pressing play. Most of the fam isn't technically saavy, particular parents and their siblings and to get 2160p remuxes to stream from the beginning, they need to click the "..." next to the Play button, then go to playback settings, then change the track, and thats already like 3 clicks too many lol. I'd love to get it set up with clicking play and it just works. They all have decent internet, at least 200Mbps so direct playing even 4k remuxes won't be an issue, I just got to make it work for now.
I see another set of programs that can possibly be used, mkvtoolnix. Howeder I would have to use mkvinfo to see the properties of the files after they are downloaded as a post-processing script then mkvpropedit to set the default track flag within the mkv file itself; Not sure if you can even see full audio track names this way, I haven't tested this out yet but am going to start today.
Honestly no idea why this isn't an even bigger issue, because apparently even the Shield Pro cannot direct play TrueHD audio so a lot of people have to be having some sort of related issue to this I would think.
from plex-scripts.
Update: You can forget about this if its not something anyone else has expressed interest in; As my library isn't super huge yet I opted to purge and redownload my entire 4k library and use mkvmerge to output the media file's properties to a json format and then parsed it into a PSCustomObject. From then, I used mkvpropedit to check audio track headers for TrueHD and disable the audio if it exists and set a different track to default according to priority from DTS 7.1 down to AAC 2.0.
I did this all in powershell core as I am not very familiar with python or shell script as much. I am testing it now as a post-processing script for sabnzbd but if you are interested I can post it here; It could be modified to iterate through an existing plex library but it doesn't work well with rclone mounted remotes as you have to stream over the entire file to modify the props which is kinda crappy for 60Gb remuxes.
from plex-scripts.
Related Issues (20)
- Season "2020" of daily show breaks plex_exporter_importer.py HOT 5
- plex_exporter_importer.py: Support for continue watching page HOT 1
- Cloning of a Plex Library
- Plex Media Server Version HOT 2
- KeyError: 'Metadata'
- Add timeframe to exporter importer HOT 1
- rolling_tv_channel 'on_deck' flag
- Intro skipper. Unknown client name: {name}
- Delete media based on tag or collection HOT 2
- Force Match
- alternate_ordering_playlist.py: AttributeError: 'NoneType' object has no attribute 'group'
- MKV Chapter to Marker HOT 1
- Keywords to Genre no longer functioning.
- Keywords to Label
- tag_to_collection.py
- user_exporter_importer.py: Support for ratings
- Typo in plex_sync.py script
- Plex Now Playing Artist - Title and artwork export to html HOT 1
- Music video playlist based on playlists already created in plex. HOT 2
- Offload Transcode Streams to Secondary Server
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 plex-scripts.