百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
linksift

linksift

> 后端框架
免费

由 yt-dlp、Flask、Docker 和 ffmpeg 提供支持的本地优先、自主托管的媒体下载器。

152 stars0 点赞2 次浏览
GitHub

工具介绍

由 yt-dlp、Flask、Docker 和 ffmpeg 提供支持的本地优先、自主托管的媒体下载器。

LinkSift

Turn links into a tidy local queue.

Inspect, format, and save media from a focused self-hosted web workspace.

LinkSift is a local-first media downloader powered by yt-dlp and ffmpeg. Paste one or more supported URLs, inspect the available metadata, choose MP4 or MP3, and follow each download from the same queue.

Built for personal, authorized use. Respect copyright law, platform terms, and creators' rights. LinkSift does not support DRM circumvention or bypassing access controls.

At a glance

Deployment Versioned GHCR image for normal use; source build and local launcher for contributors
Interface Responsive browser UI with light, dark, and system themes
Formats MP4 video or MP3 audio
Queue Multiple URLs, quality selection, concurrency limit, live progress
Runtime Python + Flask, yt-dlp, ffmpeg, Gunicorn, non-root container
Privacy model Local by default; no built-in account, telemetry, or public service

Screenshots

Light theme - desktop workspace
Dark theme - desktop workspace










Light theme - mobile
Dark theme - mobile

The workflow

01 - Inspect

Paste a URL or a batch of URLs. LinkSift asks yt-dlp for metadata without downloading the media first. 02 - Choose

Pick MP4 or MP3, then select an available video quality when the source provides one. 03 - Collect

Watch progress, speed, and ETA. Save completed files through the browser or an optional folder picker.

What is included

  • Local-first by design - Compose binds to 127.0.0.1:8899 by default.
  • Batch-friendly queue - paste one or more supported URLs and process them in sequence.
  • Multi-output downloads - select multiple output formats for a single URL (e.g., MP4 + MP3). When you choose both video and audio, LinkSift automatically extracts audio from the downloaded video using ffmpeg, saving bandwidth and time. Each completed output gets its own Save button, so you can save one result while the rest are still downloading.
  • MP4 and MP3 output - choose a preferred format before inspection.
  • Quality selection - choose from the available video heights returned by yt-dlp.
  • Live progress - phase, percentage, downloaded bytes, speed, ETA, and final status. Audio packaging reports real ffmpeg progress (media time processed, percent, ETA, and encoding speed) instead of sitting at a fixed percentage, so a multi-output job keeps advancing while ffmpeg extracts the MP3.
  • Reload-safe queue - reloading or reopening the tab restores the queue by polling the existing job; it never re-submits a download, and closing the tab does not cancel a running server job. Only the Cancel button asks the server to stop. Each intentional download carries a client_request_id, so a retried or duplicated request resolves to the one job it already created.
  • Browser save controls - use the default browser download flow or choose a folder in Chromium-based browsers.
  • Predictable runtime - Docker includes Python, yt-dlp, ffmpeg, Gunicorn, and a non-root linksift user.
  • Verifiable releases - version tags publish amd64/arm64 images with OCI metadata, an SBOM, and GitHub build-provenance attestations.
  • Offline CI - regression tests mock external tools and never call media platforms.

Quick start

Docker is the supported end-user path. Install Docker Desktop, then start the published image:

bash
docker run -d --name linksift --restart unless-stopped -p 127.0.0.1:8899:8899 -v linksift-downloads:/app/downloads ghcr.io/loveisbl1nd/linksift:latest

Open . You do not need Python, yt-dlp, ffmpeg, or a virtual environment on the host.

Downloads persist in the named linksift-downloads Docker volume. Pin a numbered image such as 0.1.0 instead of latest when reproducibility matters. Stop and remove the container with docker stop linksift followed by docker rm linksift; the volume remains intact.

To use Compose with the published image after cloning the repository:

bash
docker compose -f compose.ghcr.yml up -d

To build the current source locally instead, run docker compose up --build -d.

Development

The local launcher is for contributors and requires Python 3.12, yt-dlp, and ffmpeg:

bash
./linksift.sh

Before opening a pull request, run:

bash
python -m unittest discover -s tests -v
python -m py_compile app.py
docker compose config
docker compose -f compose.ghcr.yml config
docker build -t linksift:local .

See CONTRIBUTING.md for the contributor workflow and pull request checklist.

Releases and image verification

Pushing a tag in the form vMAJOR.MINOR.PATCH runs the release pipeline. It repeats the offline validation suite, builds linux/amd64 and linux/arm64 images, publishes SemVer and latest tags to GHCR, attaches supply-chain metadata, and creates the matching GitHub Release.

After installing the GitHub CLI, verify that a published image was built by this repository's release workflow:

bash
gh attestation verify oci://ghcr.io/loveisbl1nd/linksift:0.2.0 -R loveisbl1nd/linksift

Maintainers should follow RELEASING.md, including the one-time GHCR visibility check. An attestation establishes build origin; it does not replace source or dependency review.

Configuration

Variable Default Purpose
PORT 8899 HTTP port used by the development server.
HOST 127.0.0.1 Bind address. Keep it local unless a protected reverse proxy is in front.
LINKSIFT_DOWNLOAD_TIMEOUT 3600 Maximum seconds allowed for one yt-dlp process.
LINKSIFT_MAX_CONCURRENT_DOWNLOADS 3 Number of download worker slots — jobs actually running at the same time, clamped to 1–16. Jobs beyond this limit wait in a FIFO queue instead of being rejected. Invalid, zero, or negative values fall back to the default.
LINKSIFT_MAX_QUEUED_DOWNLOADS 200 Maximum jobs allowed to wait in the queue, not counting running jobs. When the queue is full, POST /api/download returns 429. Invalid, zero, or negative values fall back to the default.
LINKSIFT_CONCURRENT_FRAGMENTS 4 Fragment parallelism inside a single DASH/HLS download (yt-dlp --concurrent-fragments), clamped to 1–16. Invalid, zero, or negative values fall back to the default.
LINKSIFT_JOB_TTL 86400 Seconds a terminal job (done, error, timed_out, or cancelled) and its files are kept before automatic cleanup. Invalid, zero, or negative values fall back to the default.
LINKSIFT_MAX_PLAYLIST_ITEMS 200 Maximum playlist entries expanded per inspection. Longer playlists are truncated to the first N items. Invalid values fall back to the default.
LINKSIFT_JOB_RETRIES 2 Extra fresh-extraction attempts after a failed download attempt (0–5). Only transient failures (HTTP 403/429/5xx, network resets, timeouts) are retried. Invalid values fall back to the default.
LINKSIFT_RETRY_BASE_DELAY 2 Seconds before the first retry; doubles per retry and is capped at 15 s. Backoff time counts against LINKSIFT_DOWNLOAD_TIMEOUT. Invalid or negative values fall back to the default.
LINKSIFT_PO_TOKEN_PROVIDER_URL unset Base URL of a bgutil PO token provider (robust mode). Must be an http/https URL with a hostname; invalid values are ignored with a warning.
LINKSIFT_NO_UPDATE unset Set to 1 to skip the startup update of yt-dlp and yt-dlp-ejs.

LINKSIFT_MAX_CONCURRENT_DOWNLOADS controls how many downloads run at once; LINKSIFT_MAX_QUEUED_DOWNLOADS controls how many may wait behind them. Queued jobs report status: "queued" and a 1-based queue_position from GET /api/status/, and can be cancelled before they start. LINKSIFT_CONCURRENT_FRAGMENTS only parallelizes fragmented (DASH/HLS) downloads — it does not speed up every URL, and higher concurrency values increase CPU and network load without guaranteeing faster downloads. Total resource use scales with both settings combined: up to LINKSIFT_MAX_CONCURRENT_DOWNLOADS × LINKSIFT_CONCURRENT_FRAGMENTS fragment connections plus one ffmpeg process per running job can be active at the same time.

Job state is held in memory. The Docker command therefore uses one Gunicorn worker; restarting the service or container clears queued and active job state, and partially downloaded .part files are not resumed automatically after a restart (the TTL cleanup removes them instead). This is accepted behavior for the local-first design. Do not add workers until job state moves to shared storage.

Downloaded files and job status are a temporary cache, not an archive: LinkSift removes finished jobs and their files after LINKSIFT_JOB_TTL seconds and sweeps stale leftover files it created at startup and periodically while running. Active downloads are never touched by TTL cleanup. Save completed files through the browser before the TTL expires. Playlists larger than LINKSIFT_MAX_PLAYLIST_ITEMS only queue the first configured number of items; truncation is detected from the playlist size reported by yt-dlp, and unavailable or malformed playlist entries are skipped without failing the request.

Multi-output downloads (v0.3)

Multi-output is available in LinkSift v0.3.0. One inspected URL can produce multiple explicit outputs (for example MP4 at a chosen height plus an MP3). The request becomes a single parent job with one artifact per output (a000, a001, …). Artifacts run sequentially under one shared deadline; each completed output is individually saveable while the others continue.

Overview

  • One request → one parent job → N artifacts.
  • Artifacts run sequentially, never in parallel. Videos run before audio so the pipeline can reuse a downloaded MP4 as the source for an MP3 instead of re-downloading.
  • The parent holds one queue entry, one worker slot, and one subprocess registry slot at a time. There is no per-artifact concurrency.
  • Each artifact has its own status, phase, progress, and Save button. A completed artifact can be saved before the parent finishes.
  • A partial parent status means some artifacts succeeded and others failed; the completed ones remain saveable.

Using the UI

  1. Paste a URL and let LinkSift inspect it (metadata is fetched without downloading media first).
  2. Choose the outputs you want: MP4 at one or more heights, MP3 audio, or any combination. When you select both video and audio, LinkSift extracts audio from the downloaded video with ffmpeg, saving bandwidth and time.
  3. Follow progress per artifact. Each card shows phase, speed, ETA, and percent. Save individual completed outputs through the browser or an optional folder picker while the rest are still running.

API: legacy single-output request

The original format / format_id fields still work and produce a single-artifact parent for backward compatibility:

json
POST /api/download
{
  "url": "https://example.com/watch?v=...",
  "format": "audio"
}

API: multi-output request

Send an outputs array. Each entry is an object with type (video or audio). A video entry also requires a format_id (the yt-dlp format id, e.g. 137 for 1080p MP4). Audio entries omit format_id.

json
POST /api/download
{
  "url": "https://example.com/watch?v=...",
  "outputs": [
    {"type": "video", "format_id": "137"},
    {"type": "audio"}
  ]
}

outputs and the legacy fields are mutually exclusive; mixing them returns a 400 error. Duplicate (type, format_id) pairs are rejected.

Status response

GET /api/status/ returns the parent plus an artifacts array with per-output progres

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

dockerffmpegflask

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年9月9日
最后更新2026年9月18日
分类后端框架
定价免费

> 相关工具

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架