Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/boul2gom/yt-dlp
/ functions
Functions
2,260 in github.com/boul2gom/yt-dlp
⨍
Functions
2,260
◇
Types & classes
233
↓ 2 callers
Method
is_audio_and_video
Checks if the format is an audio and video format. # Returns `true` if the format type is [`FormatType::AudioVideo`].
src/model/format.rs:656
↓ 2 callers
Method
is_empty
Checks if any post-processing is configured # Returns true if no post-processing options are set, false otherwise
src/download/config/postprocess.rs:467
↓ 2 callers
Method
is_expired
Checks if the URL is expired.
src/utils/network/url_expiry.rs:39
↓ 2 callers
Method
is_format
Checks if this subtitle is in a specific format. # Arguments `format` - The extension variant to compare against. # Returns `true` if the subtitle
src/model/types/caption.rs:155
↓ 2 callers
Method
is_progress
Returns true if this is a progress event
src/events/types.rs:343
↓ 2 callers
Method
is_terminal
Returns true if this is a terminal event (download completed, failed, or canceled)
src/events/types.rs:335
↓ 2 callers
Function
is_vint_unknown
Returns `true` when `(value, width)` represents an EBML unknown-size sentinel.
crates/media-seek/src/video/webm.rs:36
↓ 2 callers
Method
json
Create a JSON parsing error with context. # Arguments `context` - Description of what was being parsed/serialized `source` - The underlying serde_js
src/error.rs:400
↓ 2 callers
Function
keyframes_to_segments
Converts `(frame_index, byte_offset)` keyframe pairs to `SegmentEntry` list using `fps`.
crates/media-seek/src/video/avi.rs:347
↓ 2 callers
Function
load_e2e_drm_video
Loads the DRM video fixture with `{{MOCK_SERVER}}` replaced.
tests/e2e/helpers.rs:48
↓ 2 callers
Function
load_video_with_mock_urls
Loads a Video from the video.json fixture with mock server URLs replaced.
tests/common/fixtures.rs:52
↓ 2 callers
Method
log_and_fetch_playlist
Fetches playlist metadata and emits structured tracing on success or failure. Wraps `fetch_playlist_metadata` with a consistent log pattern. Call thi
src/extractor/mod.rs:185
↓ 2 callers
Method
log_and_fetch_video
Fetches video metadata and emits structured tracing on success or failure. Wraps `fetch_video_metadata` with a consistent log pattern. Call this from
src/extractor/mod.rs:159
↓ 2 callers
Function
make_audio_format
(id: &str, acodec: &str, abr: f64, asr: i64, channels: i64, quality: f64)
tests/unit/selection.rs:74
↓ 2 callers
Method
matches
Tests if an event matches all predicates # Arguments `event` - The event to test # Returns true if the event matches all predicates, false otherwi
src/events/filters.rs:143
↓ 2 callers
Method
max_delay
Get the maximum delay. # Returns The maximum delay cap between retries.
src/utils/network/retry.rs:169
↓ 2 callers
Method
maybe_embed_thumbnail
Embeds the thumbnail into the output file if `embed_thumbnail` is enabled. Uses best effort: if thumbnail downloading or embedding fails, emits a war
src/client/download_builder.rs:919
↓ 2 callers
Method
mode
Sets the download mode explicitly.
src/client/download_builder.rs:287
↓ 2 callers
Method
on_audio_progress
(&self, downloaded: u64, total: u64)
src/client/download_builder.rs:1138
↓ 2 callers
Method
on_video_progress
(&self, downloaded: u64, total: u64)
src/client/download_builder.rs:1130
↓ 2 callers
Method
open_download_file
Opens an existing file for resume or creates a new one, pre-allocated to the target size. Returns a `std::fs::File` so that parallel segments can per
src/download/engine/parallel.rs:317
↓ 2 callers
Function
page_payload_offset
Returns the byte offset of the first page's data payload.
crates/media-seek/src/audio/ogg.rs:264
↓ 2 callers
Function
parse_all_sidx
Parses all SIDX boxes in `sidx_list` where byte offsets in `data` are relative to `base_offset` within the stream.
crates/media-seek/src/video/mp4.rs:298
↓ 2 callers
Function
pat_payload_start
Returns the byte offset of the PAT/PMT payload within a TS packet.
crates/media-seek/src/video/ts.rs:267
↓ 2 callers
Method
postprocess_video
Applies post-processing to a video file using FFmpeg. This method allows you to apply various post-processing operations such as: - Codec conversion
src/client/pipeline.rs:230
↓ 2 callers
Function
preferred_tag_type
Determine the preferred tag type for a given file extension.
src/metadata/writers/lofty.rs:24
↓ 2 callers
Method
prepare_and_collect_metadata
Prepare and collect metadata for a video. This function collects all metadata from the video and formats it for FFmpeg. # Arguments `path` - Path t
src/metadata/writers/ffmpeg.rs:197
↓ 2 callers
Function
random_filename
Generates a random filename with the specified length. # Arguments `length` - The length of the random string to generate. # Returns A random stri
src/utils/fs.rs:452
↓ 2 callers
Function
read_page_granule
Reads the granule position and the byte offset past the page from an OGG page at `offset`. Returns `(granule_position, next_page_start_offset)`.
crates/media-seek/src/audio/ogg.rs:287
↓ 2 callers
Method
required_available_at
Returns the required `available_at` timestamp across the video and all downloadable formats. Following yt-dlp's extractor/downloader behavior, stream
src/model/video.rs:238
↓ 2 callers
Function
resolve_url
Resolves a possibly relative URI against a base URL.
src/live/hls.rs:78
↓ 2 callers
Method
run_ffmpeg_task
Internal helper to run FFmpeg for metadata or thumbnails.
src/metadata/writers/ffmpeg.rs:273
↓ 2 callers
Method
run_metadata_task
Helper to run FFmpeg for metadata tasks with unified command structure.
src/metadata/writers/ffmpeg.rs:243
↓ 2 callers
Method
run_parallel_segments
Runs the shared parallel segment download pipeline. Handles `.parts` progress tracking, resume detection, segment filtering, concurrent downloading,
src/download/engine/parallel.rs:150
↓ 2 callers
Function
samples_per_chunk_for
Returns the number of samples per chunk for `chunk_idx` (1-based) via the `stsc` table.
crates/media-seek/src/video/mp4.rs:781
↓ 2 callers
Method
search_by_title
Finds all chapters with titles containing the given query string. # Arguments `query` - The string to search for # Returns Returns a vector of ref
src/model/types/chapter.rs:154
↓ 2 callers
Function
serialize_json_opt
Serializes an optional value to an optional JSON string, returning `None` if the input is `None`. # Arguments `value` - The optional value to serial
src/model/utils/serde.rs:41
↓ 2 callers
Function
set_executable
(executable: impl Into<PathBuf>)
src/utils/fs.rs:419
↓ 2 callers
Function
setup_downloader
(libs: &Path, output: &Path, args: &Args)
examples/profiling.rs:131
↓ 2 callers
Method
speedup_pct
(&self)
examples/compare.rs:299
↓ 2 callers
Method
statistics
Returns a reference to the statistics tracker. Call [`stats::StatisticsTracker::snapshot`] to obtain aggregate metrics for all downloads and metadata
src/client/pipeline.rs:462
↓ 2 callers
Function
validate_generic_subtitle
Helper to validate generic subtitle content with a timestamp regex.
src/utils/subtitle/subtitle_validator.rs:243
↓ 2 callers
Method
wait
Waits for the process to exit and collects output. # Errors Returns an error if waiting for the process fails.
src/executor/mod.rs:298
↓ 2 callers
Method
with_audio_bitrate
Sets the audio bitrate
src/download/config/postprocess.rs:423
↓ 2 callers
Method
with_audio_codec
Sets the audio codec # Arguments `codec` - Audio codec to use # Returns Self for method chaining
src/download/config/postprocess.rs:411
↓ 2 callers
Method
with_method
Sets the recording method. # Arguments `method` - [`RecordingMethod::Native`] (default) or [`RecordingMethod::Fallback`].
src/live/mod.rs:173
↓ 2 callers
Method
with_no_proxy
Sets the list of domains that should bypass the proxy. # Arguments `no_proxy` - List of domains to bypass (e.g., ["localhost", "127.0.0.1"]) # Retu
src/client/proxy.rs:107
↓ 2 callers
Method
with_range
Constrains the download to `[start, end]` bytes of the URL. When set, [`fetch_asset`] downloads only those bytes and writes them starting from offset
src/download/engine/fetcher.rs:273
↓ 2 callers
Method
with_retry_strategy
Sets the retry strategy. # Arguments `strategy` - The retry strategy to use for failed deliveries # Returns Self for method chaining.
src/events/delivery/webhooks.rs:185
↓ 2 callers
Method
with_user_agent
Set a custom User-Agent header for HTTP requests. # Arguments `user_agent` - The User-Agent string to use # Returns The builder with the user agen
src/client/builder.rs:295
↓ 2 callers
Method
with_warnings
Adds multiple warnings to the validation result. # Arguments `warnings` - The warning messages to add # Returns The modified `ValidationResult` wi
src/utils/subtitle/subtitle_validator.rs:100
↓ 2 callers
Method
with_warnings
Adds multiple warnings to the validation result.
src/model/types/chapter.rs:398
↓ 2 callers
Method
worst_storyboard_format
(&self)
src/client/streams/selection.rs:439
↓ 1 callers
Function
accumulate_variable_chunk_sizes
Accumulates variable-size `stsz` entries into a per-chunk byte total.
crates/media-seek/src/video/mp4.rs:725
↓ 1 callers
Method
add_chapters_metadata
Add chapters metadata to a video file using FFmpeg. This method embeds chapter markers into MP4/MKV/WebM files. Chapters allow media players to navig
src/metadata/chapters.rs:90
↓ 1 callers
Method
add_filter
Adds a filter to the processing pipeline # Arguments `filter` - FFmpeg filter to add # Returns Self for method chaining
src/download/config/postprocess.rs:455
↓ 1 callers
Method
add_metadata_if_needed
Adds format metadata based on the format type (audio-only, video-only, or both) This function is extracted to avoid code duplication # Arguments `pa
src/client/streams/processing.rs:165
↓ 1 callers
Method
add_metadata_to_combined_file
Adds metadata to the combined file by extracting the video ID and retrieving information from the original audio and video formats
src/client/streams/pipeline/combine.rs:550
↓ 1 callers
Method
add_thumbnail_to_webm
Add thumbnail to a WebM/MKV file using FFmpeg. # Arguments `file_path` - Path to the WebM/MKV file `thumbnail_path` - Path to the thumbnail image #
src/metadata/writers/ffmpeg.rs:140
↓ 1 callers
Function
align_to_sync
Returns `byte_pos` aligned to the first validated sync byte (0x47) in `window`. A candidate sync byte is validated by checking that the next packet b
crates/media-seek/src/video/ts.rs:367
↓ 1 callers
Function
analyze_dhat
Parse dhat-heap.json and print the top allocators by total bytes.
scripts/profiling-analyzer.py:56
↓ 1 callers
Function
analyze_samply
Parse profile.json.gz and print per-thread CPU profiles.
scripts/profiling-analyzer.py:177
↓ 1 callers
Function
analyze_thread
Analyze a single samply thread and print its CPU profile.
scripts/profiling-analyzer.py:155
↓ 1 callers
Function
apply_cue_point
Applies a decoded cue point to `segments`: fixes the previous entry's `byte_size` and `end_secs`, then pushes a new open entry.
crates/media-seek/src/video/webm.rs:375
↓ 1 callers
Function
apply_id3_metadata
( tag: &mut ID3Tag, metadata: &[(String, String)], playlist_info: &Option<(String, usize, Option<u
src/metadata/writers/mp3.rs:157
↓ 1 callers
Function
apply_id3_technical_metadata
( tag: &mut ID3Tag, audio_info: &Option<(Option<ordered_float::OrderedFloat<f64>>, Option<String>)>, )
src/metadata/writers/mp3.rs:201
↓ 1 callers
Function
apply_tag_field
Apply a single metadata key-value pair to a tag using known ItemKeys.
src/metadata/writers/lofty.rs:294
↓ 1 callers
Method
are_format_urls_fresh
Returns true if the format stream URLs are still within their CDN lifetime. YouTube CDN URLs expire approximately [`FORMAT_URL_LIFETIME`] seconds aft
src/model/video.rs:260
↓ 1 callers
Function
assemble_entry_value
Assembles a big-endian multi-byte integer value from `entry_bytes` bytes at `data[off..]`.
crates/media-seek/src/audio/mp3.rs:652
↓ 1 callers
Function
audio_codec_for_mux
Returns the appropriate FFmpeg audio codec argument for muxing based on container compatibility. Uses stream copy (`"copy"`) when the audio format is
src/client/streams/pipeline/combine.rs:20
↓ 1 callers
Function
audio_keyframes_to_segments
Converts audio-only `(block_index, byte_offset)` pairs to `SegmentEntry` using byte-rate timing. When no FPS is available, timestamps are estimated f
crates/media-seek/src/video/avi.rs:382
↓ 1 callers
Method
available_entries
Filters entries by their availability. # Returns A vector of references to available entries
src/model/types/playlist.rs:100
↓ 1 callers
Method
avg_download_duration
Average duration across all completed downloads, or `None` if no downloads finished.
src/stats/inner.rs:117
↓ 1 callers
Function
avg_duration
(samples: &[Duration])
examples/compare.rs:98
↓ 1 callers
Method
avg_fetch_duration
Average duration across all successful fetches, or `None` if none succeeded.
src/stats/inner.rs:128
↓ 1 callers
Method
avg_speed_bytes_per_sec
Average download speed in bytes per second across all completed downloads.
src/stats/inner.rs:139
↓ 1 callers
Method
best_library_avg
(&self)
examples/compare.rs:295
↓ 1 callers
Method
best_thumbnail
Returns the best thumbnail by resolution (width × height), breaking ties by preference. Falls back to the highest-preference thumbnail if none have r
src/model/video.rs:278
↓ 1 callers
Function
build_chunk_segments
Mode 2: one segment per chunk (audio-only or video without stss).
crates/media-seek/src/video/mp4.rs:987
↓ 1 callers
Function
build_downloader_with_profile
( libs_dir: &Path, output_dir: &Path, profile: SpeedProfile, cookies: Option<&str>, cookie
examples/compare.rs:477
↓ 1 callers
Function
build_fallback_segments
Builds a coarse segment list from raw video keyframe `(timestamp_ms, byte_offset)` pairs. `file_end` is the best-known upper bound for the last segme
crates/media-seek/src/video/flv.rs:140
↓ 1 callers
Function
build_ffmpeg_command
Builds the FFmpeg command arguments from post-processing configuration. # Arguments `input` - Input file path `output` - Output file path `config` -
src/metadata/postprocess.rs:113
↓ 1 callers
Function
build_keyframe_segments
Mode 1: keyframe-based segments using the `stss` sync-sample table.
crates/media-seek/src/video/mp4.rs:949
↓ 1 callers
Function
build_ogg_segments
Builds a list of `SegmentEntry` values from sorted, deduplicated `(granule, byte_offset)` pairs. The last segment's end granule is estimated from the
crates/media-seek/src/audio/ogg.rs:170
↓ 1 callers
Function
build_progress_callback
( task_id: u64, progress_counters: &ProgressCounters, progress_tx: broadcast::Sender<ProgressUpdat
src/download/worker.rs:69
↓ 1 callers
Function
build_sections
()
examples/compare.rs:159
↓ 1 callers
Function
build_seektable_segments
Builds a segmented `ContainerIndex` from SEEKTABLE seek points. Falls back to a linear index when only a single seek point exists and `total_samples`
crates/media-seek/src/audio/flac.rs:230
↓ 1 callers
Function
build_segments
Builds a `Vec<SegmentEntry>` from the collected `MoovTables`. Uses keyframe-based segmentation (Mode 1) when the `stss` table is non-empty, otherwise
crates/media-seek/src/video/mp4.rs:892
↓ 1 callers
Function
build_snapshot
Constructs a [`GlobalSnapshot`] from the current state. Called under a read lock.
src/stats/tracker.rs:489
↓ 1 callers
Function
build_test_downloader
Builds a test `Downloader` with fake binary paths and output directed to a temporary directory. The binary paths are non-existent placeholders — this
tests/common/downloader.rs:11
↓ 1 callers
Function
build_thread_tables
Extract the lookup tables needed for stack resolution from a thread.
scripts/profiling-analyzer.py:86
↓ 1 callers
Function
build_toc_segments
Builds a segmented `ContainerIndex` from a Xing TOC.
crates/media-seek/src/audio/mp3.rs:527
↓ 1 callers
Method
cache_format_output
( &self, format: &Format, path: &Path, has_preferences: bool, preferen
src/client/streams/pipeline/download.rs:542
↓ 1 callers
Method
calculate_delay
Calculate the delay for a specific retry attempt. # Arguments `attempt` - The retry attempt number (0-based)
src/utils/network/retry.rs:196
↓ 1 callers
Method
calculate_optimal_segments
Calculate the optimal number of parallel segments based on file size and speed profile
src/download/engine/parallel.rs:400
↓ 1 callers
Method
chapter
Helper method to download a single chapter. # Arguments `index` - Chapter index (0-based) # Returns The modified `DownloadBuilder` instance.
src/client/download_builder.rs:353
↓ 1 callers
Function
check_download_error
Check if a crate Error indicates an expired URL. # Arguments `error` - The Error to analyze # Returns Returns `UrlStatus::Expired` if the error in
src/utils/network/url_expiry.rs:123
↓ 1 callers
Method
check_video_cache
Helper to check if a video is in the cache by URL. # Arguments `url` - The video URL to check # Returns `Some(Video)` if found in cache and not ex
src/client/streams/pipeline/fetch.rs:17
↓ 1 callers
Function
classify_idx1_entry
Classifies an `idx1` chunk ID into video, audio, or other. # Arguments `chunk_id` - The 4-byte chunk ID field from an `idx1` entry.
crates/media-seek/src/video/avi.rs:336
↓ 1 callers
Function
classify_trak
Returns the 4-byte handler type from the `hdlr` box inside `trak_payload`. Traverses `trak → mdia → hdlr` and reads the handler type at `HDLR_HANDLER
crates/media-seek/src/video/mp4.rs:470
← previous
next →
301–400 of 2,260, ranked by callers