#1
|
|||
|
|||
[EventScripter] download opus streams from YouTube with .opus extension
Hi,
Is there an option to download opus streams from YouTube with .opus extension instead of .ogg ? If not, can it be added in the future ? Because Winamp can't play such files, but it can play them fine when renamed with .opus extension (using in_opus.dll plugin). Thank you. |
#2
|
||||
|
||||
Hi,
that's not possible out of the box. However you could do it via EventScripter script: Convert file after download via EventScripter or if only rename is needed, use a Packagizer Rule. -psp- EDIT Linked Packagizer.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download Last edited by pspzockerscene; 22.03.2021 at 14:36. |
#3
|
|||
|
|||
Quote:
|
#4
|
|||
|
|||
I don't understand how to create appropriate rule, can you help ?
Thank you. |
#5
|
|||
|
|||
Code:
If .. File Name contains -> *ogg Downloadurl contains -> youtube Then set... Filename -> <jd:orgfilename:1>opus |
#6
|
||||
|
||||
in case you need further help, please contact us again
__________________
JD-Dev & Server-Admin |
#7
|
|||
|
|||
Quote:
|
#8
|
||||
|
||||
Are those maybe older links or are you using an old version of some kind of EventScripter script which is setting that wrong file-extension?
...or some kind of Packagizer rule is setting a wrong file-extension? ...or the links in your downloadlist are very old? That has been changed since mid 2022 and is working fine here with default settings.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#9
|
|||
|
|||
Why did it used to happen in 2022?
Side Q: If these are in fact encoded as Opus then is it safe to mass rename these files from .ogg to .opus or is there still some OGG aspect to the file? Last edited by kanishknishar; 09.08.2023 at 18:42. |
#10
|
||||
|
||||
That was a mistake. Mistakes happen.
Quote:
You can check the file contents e.g. using the free open source tool "MediaInfo": mediaarea.net/en/MediaInfo
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#11
|
||||
|
||||
@kanishknishar
Check your selected audio variant. You might have selected "Vorbis" as audio variant. For Vorbis ogg would be correct. If you are unsure, please provide a screenshot of your selected variant and a log.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#12
|
|||
|
|||
I can't have logs because these files were from 2022. I did try renaming the OGG files to Opus but they seem to retain their OGG attributes on MediaInfo: Code:
General Complete name : C:\Users\Lance\Desktop\A. Tchaikovsky Symphony No. 3 (2002) (152kbit_Opus).opus Format : Ogg File size : 36.8 MiB Duration : 38 min 49 s Overall bit rate : 133 kb/s Track name : A. Tchaikovsky Symphony No. 3 (2002) Audio ID : 1350764049 (0x50830611) Format : Opus Duration : 38 min 49 s Channel(s) : 2 channels Channel layout : L R Sampling rate : 48.0 kHz Compression mode : Lossy Writing library : Lavf58.39.101 |
#13
|
||||
|
||||
So this is an older item from your downloadlist?
Information about your saved files won't help. As said / again: If you are downloading new YT videos now, this issue should not happen anymore. You are free to either rename the previously downloaded files on your HDD or re-download them.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
#14
|
|||
|
|||
I did try renaming it to Opus as seen above in the MediaInfo but it is still reported as an OGG file. Do you know why this is happening?
|
#15
|
||||
|
||||
Maybe it is an ogg file.
Are
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download Last edited by pspzockerscene; 14.08.2023 at 12:40. Reason: Fixed typo |
#16
|
|||
|
|||
I tried uploads from the last 6 months and all of them seem to be AAC:
|
#17
|
|||
|
|||
I tried with a different search and now there were some Opus files but most were AAC. Does this mean YT hasn't switched to Opus for all videos?
Side-question: What does it mean if the audio stream is Opus but file type is still OGG as is the case with the MediaInfo I uploaded earlier. |
#18
|
||||
|
||||
Opus is the audio stream and ogg the container. Changing the file-extension won't change the content of the files and there is no need for us to change this since it's still the opus codec.
About your screenshot: Looks perfectly normal for default settings. If you want a different audio variant, do the following: Rightclick on any YT audio variant -> youtube.com -> Change audio variant You can also change the preferred default codecs in the YT settings.
__________________
JD Supporter, Plugin Dev. & Community Manager
Erste Schritte & Tutorials || JDownloader 2 Setup Download |
Thread Tools | |
Display Modes | |
|
|