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
↓ 1 callers
Method
postprocess_video_to_path
Applies post-processing to a video file, saving to a specific path. Unlike [`postprocess_video`](Self::postprocess_video), this method writes the fil
src/client/pipeline.rs:260
↓ 1 callers
Function
prepare_task_fetcher
( task: &DownloadTask, config: &ManagerConfig, shared_client: &Arc<reqwest::Client>, )
src/download/worker.rs:41
↓ 1 callers
Function
print_header
(url: &str, runs: usize, video_title: &str)
examples/compare.rs:497
↓ 1 callers
Function
print_markdown_tables
(sections: &[(&Section, Vec<RowResult>)])
examples/compare.rs:595
↓ 1 callers
Function
print_results
(results: &[ScenarioResult])
examples/profiling.rs:393
↓ 1 callers
Function
print_scenario_result
(label: &str, raw_avg: Duration, cons: Duration, bal: Duration, agg: Duration)
examples/compare.rs:527
↓ 1 callers
Function
print_section_header
(emoji: &str, title: &str)
examples/compare.rs:521
↓ 1 callers
Function
print_styled_table
(section: &Section, rows: &[RowResult])
examples/compare.rs:554
↓ 1 callers
Function
print_summary
(all_rows: &[&RowResult], total_elapsed: Duration)
examples/compare.rs:625
↓ 1 callers
Function
print_top_allocators
Print the top N allocators sorted by total bytes.
scripts/profiling-analyzer.py:40
↓ 1 callers
Function
print_top_functions
Print the top N functions by sample count.
scripts/profiling-analyzer.py:147
↓ 1 callers
Method
priority
Sets the download priority. # Arguments `priority` - The download priority level # Returns The modified `DownloadBuilder` instance.
src/client/download_builder.rs:260
↓ 1 callers
Method
probe_range_support
Probes the server for range request support and content length. Uses `GET Range: bytes=0-0` instead of HEAD for better CDN compatibility. The Content
src/download/engine/parallel.rs:255
↓ 1 callers
Function
probe_scan_for_cues
Linearly scans the probe for the Cues element ID when no SeekHead was found.
crates/media-seek/src/video/webm.rs:184
↓ 1 callers
Function
process_new_fragments
Downloads and delivers a slice of HLS segments through `on_fragment`. Iterates over `segments` in order, fetching each one and invoking `on_fragment`
src/live/streaming.rs:249
↓ 1 callers
Function
process_queued_task
Processes a single task that has been popped from the download queue. Handles the full lifecycle of one queued download: cancelled-check, status upda
src/download/manager.rs:885
↓ 1 callers
Function
process_srt_timestamp_block
Processes an SRT timestamp line and the subtitle text lines that follow it. Converts the timestamp from SRT format (`HH:MM:SS,mmm`) to VTT format (`H
src/utils/subtitle/subtitle_converter.rs:194
↓ 1 callers
Function
process_vtt_line
Processes a single trimmed VTT line, updating all mutable state and output. # Arguments `trimmed` - The trimmed line content. `in_note_block` - Trac
src/utils/subtitle/subtitle_converter.rs:135
↓ 1 callers
Function
progress_style
()
examples/compare.rs:124
↓ 1 callers
Method
proxy
Returns the proxy configuration, if set. # Returns A reference to the optional [`ProxyConfig`](client::proxy::ProxyConfig).
src/lib.rs:554
↓ 1 callers
Method
push_history
Append a completed download to history, evicting the oldest entry if at capacity.
src/stats/inner.rs:109
↓ 1 callers
Method
put
Store a playlist in the cache (both layers). # Arguments `url` - The URL of the playlist. `playlist` - The playlist metadata to cache. # Errors Re
src/cache/stores/playlist.rs:186
↓ 1 callers
Method
put_cached_thumbnail
Internal helper: put a CachedThumbnail to both layers.
src/cache/stores/files.rs:597
↓ 1 callers
Method
put_file_with_preferences
Store a file in the cache with quality/codec preferences (both layers). # Arguments `source_path` - Path to the source file. `filename` - Display na
src/cache/stores/files.rs:366
↓ 1 callers
Function
raw_download
(args: RawDownloadArgs<'_>)
examples/compare.rs:321
↓ 1 callers
Function
read_bytes_at
Reads up to `len` bytes from `file` at `offset` and returns whether any non-zero bytes exist. Uses positional I/O (`read_at` / `seek_read`) inside `s
src/download/engine/parallel.rs:74
↓ 1 callers
Function
read_float
Reads a big-endian IEEE 754 float (`size` = 4 or 8) from `data[pos..]`.
crates/media-seek/src/video/webm.rs:110
↓ 1 callers
Function
read_fps_from_avih
Reads the frame rate from the `avih` (AVI main header) chunk in `probe`. Returns `None` if the header is not found or the microseconds-per-frame fiel
crates/media-seek/src/video/avi.rs:196
↓ 1 callers
Function
read_ieee754_extended
Converts an 80-bit IEEE 754 extended precision float to a `u32` sample rate. The 10-byte representation: 1-bit sign, 15-bit exponent, 64-bit mantissa
crates/media-seek/src/audio/pcm.rs:419
↓ 1 callers
Function
read_pat
Scans `data` for a PAT packet (PID 0) and returns the first program's PMT PID.
crates/media-seek/src/video/ts.rs:210
↓ 1 callers
Function
read_pmt_pcr_pid
Scans `data` for a PMT packet with the given PID and returns the PCR PID.
crates/media-seek/src/video/ts.rs:284
↓ 1 callers
Function
read_sample_rate
Reads the sample rate from the OGG identification page. Supported codecs: - Vorbis: magic `\x01vorbis`, sample_rate at bytes 12–15 (LE u32) - Opus: m
crates/media-seek/src/audio/ogg.rs:202
↓ 1 callers
Function
read_stream
Helper function to read a stream into a buffer # Arguments `stream` - An async readable stream (stdout or stderr) # Returns A vector of bytes cont
src/executor/process.rs:272
↓ 1 callers
Function
read_strict_array
Reads an AMF0 strict array of numbers and returns `(values, bytes_consumed)`.
crates/media-seek/src/video/flv.rs:383
↓ 1 callers
Function
read_xing_bytes
Reads the optional `total_bytes` field from a Xing header. Returns `(bytes, bytes_consumed)`. When the flag is absent, uses `fallback` and consumed i
crates/media-seek/src/audio/mp3.rs:500
↓ 1 callers
Function
read_xing_frames
Reads the optional `total_frames` field from a Xing header. Returns `(frames, bytes_consumed)`. When the flag is absent, frames is 0 and consumed is
crates/media-seek/src/audio/mp3.rs:486
↓ 1 callers
Function
read_xing_toc
Reads the optional 100-entry TOC from a Xing header. Returns `Ok(Some(toc))` when present, `Ok(None)` when flag is absent.
crates/media-seek/src/audio/mp3.rs:514
↓ 1 callers
Method
record_loop
(&self, writer: &mut BufWriter<fs::File>, output_path: &PathBuf)
src/live/recording/native.rs:119
↓ 1 callers
Method
record_to_writer
( &self, writer: &mut BufWriter<fs::File>, output_path: &PathBuf, )
src/live/recording/native.rs:111
↓ 1 callers
Method
register_hook
Registers a Rust hook for download events. Hooks are called asynchronously for each event and can be filtered to only receive specific event types.
src/client/pipeline.rs:510
↓ 1 callers
Method
remove
(&self, url: &str)
src/cache/backend/memory.rs:64
↓ 1 callers
Method
remove_from_queue
(&self, id: u64)
src/download/manager.rs:635
↓ 1 callers
Function
remove_temp_file
()
tests/integration/fs_io.rs:114
↓ 1 callers
Function
remove_vtt_tags
Remove VTT-specific tags from subtitle text. # Arguments `text` - The subtitle text potentially containing VTT tags
src/utils/subtitle/subtitle_converter.rs:249
↓ 1 callers
Method
reset
Resets all counters and history to their initial state, preserving the configuration. This is useful for implementing rolling windows or clearing sta
src/stats/tracker.rs:136
↓ 1 callers
Function
resolve_allocator_stack
Resolve the stack trace for a single allocation point, filtering noise.
scripts/profiling-analyzer.py:28
↓ 1 callers
Function
resolve_func_name
Resolve a frame index to a cleaned function name, or None.
scripts/profiling-analyzer.py:97
↓ 1 callers
Function
resolve_in_progress_record
Extracts timing and identity fields from an optional in-progress record. Returns a fully-populated [`ResolvedRecord`] with zero-valued defaults when
src/stats/tracker.rs:201
↓ 1 callers
Function
resolve_keyframes_and_fps
(kf: Idx1Keyframes, fps: Option<f64>)
crates/media-seek/src/video/avi.rs:267
↓ 1 callers
Function
resolve_live_format
(video: &Video, format: Option<&Format>, mode: LiveMode)
src/live/mod.rs:413
↓ 1 callers
Method
resolved_mode
Resolves the effective download mode. If set to [`DownloadMode::Auto`], checks the file extension of the output path: recognized audio extensions (.m
src/client/download_builder.rs:298
↓ 1 callers
Method
retry_attempts
Returns the number of retry attempts configured for downloads.
src/download/manager.rs:86
↓ 1 callers
Function
run_cache_ops
(real_video: &Video)
examples/profiling.rs:360
↓ 1 callers
Function
run_cache_scenarios
( run_scenario: impl Fn(&str) -> bool, real_video: &Video, results: &mut Vec<ScenarioResult>, )
examples/profiling.rs:513
↓ 1 callers
Function
run_cpu_scenarios
(run_scenario: impl Fn(&str) -> bool, real_video: &Video, results: &mut Vec<ScenarioResult>)
examples/profiling.rs:409
↓ 1 callers
Function
run_download_audio
(downloader: &Downloader, url: &str)
examples/profiling.rs:226
↓ 1 callers
Function
run_download_concurrent
(downloader: &Downloader, url: &str)
examples/profiling.rs:245
↓ 1 callers
Function
run_download_task
( task_id: u64, task_url: String, destination: PathBuf, fetcher: Fetcher, permit: tokio::s
src/download/worker.rs:138
↓ 1 callers
Function
run_download_video
(downloader: &Downloader, url: &str)
examples/profiling.rs:209
↓ 1 callers
Function
run_event_bus
()
examples/profiling.rs:306
↓ 1 callers
Function
run_event_loop
Background loop: receives events from the broadcast channel and updates `inner`.
src/stats/tracker.rs:158
↓ 1 callers
Function
run_ffmpeg_with_tempfile
Executes an FFmpeg command writing to a temporary file, then renames over the original. This is the common pattern used by metadata operations: write
src/executor/ffmpeg.rs:171
↓ 1 callers
Function
run_format_selection
(video: &Video)
examples/profiling.rs:192
↓ 1 callers
Function
run_loop
( core: LiveCore, initial: hls::HlsPlaylist, poll_interval: Duration, mut on_fragment: F,
src/live/streaming.rs:102
↓ 1 callers
Function
run_metadata_cold
(downloader: &Downloader, url: &str, n: usize)
examples/profiling.rs:159
↓ 1 callers
Function
run_metadata_warm
(downloader: &Downloader, url: &str, n: usize)
examples/profiling.rs:174
↓ 1 callers
Function
run_network_scenarios
( run_scenario: impl Fn(&str) -> bool, downloader: &Downloader, url: &str, results: &mut Vec<S
examples/profiling.rs:455
↓ 1 callers
Function
run_postprocess
(downloader: &Downloader, url: &str)
examples/profiling.rs:278
↓ 1 callers
Function
run_setup
(libs: &Path, output: &Path, args: &Args)
examples/profiling.rs:149
↓ 1 callers
Function
run_statistics
(downloader: &Downloader)
examples/profiling.rs:347
↓ 1 callers
Function
run_statistics_scenarios
( run_scenario: impl Fn(&str) -> bool, downloader: &Downloader, results: &mut Vec<ScenarioResult>,
examples/profiling.rs:531
↓ 1 callers
Function
run_worker_loop
Runs the worker drain loop: processes queued tasks until empty, then sleeps.
src/download/manager.rs:813
↓ 1 callers
Function
sample_to_chunk_idx
Maps a 1-based sample number to a 0-based chunk index using the `stsc` table. Returns `None` if `stsc` or `chunk_offsets` are empty.
crates/media-seek/src/video/mp4.rs:844
↓ 1 callers
Function
scan_aiff_chunks
Scans AIFF/AIFC chunks starting at byte 12 (after the FORM + type header). Returns the parsed fields from the `COMM` chunk and the absolute byte offs
crates/media-seek/src/audio/pcm.rs:370
↓ 1 callers
Function
scan_amf_object_for_keyframes
Scans AMF0 key-value pairs for the `keyframes` entry and returns the found data. Stops when the end marker is found, bounds are exceeded, or both arr
crates/media-seek/src/video/flv.rs:241
↓ 1 callers
Function
scan_flv_tags
Parses an FLV stream and returns a `ContainerIndex`. Locates the first Script tag, decodes its AMF0 `onMetaData` payload, and extracts the `keyframes
crates/media-seek/src/video/flv.rs:65
↓ 1 callers
Function
scan_frames
Scans up to [`SCAN_FRAMES`] ADTS frames and returns an [`AdtsScanResult`]. Returns `None` if no valid sync frame is found.
crates/media-seek/src/audio/adts.rs:149
↓ 1 callers
Function
scan_hdrl_for_avih_us_per_frame
Scans the `hdrl` list body for an `avih` chunk and returns `dwMicroSecPerFrame` if non-zero.
crates/media-seek/src/video/avi.rs:155
↓ 1 callers
Function
scan_keyframes_object_pairs
Scans the key-value pairs of a `keyframes` AMF0 object body.
crates/media-seek/src/video/flv.rs:312
↓ 1 callers
Function
scan_metadata_blocks
Scans the FLAC metadata block sequence starting at byte 4 (after the `fLaC` marker). Returns `None` when STREAMINFO is missing or reports a zero samp
crates/media-seek/src/audio/flac.rs:32
↓ 1 callers
Function
scan_wav_chunks
Scans WAV chunks starting at byte 12 (after the RIFF/RF64/BW64 + WAVE header). Returns the parsed fields from the `fmt ` chunk and the byte offset of
crates/media-seek/src/audio/pcm.rs:183
↓ 1 callers
Method
search_entries_by_title
Filters entries by title search (case-insensitive). # Arguments `query` - The search query # Returns Returns a vector of matching entries
src/model/types/playlist.rs:113
↓ 1 callers
Method
segment_fetch_failed
(&self, url: &str, status: reqwest::StatusCode, mode: SegmentErrorMode)
src/live/core.rs:173
↓ 1 callers
Function
select_closest_audio_bitrate
Selects the audio format with the closest bitrate to the target # Arguments `formats` - List of audio formats to choose from `target_bitrate` - Targ
src/client/streams/selection.rs:572
↓ 1 callers
Function
select_closest_video_height
Selects the video format with the closest height to the target # Arguments `formats` - List of video formats to choose from `target_height` - Target
src/client/streams/selection.rs:480
↓ 1 callers
Function
select_closest_video_width
Selects the video format with the closest width to the target # Arguments `formats` - List of video formats to choose from `target_width` - Target w
src/client/streams/selection.rs:526
↓ 1 callers
Method
set_args
Replaces all yt-dlp arguments with the provided ones. # Arguments `args` - The arguments to pass to yt-dlp.
src/lib.rs:638
↓ 1 callers
Method
set_timeout
Sets the timeout for command execution. # Arguments `timeout` - The timeout duration for command execution. # Examples ```rust,no_run # use yt_dlp
src/lib.rs:671
↓ 1 callers
Method
set_user_agent
Sets the user agent for HTTP requests. # Arguments `user_agent` - The user agent string to use for HTTP requests. # Returns A mutable reference to
src/lib.rs:595
↓ 1 callers
Function
setup_binary_server
()
tests/integration/download/fetcher.rs:27
↓ 1 callers
Function
setup_fast_endlist_server
Serves a single-segment ENDLIST playlist with target_duration=1 (poll_interval=500ms).
tests/integration/live/recording.rs:230
↓ 1 callers
Function
setup_json_server
()
tests/integration/download/fetcher.rs:11
↓ 1 callers
Function
setup_media_server
Sets up a mock HTTP server that serves media files, HLS playlists, and thumbnails.
tests/common/server.rs:52
↓ 1 callers
Function
setup_no_range_server
()
tests/integration/download/fetcher.rs:46
↓ 1 callers
Function
skip_amf_keyed_body
Skips an AMF0 keyed-value body (used by both `AMF_OBJECT` and `AMF_ECMA_ARRAY`). Consumes key–value pairs terminated by an empty key followed by `AMF
crates/media-seek/src/video/flv.rs:500
↓ 1 callers
Function
skip_amf_prefixed_string
Reads a length-prefixed AMF0 string and returns the total bytes consumed. `prefix_len` must be 2 (short string, u16 prefix) or 4 (long string, u32 pr
crates/media-seek/src/video/flv.rs:418
↓ 1 callers
Function
skip_amf_strict_array_body
Skips `count` AMF0 values from a strict array body. Returns the position immediately after the last consumed byte. # Arguments `data` - The full AM
crates/media-seek/src/video/flv.rs:528
↓ 1 callers
Function
skip_id3
Returns the byte offset of the first ID3v2-free audio data. Loops to handle stacked (chained) ID3v2 tags: some taggers write multiple consecutive ID3
crates/media-seek/src/audio/mp3.rs:219
↓ 1 callers
Method
spawn_playlist_download_task
( &self, entry: &crate::model::playlist::PlaylistEntry, output_pattern: &str,
src/client/streams/pipeline/playlist.rs:382
↓ 1 callers
Function
spinner_style
()
examples/compare.rs:118
← previous
next →
601–700 of 2,260, ranked by callers