MCPcopy Create free account

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

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

↓ 1 callersMethodclean_expired_files
(&self)
src/cache/backend/json.rs:479
↓ 1 callersMethodclean_expired_thumbnails
(&self)
src/cache/backend/json.rs:503
↓ 1 callersMethodclear_all
Clear all playlists (both layers). # Errors Returns an error if the backend clear operation fails.
src/cache/stores/playlist.rs:241
↓ 1 callersMethodclient
Returns the shared HTTP client used by all downloads. This client is configured with connection pooling, TLS session caching, and any proxy settings
src/download/manager.rs:147
↓ 1 callersFunctionclip_stream
Downloads only the bytes covering `[start_secs, end_secs]` from `url` using `media_seek`. Uses `media_seek` to parse the container index and resolve
src/client/stream_downloads.rs:387
↓ 1 callersFunctioncollect_idx1_keyframes
Scans an `idx1` payload and collects video and audio keyframe `(index, byte_offset)` pairs.
crates/media-seek/src/video/avi.rs:220
↓ 1 callersFunctioncollect_pcr_points
Collects, deduplicates, and sorts [`PcrPoint`] samples across the stream. Phase 1 reads positions that fall within `probe` synchronously. Phase 2 fet
crates/media-seek/src/video/ts.rs:115
↓ 1 callersFunctioncollect_probe_points
Collects seek points that are already resident in `probe` and returns the byte positions that need to be fetched for the remaining seek points. # Arg
crates/media-seek/src/audio/ogg.rs:133
↓ 1 callersMethodcombine_audio_and_video
Combines the audio and video files into a single file. Be careful, this function may take a while to execute. # Arguments `audio_file` - The name of
src/client/streams/pipeline/combine.rs:373
↓ 1 callersFunctioncompute_audio_size
Returns the usable audio byte count starting after `frame_start`. Uses `total_size` as the authoritative file size (falling back to `probe.len()`). S
crates/media-seek/src/audio/mp3.rs:258
↓ 1 callersFunctioncompute_segment_byte_size
Computes the byte size of a keyframe segment from `chunk_idx` to `next_chunk_idx`. # Arguments `tables` - The collected moov seek tables. `chunk_idx
crates/media-seek/src/video/mp4.rs:921
↓ 1 callersMethodcontains_timestamp
Checks if a given timestamp (in seconds) falls within this heatmap segment.
src/model/types/heatmap.rs:106
↓ 1 callersFunctionconvert_vtt_timestamp_line
Converts a VTT timestamp line to SRT format. Only replaces dots with commas in the timestamp portions (HH:MM:SS.mmm), preserving any VTT position/ali
src/utils/subtitle/subtitle_converter.rs:267
↓ 1 callersFunctioncount_samples
Walk all stacks and compute self-time and total-time counts per function.
scripts/profiling-analyzer.py:117
↓ 1 callersFunctioncreate_http_client
Creates a new HTTP client with optimal pooling configuration (simple API). # Arguments `proxy` - Optional proxy configuration # Returns An Arc-wra
src/utils/http.rs:121
↓ 1 callersFunctiondecode_box_header
Decodes the size fields from an ISOBMFF box header at `data[pos..]`. Returns `(header_len, box_size)` where `header_len` is the number of bytes consu
crates/media-seek/src/video/mp4.rs:497
↓ 1 callersFunctiondetect_adts
Detects AAC ADTS sync from leading probe bytes. Verifies the first frame's length field and optionally checks for a second sync word at the computed
crates/media-seek/src/detect.rs:177
↓ 1 callersFunctiondetect_form_container
Detects an IFF FORM container and discriminates AIFF vs AIFC via the subtype at offset 8.
crates/media-seek/src/detect.rs:233
↓ 1 callersFunctiondetect_free_format_frame_size
Detects the fixed frame size of a free-format (bi==0) MPEG Layer III stream by scanning for consecutive sync words at consistent intervals.
crates/media-seek/src/audio/mp3.rs:320
↓ 1 callersFunctiondetect_image_extension
Detects the file extension of an image from its magic bytes. Returns `"jpg"`, `"png"`, `"webp"`, `"gif"`, or `"jpg"` as a fallback.
src/utils/fs.rs:578
↓ 1 callersFunctiondetect_isobmff
Detects ISO Base Media File Format by checking the 4-byte box type at offset 4.
crates/media-seek/src/detect.rs:147
↓ 1 callersFunctiondetect_mpeg_audio
Detects bare MPEG audio (Layer I, II, or III) without an ID3 header.
crates/media-seek/src/detect.rs:205
↓ 1 callersFunctiondetect_riff_container
Detects a RIFF container and discriminates WAV vs AVI via the 4-byte subtype at offset 8.
crates/media-seek/src/detect.rs:221
↓ 1 callersFunctiondetect_ts_sync
Detects MPEG-TS by checking for consecutive sync bytes spaced 188 bytes apart.
crates/media-seek/src/detect.rs:154
↓ 1 callersFunctiondetect_via_ytdlp
Detect extractor via yt-dlp simulation. # Arguments `url` - The URL to detect extractor for `executable_path` - Path to the yt-dlp executable # Ret
src/extractor/detector.rs:86
↓ 1 callersFunctiondetermine_mime_type
Determines the MIME type of a file based on its extension. # Arguments `path` - Path to the file # Returns The MIME type as a string
src/utils/fs.rs:87
↓ 1 callersMethoddimensions
Returns the width and height for this resolution # Returns A tuple (width, height) in pixels
src/download/config/postprocess.rs:125
↓ 1 callersMethoddisarm
Disarms the guard so the file will NOT be deleted upon drop.
src/utils/fs.rs:538
↓ 1 callersMethoddownload_and_continue
Fluent method to download a video and return self for chaining. # Arguments `video` - The video to download `output` - The output filename # Exampl
src/client/pipeline.rs:95
↓ 1 callersMethoddownload_and_track_segment
Downloads a single segment and tracks progress in the .parts file. Retry logic is handled internally by `download_segment` via `retry_policy`.
src/download/engine/parallel.rs:372
↓ 1 callersMethoddownload_audio_stream_to_path
Fetch the audio stream, download it to a specific path. # Arguments `video` - The `Video` metadata struct. `output` - The absolute or relative path
src/client/streams/pipeline/download.rs:344
↓ 1 callersMethoddownload_audio_stream_with_quality_to_path
Downloads an audio stream with quality preferences to a specific path. Unlike [`download_audio_stream_with_quality`](Self::download_audio_stream_with
src/client/streams/quality.rs:366
↓ 1 callersMethoddownload_id
Creates a filter that only accepts events with the specified download ID # Arguments `id` - The download ID to filter by # Returns An EventFilter
src/events/filters.rs:37
↓ 1 callersMethoddownload_playlist
Downloads all videos from a playlist. This method uses the `download_playlist_parallel` method internally with default concurrency settings. # Argum
src/client/streams/pipeline/playlist.rs:151
↓ 1 callersMethoddownload_playlist_items
Downloads specific videos from a playlist by their indices. # Arguments `playlist` - The `Playlist` metadata struct. `indices` - A slice of indices
src/client/streams/pipeline/playlist.rs:512
↓ 1 callersMethoddownload_playlist_range
Downloads a range of videos from a playlist. # Arguments `playlist` - The `Playlist` metadata struct. `start` - The start index (inclusive). `end` -
src/client/streams/pipeline/playlist.rs:568
↓ 1 callersMethoddownload_segment
Downloads a specific segment of the file. File write position is derived from `start - context.file_offset_base`. For regular downloads `file_offset_
src/download/engine/parallel.rs:441
↓ 1 callersMethoddownload_storyboard_format
Downloads all MHTML fragments of a storyboard format. Each fragment is a grid of preview images for a contiguous time range. Files are named `{video_
src/client/streams/assets/storyboard.rs:29
↓ 1 callersMethoddownload_video_stream
Download the video only, and returns its path. # Arguments `video` - The `Video` metadata struct. `output` - The output filename/path relative to th
src/client/streams/pipeline/download.rs:140
↓ 1 callersMethoddownload_video_stream_to_path
Download the video stream to a specific path. # Arguments `video` - The `Video` metadata struct. `output` - The absolute or relative path to save th
src/client/streams/pipeline/download.rs:162
↓ 1 callersMethoddownload_video_stream_with_quality
Downloads a video stream (video-only) with the specified quality preferences. # Arguments `video` - The pre-fetched `Video` metadata. `output` - The
src/client/streams/quality.rs:237
↓ 1 callersMethoddownload_video_stream_with_quality_to_path
Downloads a video stream with quality preferences to a specific path. Unlike [`download_video_stream_with_quality`](Self::download_video_stream_with_
src/client/streams/quality.rs:295
↓ 1 callersMethoddownload_video_with_priority_to_path
Download a video using the download manager with priority to a specific path. Unlike [`download_video_with_priority`](Self::download_video_with_prior
src/download/api.rs:51
↓ 1 callersMethoddownload_video_with_progress_to_path
Download a video using the download manager with progress tracking to a specific path. Unlike [`download_video_with_progress`](Self::download_video_w
src/download/api.rs:137
↓ 1 callersMethoddownload_video_with_quality_to_path
Downloads a video with quality preferences to a specific path. Unlike [`download_video_with_quality`](Self::download_video_with_quality), this method
src/client/streams/quality.rs:84
↓ 1 callersMethoddownload_video_with_quality_to_path_inner
Internal implementation for download_video_with_quality_to_path. Separated to allow retry on 403 wrapping without duplicating the complex body.
src/client/streams/quality.rs:106
↓ 1 callersMethodduration_in_range
Checks if the chapter duration is within the given range (in seconds). # Arguments `min_duration` - Minimum duration in seconds `max_duration` - Max
src/model/types/chapter.rs:128
↓ 1 callersMethodduration_minutes
Returns the duration in minutes. # Returns The duration in minutes
src/model/types/chapter.rs:34
↓ 1 callersMethodembed_subtitles_in_video
Embeds subtitle files into a video file using ffmpeg. # Arguments `video_path` - Path to the input video file `subtitle_paths` - Paths to subtitle f
src/client/streams/processing.rs:25
↓ 1 callersMethodembed_subtitles_with_languages
Embeds subtitle files into a video file with language metadata using ffmpeg. # Arguments `video_path` - Path to the input video file `subtitle_paths
src/client/streams/processing.rs:78
↓ 1 callersMethodembed_thumbnail_bytes
Embeds a thumbnail image from raw in-memory bytes into a media file's metadata. The image format is automatically detected from magic bytes (`.jpg`,
src/client/streams/pipeline/download.rs:302
↓ 1 callersMethodembed_thumbnail_file
Embeds a thumbnail image from a file into a media file's metadata. Supports MP3 (ID3 APIC), M4A/MP4 (cover art atom), FLAC/OGG/WAV (Vorbis comment /
src/client/streams/pipeline/download.rs:262
↓ 1 callersMethodembed_thumbnail_quality
Sets the desired thumbnail quality and enables embedding it into the downloaded file. # Arguments `quality` - The desired thumbnail quality level #
src/client/download_builder.rs:235
↓ 1 callersFunctionemit_download_result
( event_bus: &Option<crate::events::EventBus>, status: &DownloadStatus, task_id: u64, url: &st
src/download/worker.rs:214
↓ 1 callersMethodemit_playlist_item_event
( &self, entry: &crate::model::playlist::PlaylistEntry, download_result: &crate::error
src/client/streams/pipeline/playlist.rs:470
↓ 1 callersFunctionenqueue_both_downloads
Enqueues video and audio downloads and returns their assigned IDs. When a `progress_tracker` is provided, both streams feed into the tracker to produ
src/client/download_builder.rs:1177
↓ 1 callersMethodenqueue_with_progress_and_headers
Add a download to the queue with a progress callback and specific HTTP headers
src/download/manager.rs:279
↓ 1 callersMethodensure_worker
Ensures the single background worker task is running. Uses a compare-exchange on `worker_started` so that at most one worker is ever live. The worker
src/download/manager.rs:715
↓ 1 callersMethodentry_count
Returns the number of videos currently in the entries list. # Returns The number of entries currently loaded
src/model/types/playlist.rs:46
↓ 1 callersMethodeq
(&self, other: &Self)
src/model/types/chapter.rs:435
↓ 1 callersMethodevent_bus
Returns a reference to the event bus. # Returns A reference to the [`EventBus`](events::EventBus).
src/lib.rs:582
↓ 1 callersMethodexclude_progress
Excludes progress events (useful to reduce noise)
src/events/filters.rs:158
↓ 1 callersMethodexecute_audio_only
Executes audio-only download and optional transcoding.
src/client/download_builder.rs:396
↓ 1 callersFunctionexecute_command_to_file
Executes a command and redirects stdout to a file. # Arguments `executable_path` - Path to the executable `args` - Arguments to pass to the command
src/executor/process.rs:64
↓ 1 callersMethodexecute_simple_request
Executes the simple download HTTP request with optional resume via Range header.
src/download/engine/parallel.rs:571
↓ 1 callersMethodexecute_streaming
LCOV_EXCL_START — requires real ffmpeg binary on PATH
src/executor/mod.rs:221
↓ 1 callersMethodexecute_to_file
Executes the command and redirects stdout to a file. # Arguments `output_path` - The path where stdout will be written # Returns ProcessOutput con
src/executor/mod.rs:178
↓ 1 callersMethodexecute_video_and_audio
Executes both video and audio downloads and combines them.
src/client/download_builder.rs:705
↓ 1 callersMethodextract_archive
Extract the archive and move the binary to the correct location # Arguments `archive` - Path to the archive file `destination` - Destination directo
src/client/deps/ffmpeg.rs:233
↓ 1 callersMethodextract_binary
Extract the ffmpeg binary from the downloaded archive, for the current platform and architecture. The resulting binary will be placed in the same dire
src/client/deps/ffmpeg.rs:133
↓ 1 callersMethodextract_binary_for_platform
Extract the ffmpeg binary from the downloaded archive, for the given platform and architecture. The resulting binary will be placed in the same direct
src/client/deps/ffmpeg.rs:157
↓ 1 callersFunctionextract_keyframes
Extracts `keyframes.times` and `keyframes.filepositions` arrays from an AMF0 object.
crates/media-seek/src/video/flv.rs:279
↓ 1 callersFunctionextract_pcr_from_packet
Extracts a PCR timestamp (in seconds) from a single TS packet. Returns `None` when the packet does not carry a PCR for `pcr_pid`.
crates/media-seek/src/video/ts.rs:316
↓ 1 callersFunctionextract_pmt_pid_from_pat_payload
Extracts the PMT PID from a PAT section payload. Handles the NIT special case (program_number == 0) by skipping the NIT entry and returning the PID f
crates/media-seek/src/video/ts.rs:238
↓ 1 callersFunctionextract_stbl_tables
Traverses `trak → mdia → {mdhd, minf → stbl}` and collects all seek tables.
crates/media-seek/src/video/mp4.rs:551
↓ 1 callersFunctionextract_zip
Extracts a zip file to the given destination. # Arguments `zip_path` - The path to the zip file. `destination` - The path to extract the zip file to
src/utils/fs.rs:296
↓ 1 callersFunctionf64_ceil_to_u64
Converts a finite non-negative `f64` to `u64` using ceil, clamping to avoid overflow. Returns `u64::MAX / 2` for non-finite or negative values.
crates/media-seek/src/index.rs:67
↓ 1 callersFunctionf64_floor_to_u64
Converts a finite non-negative `f64` to `u64` using floor, clamping to avoid overflow. Returns `u64::MAX / 2` for non-finite or negative values.
crates/media-seek/src/index.rs:56
↓ 1 callersMethodfallback_dir_scan
Scans the cache directory for a video entry matching `url`. Used as a fallback when no URL→ID index exists (backward compatibility with entries writt
src/cache/backend/json.rs:144
↓ 1 callersMethodfetch
Fluent method to fetch video info and return self for chaining. This is useful for building operation pipelines. # Arguments `url` - The YouTube vi
src/client/pipeline.rs:42
↓ 1 callersMethodfetch_asset_range
Downloads only `[byte_start, byte_end]` from the URL and writes them from offset 0 in `destination`. Skips the `probe_range_support` call — range sup
src/download/engine/fetcher.rs:437
↓ 1 callersMethodfetch_asset_simple
Simple download method without parallel optimizations.
src/download/engine/parallel.rs:507
↓ 1 callersMethodfetch_binary
Fetch the ffmpeg binary for the current platform and architecture. # Returns A `WantedRelease` containing the URL and other info for the compatible
src/client/deps/ffmpeg.rs:78
↓ 1 callersMethodfetch_binary_for_platform
Fetch the ffmpeg binary for the given platform and architecture. # Arguments `platform` - The platform to fetch the binary for. `architecture` - The
src/client/deps/ffmpeg.rs:97
↓ 1 callersMethodfetch_checksum
Fetch the checksum for the given asset from the release. # Arguments `release` - The GitHub release `asset_name` - Name of the asset to find checksu
src/client/deps/github.rs:183
↓ 1 callersFunctionfetch_cues_body
Fetches the Cues element body, returning `(buffer, body_start_offset)`. Three strategies are tried in order: 1. Cues is fully within `probe` — copies
crates/media-seek/src/video/webm.rs:472
↓ 1 callersFunctionfetch_id3v1_present
Checks whether the file ends with an ID3v1 tag by fetching the last 128 bytes. Returns `false` silently on fetch failure — ID3v1 detection is best-ef
crates/media-seek/src/audio/mp3.rs:242
↓ 1 callersMethodfetch_latest_release
Fetch the latest release of the GitHub repository. # Arguments `auth_token` - An optional GitHub personal access token to authenticate the request.
src/client/deps/github.rs:149
↓ 1 callersMethodfetch_playlist
(&self, _url: &str)
tests/common/test_extractor.rs:61
↓ 1 callersMethodfetch_playlist_metadata
Fetch and parse playlist metadata.
src/extractor/mod.rs:146
↓ 1 callersFunctionfetch_probe
Fetches the probe bytes and total size for `url` using a HEAD or Range GET. Returns `(probe_bytes, total_size)`. `total_size` is `None` when the serv
src/client/streams/pipeline/partial.rs:67
↓ 1 callersFunctionfetch_range_to_file
Downloads a byte range from `url` and appends the bytes to `dest`. If `dest` does not yet exist it is created; if it does exist the bytes are appende
src/client/streams/pipeline/partial.rs:105
↓ 1 callersMethodfetch_release
Fetch the yt-dlp binary for the current platform and architecture. # Arguments `auth_token` - Optional GitHub authentication token # Returns A `Wa
src/client/deps/ytdlp.rs:60
↓ 1 callersMethodfetch_segment
Fetches a single segment's bytes with retries.
src/live/core.rs:111
↓ 1 callersMethodfetch_segment_once
Single attempt to fetch a segment.
src/live/core.rs:137
↓ 1 callersMethodfetch_text
Fetch the data from the URL and return it as text. # Arguments `auth_token` - An optional authentication token to use for the request. # Errors Th
src/download/engine/fetcher.rs:302
↓ 1 callersMethodfetch_video
(&self, url: &str)
src/extractor/youtube.rs:424
↓ 1 callersMethodfetch_video_metadata
Fetch and parse video metadata.
src/extractor/mod.rs:139
↓ 1 callersMethodfilter
Returns a filter for which events this hook should receive By default, receives all events
src/events/delivery/hooks.rs:48
↓ 1 callersMethodfilter_by_uploader
Filters entries by uploader/channel. # Arguments `uploader` - The uploader name to filter by (case-insensitive) # Returns Returns a vector of entr
src/model/types/playlist.rs:155
← previousnext →401–500 of 2,260, ranked by callers