MCPcopy Create free account

hub / github.com/boul2gom/yt-dlp / functions

Functions2,260 in github.com/boul2gom/yt-dlp

↓ 3 callersMethoddownload_video_with_priority
Download a video using the download manager with priority. This method adds the video download to the download queue with the specified priority. The
src/download/api.rs:26
↓ 3 callersMethodenqueue_range
Enqueues a partial download covering only `[byte_start, byte_end]` of the URL. The destination file will contain exactly `byte_end - byte_start + 1`
src/download/manager.rs:348
↓ 3 callersFunctionexecute_command
Executes a command with the given arguments and timeout. # Arguments `executable_path` - Path to the executable `args` - Arguments to pass to the co
src/executor/process.rs:44
↓ 3 callersMethodexecute_ffmpeg_combine
Executes the FFmpeg command to combine audio and video files. Selects the audio codec automatically: uses stream copy when the audio format is native
src/client/streams/pipeline/combine.rs:475
↓ 3 callersFunctionextract_video_id
Extracts a potential video ID from a filename.
src/utils/fs.rs:469
↓ 3 callersMethodget_chapters
Returns the chapters of the video. # Returns A slice containing all chapters in the video
src/model/video.rs:168
↓ 3 callersMethodget_entries_in_range
Gets all entries within a range (inclusive). # Arguments `start` - The start index (0-based) `end` - The end index (0-based, inclusive) # Returns
src/model/types/playlist.rs:86
↓ 3 callersMethodget_heatmap
Returns the heatmap data for the video if available. # Returns A reference to the heatmap, or None if no heatmap data is available
src/model/video.rs:201
↓ 3 callersMethodis_success
Checks if the download was successful.
src/model/types/playlist.rs:368
↓ 3 callersFunctionload_e2e_live_video
(base_url: &str)
tests/e2e/helpers.rs:33
↓ 3 callersFunctionload_subtitle_string
Loads the raw string content of a subtitle fixture.
tests/common/fixtures.rs:99
↓ 3 callersMethodmax_buffer_size
Get the maximum buffer size in bytes for this profile # Returns Maximum buffer size in bytes
src/download/config/speed_profile.rs:114
↓ 3 callersMethodmax_concurrent_downloads
Get the maximum number of concurrent downloads for this profile # Returns Maximum number of concurrent downloads
src/download/config/speed_profile.rs:75
↓ 3 callersMethodpartial
Sets a partial range for downloading only a portion of the video. # Arguments `range` - The partial range to download (time range or chapter range)
src/client/download_builder.rs:321
↓ 3 callersMethodpoints
Returns a slice of all heatmap points. # Returns A slice of all `HeatmapPoint` entries in this heatmap
src/model/types/heatmap.rs:41
↓ 3 callersMethodput_cached_file
Internal helper: put a CachedFile to both layers.
src/cache/stores/files.rs:575
↓ 3 callersMethodput_subtitle_file
Store a subtitle file in the cache (both layers). # Arguments `source_path` - Path to the source subtitle file. `filename` - Display name for the ca
src/cache/stores/files.rs:435
↓ 3 callersFunctionread_uint
Reads a big-endian unsigned integer of `size` bytes from `data[pos..]`.
crates/media-seek/src/video/webm.rs:98
↓ 3 callersMethodrecord
Starts the recording loop. Polls the HLS media playlist at intervals of `target_duration / 2`, downloads new segments, and appends them to the output
src/live/recording/native.rs:83
↓ 3 callersMethodremove
(&self, id: &str)
src/cache/backend/redb/file.rs:212
↓ 3 callersFunctionsamples_per_frame
Returns the number of PCM samples per frame for the given MPEG version and layer.
crates/media-seek/src/audio/mp3.rs:474
↓ 3 callersMethodselect_storyboard_format
Selects a storyboard format based on quality preference.
src/client/streams/selection.rs:445
↓ 3 callersMethodset_cache
(&mut self, config: CacheConfig)
src/lib.rs:829
↓ 3 callersFunctionsetup_range_server
()
tests/integration/download/fetcher_range.rs:10
↓ 3 callersMethodskip_dash_manifest
Skip DASH manifest for faster extraction. This speeds up video information fetching but may miss some formats. # Arguments `skip` - Whether to skip
src/extractor/youtube.rs:162
↓ 3 callersMethodsubscriber_count
Returns the number of active subscribers # Returns The current number of active subscribers
src/events/bus.rs:158
↓ 3 callersMethodtimeout
Returns the timeout. # Returns Timeout duration for command execution
src/executor/mod.rs:123
↓ 3 callersMethodvideo_quality
Sets the desired video quality. # Arguments `quality` - The desired video quality level # Returns The modified `DownloadBuilder` instance.
src/client/download_builder.rs:133
↓ 3 callersMethodwith_args
Set custom arguments to pass to yt-dlp. # Arguments `args` - The arguments to pass to yt-dlp
src/client/builder.rs:93
↓ 3 callersMethodwith_max_duration
Sets the maximum recording duration. # Arguments `duration` - Maximum time to record before automatically stopping.
src/live/mod.rs:183
↓ 3 callersMethodwith_netrc
Use .netrc for authentication.
src/client/builder.rs:173
↓ 3 callersMethodwith_segment_size
Configures the size of each segment in bytes. # Arguments `size` - The size of each segment in bytes.
src/download/engine/fetcher.rs:222
↓ 3 callersMethodwith_video_codec
Sets the video codec # Arguments `codec` - Video codec to use # Returns Self for method chaining
src/download/config/postprocess.rs:397
↓ 3 callersMethodwith_warning
Adds a warning to the validation result.
src/model/types/chapter.rs:392
↓ 3 callersMethodworst_audio_format
Returns the worst audio format available. Formats sorting : "quality", "audio bitrate", "sample rate", "audio channels"
src/client/streams/selection.rs:204
↓ 3 callersMethodworst_video_format
Returns the worst video format available. Formats sorting : "quality", "video resolution", "fps", "video bitrate"
src/client/streams/selection.rs:189
↓ 2 callersMethodadd_arg
Adds an argument to pass to yt-dlp. # Arguments `arg` - The argument to pass to yt-dlp. # Examples ```rust,no_run # use yt_dlp::Downloader; # use
src/lib.rs:702
↓ 2 callersMethodadd_ffmpeg_metadata
Add metadata to a video file using FFmpeg (for formats not directly supported). This is a fallback method for formats that don't have dedicated suppo
src/metadata/writers/ffmpeg.rs:91
↓ 2 callersMethodadd_metadata_to_webm
Add metadata to a WebM/MKV file using FFmpeg. WebM/MKV metadata includes: All basic metadata (via Matroska format), plus technical information (resol
src/metadata/writers/ffmpeg.rs:30
↓ 2 callersMethodadd_metadata_with_format
Add metadata to a file with format details for audio and video. This method should be used when you have detailed format information, typically for c
src/metadata/api.rs:111
↓ 2 callersFunctionapply_postprocess
Applies post-processing to a video file using FFmpeg. # Arguments `input_path` - Path to the input video file `output_path` - Path for the output pr
src/metadata/postprocess.rs:31
↓ 2 callersMethodas_str
Returns the extension as a string slice. # Returns A static string representation of this extension variant (e.g. `"vtt"`, `"srt"`).
src/model/types/caption.rs:56
↓ 2 callersFunctionassert_file_size_gt
Assert a file has a size strictly greater than `min_bytes`.
tests/common/assertions.rs:52
↓ 2 callersMethodbest_audio_video_format
Returns the best format that contains both audio and video. # Returns The best combined `Format`, or an error if none are available.
src/model/video.rs:371
↓ 2 callersMethodbest_storyboard_format
(&self)
src/client/streams/selection.rs:434
↓ 2 callersMethodbuild
Builds the final argument list. # Returns A `Vec<String>` with all arguments in the correct order: inputs and flags first, then `-y` if set, then th
src/executor/ffmpeg.rs:136
↓ 2 callersMethodcallback
Creates a callback function for progress updates # Returns A callback function that can be used to update progress
src/download/config/progress.rs:117
↓ 2 callersFunctioncheck_error
Check if a reqwest error indicates an expired URL. # Arguments `error` - The reqwest error to analyze # Returns Returns `UrlStatus::Expired` if th
src/utils/network/url_expiry.rs:106
↓ 2 callersFunctioncheck_http_status
Check if an HTTP status code indicates an expired URL. # Arguments `status` - The HTTP status code to check # Returns Returns `UrlStatus::Expired`
src/utils/network/url_expiry.rs:83
↓ 2 callersFunctionclean_symbol
Strip the Rust hash suffix (::h...) from a symbol name.
scripts/profiling-analyzer.py:21
↓ 2 callersMethodcleanup_finished
Clean up completed, failed, and cancelled downloads from internal maps This method removes finished downloads from memory to prevent memory leaks. It
src/download/manager.rs:402
↓ 2 callersFunctioncontains_ignore_ascii_case
Case-insensitive substring check without allocation.
src/model/selector.rs:175
↓ 2 callersMethodcontains_timestamp
Checks if a given timestamp (in seconds) is within this chapter. # Arguments `timestamp` - The timestamp in seconds to check # Returns `true` if t
src/model/types/chapter.rs:47
↓ 2 callersFunctioncum_dur_at_sample
Returns the cumulative media-timescale duration at the start of sample `sample_num` (1-based). Iterates `stts` runs in O(runs) time without expanding
crates/media-seek/src/video/mp4.rs:797
↓ 2 callersMethoddownload
Download the release asset to the given destination. # Arguments `destination` - The path to write the asset to. # Errors This function will retur
src/client/deps/mod.rs:356
↓ 2 callersMethoddownload_all_subtitles
Downloads all available subtitles and automatic captions for a video. Iterates over user-uploaded subtitles first, then merges automatic captions for
src/client/streams/assets/subtitle.rs:133
↓ 2 callersMethoddownload_and_combine_with_meta
Downloads two format streams in parallel and combines them with ffmpeg in a single pass, embedding video metadata and chapters at the same time. Unli
src/client/streams/pipeline/combine.rs:235
↓ 2 callersMethoddownload_audio_stream_with_quality
Downloads an audio stream with the specified quality preferences. # Arguments `video` - The pre-fetched `Video` metadata. `output` - The name of the
src/client/streams/quality.rs:343
↓ 2 callersMethoddownload_playlist_parallel
Downloads all videos from a playlist in parallel. # Arguments `playlist` - The `Playlist` metadata struct. `output_pattern` - pattern for output fil
src/client/streams/pipeline/playlist.rs:216
↓ 2 callersMethoddownload_stream_with_quality
Helper function to download a specific type of stream with quality preferences
src/client/streams/quality.rs:250
↓ 2 callersMethoddownload_thumbnail
Downloads the thumbnail of a video. # Arguments `video` - The `Video` metadata struct. `quality` - The requested thumbnail quality. `output` - The p
src/client/streams/pipeline/download.rs:189
↓ 2 callersMethoddownload_video_to_path
Fetch the video, download it (video with audio) to a specific path. # Arguments `video` - The `Video` metadata struct. `output` - The absolute or re
src/client/streams/pipeline/download.rs:57
↓ 2 callersMethoddownload_video_with_quality
Downloads a video (video + audio combined) with the specified quality preferences. # Arguments `video` - The pre-fetched `Video` metadata. `output`
src/client/streams/quality.rs:50
↓ 2 callersMethodembed_thumbnail
Enables or disables embedding the video thumbnail into the downloaded file. If enabled, the thumbnail is downloaded into a temporary file and embedde
src/client/download_builder.rs:221
↓ 2 callersMethodemit
(&self)
src/client/download_builder.rs:1146
↓ 2 callersFunctionemit_bus_event
(event_bus: &Option<crate::events::EventBus>, event: crate::events::DownloadEvent)
src/download/worker.rs:35
↓ 2 callersMethodemit_event
Emits an event if an event bus is configured
src/download/manager.rs:617
↓ 2 callersFunctionemit_live_progress
Emits a live progress event if the throttle interval has elapsed. Computes elapsed time, byte count, and bitrate, then calls `make_event` to construc
src/live/core.rs:227
↓ 2 callersMethodenqueue_with_all_options
Add a download to the queue with all options: progress callback, HTTP headers, and available_at timestamp
src/download/manager.rs:304
↓ 2 callersMethodenqueue_with_headers
Add a download to the queue with specific HTTP headers from yt-dlp # Arguments `url` - The URL to download `destination` - The destination path `pri
src/download/manager.rs:225
↓ 2 callersMethodevent_subscriber_count
Returns the number of active event subscribers. # Returns The number of currently active event subscribers.
src/client/pipeline.rs:434
↓ 2 callersMethodexecute
Executes the command and returns the output. # Returns ProcessOutput containing stdout, stderr, and exit code # Errors This function will return a
src/executor/mod.rs:136
↓ 2 callersFunctionexecute_and_parse
Internal generic helper: execute yt-dlp and parse its JSON output as `T`. Handles the common pattern of creating an `Executor`, writing output to a t
src/extractor/mod.rs:237
↓ 2 callersFunctionexecute_and_parse_playlist
Helper to execute the extractor command and parse the output as a Playlist. # Errors Returns an error if execution fails, JSON parsing fails, or the
src/extractor/mod.rs:308
↓ 2 callersFunctionexecute_and_parse_video
Helper to execute the extractor command and parse the output as a Video. # Errors Returns an error if execution fails, JSON parsing fails, or the op
src/extractor/mod.rs:284
↓ 2 callersFunctionexecute_command_internal
Internal command execution with optional file output # Arguments `executable_path` - Path to the executable `args` - Arguments to pass to the comman
src/executor/process.rs:90
↓ 2 callersMethodfetch_fragment
Fetches a fragment and returns a structured fragment payload.
src/live/core.rs:159
↓ 2 callersMethodfetch_internal
Fetch the data from the URL and return it as a reqwest response.
src/download/engine/fetcher.rs:309
↓ 2 callersMethodfetch_release_for_platform
Fetch the latest release for the given platform. # Arguments `platform` - The platform to fetch the release for. `architecture` - The architecture t
src/client/deps/github.rs:100
↓ 2 callersMethodfetch_video
(&self, _url: &str)
tests/common/test_extractor.rs:54
↓ 2 callersMethodfetch_video_infos_fresh
Fetch the video information from the given URL, bypassing the cache. # Arguments `url` - The URL of the video. # Returns A `Video` struct containi
src/client/streams/pipeline/fetch.rs:155
↓ 2 callersMethodfetch_video_infos_internal
Internal helper to fetch video information, emit events, and update cache.
src/client/streams/pipeline/fetch.rs:163
↓ 2 callersMethodfilter
(&self)
tests/e2e/events/pipeline.rs:184
↓ 2 callersMethodfilter_by_duration
Filters chapters by duration range. # Arguments `min_duration` - Minimum duration in seconds `max_duration` - Maximum duration in seconds # Returns
src/model/types/chapter.rs:215
↓ 2 callersFunctionfind_all_sidx
Collects all `sidx` boxes from `data` in a single linear traversal. Returns a list of `(body, sidx_end)` pairs where `body` is the box payload and `s
crates/media-seek/src/video/mp4.rs:264
↓ 2 callersMethodfind_by_exact_title
Finds the first chapter with a title matching the query exactly. # Arguments `title` - The exact title to search for # Returns Returns an Option c
src/model/types/chapter.rs:170
↓ 2 callersFunctionfind_ogg_sync
Finds the byte offset of the first OGG capture pattern in `data`.
crates/media-seek/src/audio/ogg.rs:280
↓ 2 callersFunctionfixup_segment_end_times
Fills in `end_secs` for each segment from the next segment's `start_secs`. The last segment receives `total_secs` as its end time.
crates/media-seek/src/video/mp4.rs:938
↓ 2 callersFunctionflush_subtitle
(output: &mut String, index: &mut usize, subtitle: &mut Vec<String>, in_subtitle: &mut bool)
src/utils/subtitle/subtitle_converter.rs:167
↓ 2 callersMethodget
(&self, url: &str)
src/cache/backend/redb/playlist.rs:58
↓ 2 callersMethodget_entry_by_index
Gets a playlist entry by its index (0-based). # Arguments `index` - The 0-based index of the entry # Returns A reference to the entry at the given
src/model/types/playlist.rs:72
↓ 2 callersMethodget_extractor
Helper to determine the correct extractor for a given URL. # Arguments `url` - The video URL # Returns Reference to the appropriate video extracto
src/client/streams/pipeline/fetch.rs:62
↓ 2 callersFunctionget_or_create_tag
Get an existing tag of the given type, or insert a new one and return it.
src/metadata/writers/lofty.rs:182
↓ 2 callersFunctionguess_mime
Guesses a MIME type from a file extension.
src/cache/stores/files.rs:26
↓ 2 callersMethodhas_title
Checks if the chapter has a title. # Returns `true` if the chapter has a title, `false` otherwise
src/model/types/chapter.rs:56
↓ 2 callersMethodinstall_ffmpeg
Install ffmpeg from static builds in the boul2gom/ffmpeg-builds repository. # Arguments `custom_name` - Optional custom name for the executable.
src/client/deps/mod.rs:147
↓ 2 callersMethodinstall_ffmpeg_internal
(&self, _auth_token: Option<String>)
src/client/deps/mod.rs:268
↓ 2 callersMethodinstall_youtube_from_repo
Install yt-dlp from a custom repository, assuming releases assets are named correctly. # Arguments `owner` - The owner of the repository. `repo` - T
src/client/deps/mod.rs:110
↓ 2 callersMethodinstall_youtube_internal
(&self, auth_token: Option<String>)
src/client/deps/mod.rs:235
↓ 2 callersMethodinvalidate
Remove a playlist from the cache (both layers). # Arguments `url` - The URL of the playlist to invalidate. # Errors Returns an error if the backen
src/cache/stores/playlist.rs:207
← previousnext →201–300 of 2,260, ranked by callers