#481
|
||||
|
||||
@BillyCool, why not change preselection instead of changing it afterwards? JDownloader doesn't mux to mkv, just to mp4 for yt
__________________
JD-Dev & Server-Admin |
#482
|
|||
|
|||
Hi Jiaz,
Sorry for the late response, it's been a busy few days. Not entirely sure what you mean by preselection, both mp4 and mkv formats are available in the linkgrabber when adding links, and that's intentional. See for example: If I was to download the 1080p 60fps, sometimes the mp4 container will be smaller in size, and sometimes the mkv will. I'm after a script that can compare the sizes and automatically pick the smallest size for me, without me having to click both to compare manually. Ideally, it should compare the highest resolutions available. Hope that makes sense. Thanks, Billy Last edited by Jiaz; 03.07.2018 at 17:43. |
#483
|
||||
|
||||
Sorry my misstake. Didn't knew that mkv was already live.
You can basically disable mkv container in Settings-Plugins-search for youtube as they contain the same streams as in mp4, just different container. there should be no *real* difference only due to different container
__________________
JD-Dev & Server-Admin |
#484
|
|||
|
|||
Hi Jiaz,
There is definitely a noticeable difference between the file sizes, one of the is encoded in H264 and the other is VP9. Even though it might be the same stream, the differences in the codecs result in variable sizes. Yes, sometimes they're very close, but other times one can be much smaller than the other. In extreme cases, I've seen one being over twice the size of the other. It's ok if this isn't something supported by the Event Scripter and/or API, it's only a small inconvenience. I just wanted to make sure because I didn't find anything myself, hence why I asked. Thanks, Billy |
#485
|
||||
|
||||
Yes, VP9 and H264 is difference in size/quality. Basically you would need to combine two steps. Step one, add highest mkv and mp4 quality and step two, a script that checks for same name , different extension and then choose one/delete the other. You can ask mgpai for help with script though I would just stick to vp9 version (webm and mkv)
__________________
JD-Dev & Server-Admin |
#486
|
|||
|
|||
@BillyCool:
VP9 is a a more efficient codec than H.264 and can deliver the same video quality as H.264, at half the size. Hence it will always be (based on my experience) less than it's H.264 variant in size. Instead of adding both the variants, you can adjust the yt parameters (advanced settings) in JD, and get the best variant based on your preferences. If you choose to add only one variant in JD, it will prefer H.264 over VP9, because of default yt video codec quality sort order. Change it to: Code:
[ "VP9_BETTER_PROFILE_1", "VP9_BETTER_PROFILE_2", "VP9", "VP9_WORSE_PROFILE_1","H264", "H263", "VP8", "VP9_HDR" ] If you now choose to add only one (best) variant, VP9 will selected (wherever available) over H.264. You will thus always automatically end up with a single variant of your choice, which otherwise you would have picked manually. There are other yt parameters (search "Youtube: Quality Sort Identifier" in advanced settings) which also influence the variant auto selected by JD. You can tweak those settings further to fine tune your preferred variant. |
#487
|
|||
|
|||
convert mkv with DTS to mkv with ac3
may i ask for an request? dont know if its easy possible.
convert MKV with DTS to MKV with AC3. i am using one click tool mkv2ac3 but it would be nice if the same can be done after download is finished with JD2 and automated :-D to do: check if filename it contains DTS or check MKV for DTS file (german) extract MKV convert DTS to ac3 merge video and AC3 to MKV Last edited by Tom; 23.07.2018 at 13:41. |
#488
|
|||
|
|||
You can use ffprobe to check if the stream contains DTS and then re-build (extract/convert/merge) in a single step using ffmpeg. You should be able to find both programs in JD.
If you figure out the external commands (able to do it in CLI), I can help you put them in the script. Contact me in JD Chat if you need more information. |
#489
|
|||
|
|||
oh jesus, ffmpeg is also faster then mkv2ac3.
thx a lot for the hint mgpai ! edit: script created via chat, will test tomorrow Last edited by Tom; 23.07.2018 at 17:13. |
#490
|
|||
|
|||
Code:
github.com/mgpai/resources/blob/master/jdownloader/eventscripter/scripts/Tom.js |
#491
|
|||
|
|||
i did a test but it doesnt work, is the new method already ready @Jiaz?
|
#492
|
||||
|
||||
@Tom: Yes, it's already live. But it would be good to have more feedback about what doesn't work
__________________
JD-Dev & Server-Admin |
#493
|
|||
|
|||
nothing happens, tried again
logs: 24.07.18 12.03.50 <--> 24.07.18 12.33.24 jdlog://1022164433151/ |
#494
|
||||
|
||||
ffmpeg und ffprobe ist installiert?
__________________
JD-Dev & Server-Admin |
#495
|
|||
|
|||
ja beides unter tools
|
#496
|
|||
|
|||
Script is working fine. Check if you are able to convert that file using the same ffmpeg parameters in CLI. If you need any help troubleshooting you can find me in JD Chat for the next couple of hours.
|
#497
|
|||
|
|||
works stunning, thx a lot for the great support and maybe i find a new challenge
|
#498
|
|||
|
|||
hello scripter
i am looking for a solution to create a dlc per package from the download list in JD2 actually one have to click on every single package an choose create dlc or mark all packages and choose create dlc. the goal is to mark some packages and choose create dlc per package... |
#499
|
|||
|
|||
Just for info: After years of JD usage today I stumpled over event scripter and wanted to try it. Downloaded and activated it but the edit script button didn't work. Just opened a small windows for a tenth of a second, immediately closed it so you can't even read any text and nothing more.
Found out that it's because I renamed the "jre" folder of JD2, so JD2 uses system wide Java 10.0.2 x64. Everything works fine with Java 10 for a long time here on a Win2012R2 system. When I rename back the jre folder so JD2 uses its own Java 8 the script editor works. So this is the first piece of JD2 that doesn't work with Java 10 here. Not a problem for me as I just tried to play a bit with event scripter. Just an information that there could be some incompatibility with newer Java versions. Didn't try yet if scripts added with Java 8 later work when switching back to Java 10.
__________________
Ich liebe JD! I love JD! |
#500
|
||||
|
||||
@Araldo: will be fixed with next update.
support for Java9,10,11 is experimental. It's a compatibility issue between java8 and java10
__________________
JD-Dev & Server-Admin |
#501
|
|||
|
|||
@mgpai:
can you add delete source file after ac3 file was created, please? thx a lot |
#502
|
|||
|
|||
Script Updated:
Code:
github.com/mgpai/resources/blob/master/jdownloader/eventscripter/scripts/Tom.js Note: The source file will be permanently deleted (not moved to recycle bin). |
#503
|
|||
|
|||
great mgpai, exactly what i wanted
works ! |
#504
|
|||
|
|||
Stop Downloads Script
Hi there!
I am struggling to create a simple Event-Scripter Script to stop my downloads. Unfortunately I am not a professional, so I would need your help. I need a script, which will stop the downloads, as soon as a daily traffic maximum is reached. I use share-online, which has a download limit of 100GB every day, and often I download just a couple of mb more than that, which will give me a "penalty". Since I have thousands of links in my Jdownloader list, it would be great to let everything work by itsself. It already starts every day on its own (scheduler), but if it would stop as well, it would be perfect. I would be very happy if anyone could help! Thanks! |
#505
|
||||
|
||||
@pupupuia: Go to settings-plugins-shareonline and there you can setup either to reserve some free traffic or no longer use the account when limit is reached.
__________________
JD-Dev & Server-Admin |
#506
|
|||
|
|||
Quote:
Thank you, I did not see that! If I set it on X GB, is it the daily maximum? So basically if I Put all of my links in my download list, and start via scheduler in the Morning, and stop via this plugin, does everything basically work automatically? Thanks again! |
#507
|
||||
|
||||
JDownloader regularly polls SO and checks for *traffic limits* and once the limit is reached, it will stop using the account until enough traffic is available again
__________________
JD-Dev & Server-Admin |
#508
|
|||
|
|||
hi mgpai
İ have long list of downloads that i renamed (the uploader scrambles the names to keep them safe ,i change the name as i grab them). is it possible to rename the extracted files (and possibly just the extensions i wanted like .avi .mkv .mp4 .mpeg but not .jpeg or .txt) after the archive name?i tried this on packagizer but no avail. also i cant figure out the filter on jd extractor. Last edited by animus; 09.08.2018 at 14:09. |
#509
|
|||
|
|||
Code:
github.com/mgpai/resources/blob/master/jdownloader/eventscripter/scripts/animus.js You have to use regular expressions to match the full path of the file you want to exclude. For e.g. to exclude all nfo files: Code:
.*\.nfo$ |
#510
|
|||
|
|||
Hello.
(Sorry for English, google translate) Possible to write a script like this?: there are two files. 1.jpeg 2kb 1.jpeg 2Mb if (1.jpeg (on disk) >= 1.jpeg (new)) skip if (1.jpeg (on disk) < 1.jpeg (new)) rewrite |
#511
|
||||
|
||||
@maks.im
not sure about that... event scripter might not have the trigger to do this at the time download is about to happen. currently the download core has a check against user interface setting: 'settings > general > download management > if the file already exists'
__________________
raztoki @ jDownloader reporter/developer http://svn.jdownloader.org/users/170 Don't fight the system, use it to your advantage. :] |
#512
|
|||
|
|||
Eh. badly.
hoped that it would be possible to simplify the script. Thanks. |
#513
|
|||
|
|||
@maks.im: Contact me in JD Chat (if possible).
|
#514
|
||||
|
||||
@maks.im: maybe the url contains markers like thumb or something so you can easily filter out the small version of the images. send example links to support@jdownloader.org
__________________
JD-Dev & Server-Admin |
#515
|
|||
|
|||
Is there anyway to do a simple post request without headers in event scripter? Or is it a better (simpler) idea to just run an external script? I am trying to call an api on the sonarr/radarr servers to add a downloaded file to my library.
Thanks in advanced! EDIT: Sorry, missed the post regarding this in the middle of the thread. Last edited by webdjoe; 19.09.2018 at 08:04. |
#516
|
||||
|
||||
@webdjoe: so you could find a working solution for you?
__________________
JD-Dev & Server-Admin |
#517
|
|||
|
|||
Yes I adapted it from the script below thanks to Wikuler. The support here is amazing!:thumbup:
Quote:
|
#518
|
||||
|
||||
Thanks for the feedback. Nice to hear that you could modify the script to your own needs
__________________
JD-Dev & Server-Admin |
#519
|
|||
|
|||
Custom toolbar button to Show/Hide Single Child Packages (Toggles "HideSingleChildPackages" advanced setting)
Script: Code:
// Show/Hide Single Chlld Packages // Trigger: Toolbar Button Pressed // Customize Main Toolbar > Add new "EventScripter Trigger" button > Rename it to "Show/Hide Single Child Packages" (without quotes/case-sensitive) if (name == "Show/Hide Single Child Packages") { var data = "org.jdownloader.settings.GraphicalUserInterfaceSettings"; var key = "HideSingleChildPackages"; var value = callAPI("config", "get", data, null, key); callAPI("config", "set", data, null, key, !value); } Last edited by mgpai; 27.10.2018 at 13:56. Reason: Corrected Trigger Required |
#520
|
|||
|
|||
Hi there,
i'm looking for a script thats blocked the refresh of the share-online limit of the premium accounts during the account is in use. There is an error that the limit jumps back on the full limit when the account is actually in use for downloading. |
Thread Tools | |
Display Modes | |
|
|