mirror of
https://onedev.site.tesses.net/tytd2025
synced 2026-02-08 17:45:45 +00:00
36 lines
1.4 KiB
Plaintext
36 lines
1.4 KiB
Plaintext
class Resolution
|
|
{
|
|
/^ Used to fetch metadata only ^/
|
|
static getNoDownload() "NoDownload";
|
|
/^ Get the video/audio mp4 (muxed by YouTube) ^/
|
|
static getLowVideo() "LowVideo";
|
|
/^ Get the highest video stream ^/
|
|
static getVideoOnly() "VideoOnly";
|
|
/^ Get the highest audio stream ^/
|
|
static getAudioOnly() "AudioOnly";
|
|
/^ Get the highest audio stream (and convert to mp3) ^/
|
|
static getMP3() "MP3";
|
|
/^ Get the highest audio stream (and convert to flac) ^/
|
|
static getFLAC() "FLAC";
|
|
/^ Get the highest video and then audio stream (and convert to mp4) ^/
|
|
static getMP4() "MP4";
|
|
/^ Get the highest video and then audio stream (and mux to a mkv file) ^/
|
|
static getMKV() "MKV";
|
|
/^ Get the highest video and then audio stream (dont convert or mux) ^/
|
|
static getDontConvert() "DontConvert";
|
|
|
|
static getResolutions()
|
|
{
|
|
return [
|
|
{name="Don't Download", value=Resolution.NoDownload},
|
|
{name="Low (muxed by YouTube)", value=Resolution.LowVideo,default=true},
|
|
{name="Highest video (no audio)", value=Resolution.VideoOnly},
|
|
{name="Highest audio (no video)", value=Resolution.AudioOnly},
|
|
{name="Convert to MP3", value=Resolution.MP3},
|
|
{name="Convert to FLAC", value=Resolution.FLAC},
|
|
{name="Convert to MP4", value=Resolution.MP4},
|
|
{name="Mux to MKV (no transcoding)",value=Resolution.MKV},
|
|
{name="Don't convert or Mux",value=Resolution.DontConvert}
|
|
];
|
|
}
|
|
} |