MCPcopy Create free account

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

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

↓ 1 callersFunctionfind_any_pcr_pid
Brute-force scan: returns the PID of the first TS packet that carries a PCR. Used as a fallback when PAT/PMT are absent or the stream is audio-only.
crates/media-seek/src/video/ts.rs:176
↓ 1 callersFunctionfind_avih_us_per_frame
Walks the top-level RIFF chunks to find the `hdrl` list and returns `dwMicroSecPerFrame`.
crates/media-seek/src/video/avi.rs:173
↓ 1 callersMethodfind_by_timestamp
Finds the chapter containing the given timestamp. # Arguments `timestamp` - The timestamp in seconds # Returns Returns an Option containing a refe
src/model/types/chapter.rs:199
↓ 1 callersMethodfind_by_title_prefix
Finds all chapters with titles starting with the given prefix. # Arguments `prefix` - The prefix to search for # Returns Returns a vector of refer
src/model/types/chapter.rs:183
↓ 1 callersFunctionfind_duplicate_pairs
Extract unique pairs of genuine duplicates from the block map.
scripts/find-duplicates.py:57
↓ 1 callersFunctionfind_idx1
Locates the `idx1` chunk within `data` and returns its payload slice.
crates/media-seek/src/video/avi.rs:201
↓ 1 callersFunctionfind_movi_start
Finds the absolute byte offset of the `movi` list data start in the file.
crates/media-seek/src/video/avi.rs:412
↓ 1 callersFunctionfind_pcr_in_window
Scans `window` for a TS packet carrying a PCR for `pcr_pid` and returns the PCR in seconds.
crates/media-seek/src/video/ts.rs:352
↓ 1 callersFunctionfind_pcr_pid
Reads the PAT from `data` to find the PMT PID, then reads the PMT to find the PCR PID.
crates/media-seek/src/video/ts.rs:168
↓ 1 callersFunctionfind_sync_frame
Finds the byte position of the first valid MPEG audio sync frame in `data[start..]`. Accepts Layer I, II, and III. Excludes free-bitrate (bi == 0) an
crates/media-seek/src/audio/mp3.rs:280
↓ 1 callersFunctionfind_sync_frame_any
Finds the first MPEG audio sync frame including free-bitrate (bi == 0). Excludes only the strictly reserved bitrate index (bi == 15).
crates/media-seek/src/audio/mp3.rs:301
↓ 1 callersFunctionfirst_sample_of_chunk
Returns the 1-based sample number of the first sample in chunk `chunk_idx` (0-based).
crates/media-seek/src/video/mp4.rs:866
↓ 1 callersFunctionfixup_last_cue_segment
Fixes the final `SegmentEntry` once all cue points have been processed. Uses average cluster duration to estimate the last segment's end time.
crates/media-seek/src/video/webm.rs:391
↓ 1 callersFunctionfmt_secs
(d: Duration)
examples/compare.rs:105
↓ 1 callersMethodget
(&self, url: &str)
src/cache/backend/memory.rs:46
↓ 1 callersMethodget
(&self, url: &str)
src/cache/backend/json.rs:177
↓ 1 callersFunctionget_blocks
Yield (block, location) tuples for all sliding windows in the file.
scripts/find-duplicates.py:38
↓ 1 callersMethodget_by_video_and_preferences
Retrieve a file by video ID and quality/codec preferences. # Arguments `video_id` - The video identifier. `preferences` - The format preferences to
src/cache/stores/files.rs:198
↓ 1 callersMethodget_chapter_at_time
Finds the chapter at a specific timestamp. # Arguments `timestamp` - The timestamp in seconds # Returns The chapter containing the timestamp, or N
src/model/video.rs:181
↓ 1 callersMethodget_extraction_info
Get extraction information for the given platform and architecture # Arguments `platform` - The target platform `architecture` - The target architec
src/client/deps/ffmpeg.rs:196
↓ 1 callersFunctionget_files
Recursively yield paths to all .rs files under root_dir.
scripts/find-duplicates.py:17
↓ 1 callersMethodget_highly_engaged_segments
Returns all heatmap points with an engagement value above the threshold. # Arguments `threshold` - The minimum engagement value (0.0 to 1.0) # Retu
src/model/types/heatmap.rs:66
↓ 1 callersMethodget_point_at_time
Returns the heatmap point at a specific timestamp. # Arguments `timestamp` - The timestamp in seconds # Returns The heatmap point containing the t
src/model/types/heatmap.rs:79
↓ 1 callersFunctionget_redis_connection
(client: &redis::Client)
src/cache/backend/redis.rs:29
↓ 1 callersMethodget_video_by_id
Helper to get video by ID from cache (if available) # Arguments `id` - The video ID. # Returns `Some(Video)` if found in cache, `None` otherwise.
src/client/streams/pipeline/fetch.rs:228
↓ 1 callersFunctionhandle_event
Applies a single event to the mutable state. No I/O or `.await` inside.
src/stats/tracker.rs:221
↓ 1 callersMethodhandle_playlist_task_result
( &self, result: std::result::Result< (crate::model::playlist::PlaylistEntry, crat
src/client/streams/pipeline/playlist.rs:433
↓ 1 callersMethodhandle_unavailable_playlist_entry
( &self, entry: &crate::model::playlist::PlaylistEntry, playlist: &Playlist, t
src/client/streams/pipeline/playlist.rs:345
↓ 1 callersMethodhas_any
Returns `true` if at least one preference is set.
src/model/selector.rs:259
↓ 1 callersFunctionhls_fixture
Returns the path to an HLS fixture file.
tests/common/fixtures.rs:23
↓ 1 callersFunctionidentify_codec_error
Returns a descriptive error message for an unrecognised OGG codec. Inspects the identification packet magic to name the codec where possible.
crates/media-seek/src/audio/ogg.rs:241
↓ 1 callersMethodinstall_ffmpeg_from_repo
Install ffmpeg from static builds. # Arguments `owner` - The owner of the repository. `repo` - The name of the repository. `custom_name` - Optional
src/client/deps/mod.rs:159
↓ 1 callersMethodinstall_ffmpeg_with_token
Install ffmpeg with an authentication token.
src/client/deps/mod.rs:264
↓ 1 callersMethodinstall_youtube
Install yt-dlp from the main repository. # Arguments `custom_name` - Optional custom name for the executable.
src/client/deps/mod.rs:97
↓ 1 callersMethodinstall_youtube_with_token
Install yt-dlp with an authentication token.
src/client/deps/mod.rs:231
↓ 1 callersFunctionis_audio_extension
Tests whether a file extension corresponds to an audio-only format.
src/client/download_builder.rs:61
↓ 1 callersMethodis_currently_live
(&self)
src/model/video.rs:388
↓ 1 callersFunctionis_genuine_duplicate
Check if two locations represent a genuine duplicate (different files or far apart).
scripts/find-duplicates.py:50
↓ 1 callersFunctionis_http_error_retryable
Check if an HTTP error is retryable (transient network error or server error). # Arguments `error` - The reqwest error to check # Returns True if
src/utils/network/retry.rs:247
↓ 1 callersFunctionis_terminal_status
Returns `true` when `status` is a terminal state (no further transitions possible).
src/download/manager.rs:787
↓ 1 callersFunctionis_youtube_url
Fast check if URL matches YouTube patterns. # Arguments `url` - The URL to check # Returns true if the URL matches YouTube patterns, false otherwi
src/extractor/detector.rs:67
↓ 1 callersFunctionjson_fixture
Returns the path to a JSON fixture file.
tests/common/fixtures.rs:13
↓ 1 callersMethodkill
Forcefully kills the process. # Errors Returns an error if the kill signal cannot be sent.
src/executor/mod.rs:287
↓ 1 callersFunctionlib_download
(args: LibDownloadArgs<'_>)
examples/compare.rs:380
↓ 1 callersFunctionlist_expired_json_entries
Scans `dir` for `.json` files whose `cached_at` field indicates expiry under `ttl`. Reads each file as a `serde_json::Value` to avoid a generic bound
src/cache/backend/json.rs:24
↓ 1 callersFunctionlive_format_error
(video: &Video, mode: LiveMode, reason: &str)
src/live/mod.rs:446
↓ 1 callersMethodlive_formats
(&self)
src/model/video.rs:415
↓ 1 callersFunctionload_e2e_reel
Loads the reel fixture with `{{MOCK_SERVER}}` replaced.
tests/e2e/helpers.rs:43
↓ 1 callersFunctionload_reel_fixture
Loads a Video from the reel.json fixture.
tests/common/fixtures.rs:93
↓ 1 callersFunctionload_short_video_fixture
Loads a Video from the short_video.json fixture.
tests/common/fixtures.rs:63
↓ 1 callersFunctionload_twitch_live_fixture
Loads a Video from the twitch_live.json fixture.
tests/common/fixtures.rs:69
↓ 1 callersFunctionlocate_segment
Locates the Segment element and parses its SeekHead and Info. Handles the EBML "unknown size" sentinel for the Segment element (common in streaming W
crates/media-seek/src/video/webm.rs:208
↓ 1 callersMethodlookup_cached_format
( &self, format: &Format, path: &Path, preferences: &FormatPreferences,
src/client/streams/pipeline/download.rs:490
↓ 1 callersFunctionmain
()
scripts/find-duplicates.py:83
↓ 1 callersFunctionmain
()
scripts/profiling-analyzer.py:200
↓ 1 callersFunctionmake_cached_thumbnail
(id: &str, video_id: &str)
tests/integration/cache/json.rs:362
↓ 1 callersFunctionmap_item_key
Map a metadata key to the corresponding lofty `ItemKey`.
src/metadata/writers/lofty.rs:36
↓ 1 callersMethodmark_cancelled_and_emit
(&self, id: u64, reason: &str)
src/download/manager.rs:624
↓ 1 callersFunctionmatches_audio_codec
Checks whether an audio codec string matches the given codec preference. The comparison is case-insensitive and checks for substring containment, so
src/model/selector.rs:229
↓ 1 callersFunctionmatches_video_codec
Checks whether a video codec string matches the given codec preference. The comparison is case-insensitive and checks for substring containment, so `
src/model/selector.rs:199
↓ 1 callersFunctionminimal_video_json
()
tests/unit/selection.rs:139
↓ 1 callersMethodmost_engaged_segment
Returns the heatmap point with the highest engagement value. This represents the most replayed segment of the video. # Returns The most engaged `Hea
src/model/types/heatmap.rs:51
↓ 1 callersFunctionmount_delayed_route
Mounts a route that returns after a `delay`.
tests/e2e/helpers.rs:58
↓ 1 callersMethodname
Returns the name of this hook (for debugging/logging)
src/events/delivery/hooks.rs:53
↓ 1 callersFunctionnext_point_bounds
Determines the next seek-point boundary for entry `i` in `points`. Returns `None` when there is exactly one seek point and `total_samples` is unknown
crates/media-seek/src/audio/flac.rs:197
↓ 1 callersMethodno_proxy
Returns the no-proxy list. # Returns A slice of domain strings that should bypass the proxy.
src/client/proxy.rs:159
↓ 1 callersFunctionnormalize_lines
Read a file and return significant (non-empty, non-comment, non-attribute) lines.
scripts/find-duplicates.py:25
↓ 1 callersMethodon_event
(&self, _event: &yt_dlp::events::DownloadEvent)
tests/e2e/events/pipeline.rs:179
↓ 1 callersMethodonly_downloads
Only includes events for downloads (excludes metadata, playlists, etc.)
src/events/filters.rs:163
↓ 1 callersMethodopen_simple_destination
Opens the destination file in append or create mode.
src/download/engine/parallel.rs:618
↓ 1 callersMethodparallel_execution
Whether this hook should be executed in parallel with other hooks If false, hooks will execute sequentially
src/events/delivery/hooks.rs:60
↓ 1 callersFunctionparse
Parses a WebM/Matroska stream and returns a `ContainerIndex`. # Arguments `probe` - Leading bytes of the WebM stream. `total_size` - Total stream si
crates/media-seek/src/video/webm.rs:532
↓ 1 callersFunctionparse_adts_frame_header
Parses one ADTS frame header starting at `data[pos]`. Returns `None` if the sync word is missing, the data is too short, or the computed `frame_lengt
crates/media-seek/src/audio/adts.rs:111
↓ 1 callersFunctionparse_aiff
Parses an IFF FORM/AIFF or FORM/AIFC stream and returns a `ContainerIndex`. For AIFC files, only uncompressed compression types (`NONE`, `twos`, `sow
crates/media-seek/src/audio/pcm.rs:271
↓ 1 callersFunctionparse_args
()
examples/compare.rs:52
↓ 1 callersFunctionparse_args
()
examples/profiling.rs:95
↓ 1 callersFunctionparse_comm_chunk
Parses the `COMM` chunk payload and returns `(channels, sample_rate, bits_per_sample)`. # Errors Returns `Error::ParseFailed` when the chunk is smal
crates/media-seek/src/audio/pcm.rs:320
↓ 1 callersFunctionparse_cue_point
Parses one CuePoint element body `data[pos..end]` into a `CuePoint`. Handles nested `ID_CUE_TRACK_POSITIONS` to extract `ID_CUE_CLUSTER_POSITION`. Re
crates/media-seek/src/video/webm.rs:335
↓ 1 callersFunctionparse_cues
Parses the Cues element and returns `Vec<SegmentEntry>`. Builds the segment list in a single pass: each new CuePoint fixes the previous entry's `byte
crates/media-seek/src/video/webm.rs:418
↓ 1 callersFunctionparse_fmt_chunk
Reads the five key fields from a `fmt ` chunk payload starting at `offset` in `probe`. Assumes `probe[offset..]` is at least `WAV_FMT_MIN_SIZE` bytes
crates/media-seek/src/audio/pcm.rs:161
↓ 1 callersFunctionparse_frame_header
Parses an MPEG audio frame header and returns a [`FrameHeader`]. Accepts Layer I, II, and III. Returns `None` for reserved layer (0) or reserved MPEG
crates/media-seek/src/audio/mp3.rs:411
↓ 1 callersFunctionparse_free_format
Handles free-format (bi==0) Layer III streams via consecutive sync word scanning.
crates/media-seek/src/audio/mp3.rs:359
↓ 1 callersFunctionparse_idx1
Parses the `idx1` payload and returns a `ContainerIndex` built from keyframe entries. `idx1` entries are 16 bytes each: - 4 bytes chunk_id (e.g. "00d
crates/media-seek/src/video/avi.rs:297
↓ 1 callersFunctionparse_info
Parses an Info element to extract TimestampScale and Duration.
crates/media-seek/src/video/webm.rs:297
↓ 1 callersFunctionparse_keyframes_object
Parses the `keyframes` nested AMF0 object and returns `(times, filepositions, bytes_consumed)`.
crates/media-seek/src/video/flv.rs:359
↓ 1 callersFunctionparse_mdhd
Extracts the media timescale from the `mdhd` box inside `mdia_payload`.
crates/media-seek/src/video/mp4.rs:597
↓ 1 callersFunctionparse_moov
Parses a `moov` box payload and returns a [`ContainerIndex`]. Iterates all `trak` boxes, preferring the first video (`vide`) track. Falls back to the
crates/media-seek/src/video/mp4.rs:416
↓ 1 callersFunctionparse_script_tag
Parses the AMF0 Script tag payload and returns the keyframes `ContainerIndex`.
crates/media-seek/src/video/flv.rs:177
↓ 1 callersFunctionparse_seek_head
Parses a SeekHead element and returns the segment-relative position of the Cues element.
crates/media-seek/src/video/webm.rs:253
↓ 1 callersFunctionparse_seektable_block
Parses a SEEKTABLE block body into a list of `(sample_number, stream_offset, frame_samples)`. Placeholder entries (`sample_number == u64::MAX`) are s
crates/media-seek/src/audio/flac.rs:168
↓ 1 callersFunctionparse_sidx
Parses a SIDX box payload and returns a `Vec<SegmentEntry>`. SIDX layout (ISO 14496-12 §8.16.3): - 1 byte version - 3 bytes flags - 4 bytes referenc
crates/media-seek/src/video/mp4.rs:342
↓ 1 callersFunctionparse_streaminfo_block
Extracts `(sample_rate, total_samples)` from a STREAMINFO block body.
crates/media-seek/src/audio/flac.rs:151
↓ 1 callersFunctionparse_stsz_chunk_sizes
Computes the total byte size for each chunk from the `stsz` box. Returns a `Vec<u64>` of length `chunk_count` where `[i]` is the byte total of chunk
crates/media-seek/src/video/mp4.rs:760
↓ 1 callersFunctionparse_timestamp
Helper to parse timestamp captures
src/utils/subtitle/subtitle_validator.rs:206
↓ 1 callersFunctionparse_timestamp
Parses a date string into a lofty `Timestamp`. Accepts formats: "YYYY", "YYYY-MM-DD", "YYYY-MM-DDTHH:MM:SS", "YYYYMMDD".
src/metadata/writers/lofty.rs:230
↓ 1 callersFunctionparse_vbri
Parses a VBRI VBR header and constructs a segmented [`ContainerIndex`]. `fallback_bps` is the CBR bitrate from the frame header, used when the VBRI t
crates/media-seek/src/audio/mp3.rs:664
↓ 1 callersFunctionparse_wav
Parses a RIFF WAVE (or RF64/BW64) stream and returns a `ContainerIndex`. Reads `byte_rate` and `block_align` directly from the `fmt ` chunk, which ar
crates/media-seek/src/audio/pcm.rs:112
↓ 1 callersFunctionparse_xing
Parses a Xing/Info VBR header and constructs a segmented [`ContainerIndex`]. `audio_size` is the usable audio byte count (actual file size minus ID3v
crates/media-seek/src/audio/mp3.rs:559
↓ 1 callersMethodpeak_speed_bytes_per_sec
Peak speed observed across all download history records.
src/stats/inner.rs:149
↓ 1 callersMethodpostprocess_audio_to_path
Applies post-processing to an audio file, saving to a specific path. Unlike [`postprocess_audio`](Self::postprocess_audio), this method writes the fi
src/client/pipeline.rs:337
← previousnext →501–600 of 2,260, ranked by callers