JDownloader Community - Appwork GmbH
 

Reply
 
Thread Tools Display Modes
  #481  
Old 28.06.2018, 07:35
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 56,800
Default

@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
Reply With Quote
  #482  
Old 03.07.2018, 17:26
BillyCool BillyCool is offline
I will play nice!
 
Join Date: Sep 2016
Posts: 4
Default

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.
Reply With Quote
  #483  
Old 03.07.2018, 17:43
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 56,800
Default

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
Reply With Quote
  #484  
Old 04.07.2018, 07:13
BillyCool BillyCool is offline
I will play nice!
 
Join Date: Sep 2016
Posts: 4
Default

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
Reply With Quote
  #485  
Old 04.07.2018, 11:59
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 56,800
Default

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
Reply With Quote
  #486  
Old 04.07.2018, 13:23
mgpai mgpai is offline
Script Master
 
Join Date: Sep 2013
Posts: 290
Default

@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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 18:17.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.