YT-DLX: The Ultimate Multimedia Downloader

YT-DLX is a powerful and versatile tool that allows you to download audio and video content from a wide range of sources, including YouTube, Vimeo, and many more.

logo
Documentation

YtDlx.Video.Highest()

Downloads or streams the highest quality video from YouTube.

Highest Quality Video

Download the highest quality video available

Parameters

options

An object containing the configuration options.

options.query

The search query or video URL. Required.

options.output

(Optional) The directory to save the output file.Cannot be used with metadata: true.

options.useTor

(Optional) Whether to use Tor.

options.stream

(Optional) Whether to stream the output.Cannot be used with metadata: true.

options.verbose

(Optional) Enable verbose logging.

options.metadata

(Optional) Only fetch metadata.Cannot be used with output,stream, orfilter.

options.filter

(Optional) A video filter to apply.Cannot be used with metadata: true.

Available: "invert""rotate90""rotate270""grayscale""rotate180""flipVertical""flipHorizontal"

Return Value

An EventEmitter instance for handling events during the video processing.

Emits "start"

FFmpeg command started.

Emits "progress"

Download/stream progress.

Emits "end"

Process complete (path or stream path).

Emits "metadata"

Video metadata, formats, suggested filename.(if metadata: true)

Emits "stream"

Streamable filename/path and FFmpeg instance.(if stream: true)

Emits "error"

Error occurred.