{"id":44569755,"url":"https://github.com/skanderjeddi/unbundle","last_synced_at":"2026-02-18T06:00:54.608Z","repository":{"id":337952845,"uuid":"1155610316","full_name":"skanderjeddi/unbundle","owner":"skanderjeddi","description":"unbundle — Fast, ergonomic Rust media extraction with a beautiful CLI. Frames, audio, subtitles, thumbnails, remux, analysis — all with zero boilerplate.","archived":false,"fork":false,"pushed_at":"2026-02-14T04:28:51.000Z","size":971,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-15T08:28:18.371Z","etag":null,"topics":["audio","ffmpeg","media-processing","rust","subtitles","video"],"latest_commit_sha":null,"homepage":"https://docs.rs/unbundle","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/skanderjeddi.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-11T17:48:17.000Z","updated_at":"2026-02-15T01:24:51.000Z","dependencies_parsed_at":"2026-02-15T03:01:16.328Z","dependency_job_id":null,"html_url":"https://github.com/skanderjeddi/unbundle","commit_stats":null,"previous_names":["skanderjeddi/unbundle"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/skanderjeddi/unbundle","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skanderjeddi%2Funbundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skanderjeddi%2Funbundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skanderjeddi%2Funbundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skanderjeddi%2Funbundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/skanderjeddi","download_url":"https://codeload.github.com/skanderjeddi/unbundle/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/skanderjeddi%2Funbundle/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29499801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-16T03:57:51.541Z","status":"ssl_error","status_checked_at":"2026-02-16T03:55:59.854Z","response_time":115,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio","ffmpeg","media-processing","rust","subtitles","video"],"created_at":"2026-02-14T02:01:48.880Z","updated_at":"2026-02-18T06:00:54.601Z","avatar_url":"https://github.com/skanderjeddi.png","language":"Rust","readme":"# unbundle\n\n[![Crates.io](https://img.shields.io/crates/v/unbundle)](https://crates.io/crates/unbundle)\n[![Downloads](https://img.shields.io/crates/d/unbundle)](https://crates.io/crates/unbundle)\n[![docs.rs](https://img.shields.io/docsrs/unbundle)](https://docs.rs/unbundle)\n[![CI](https://github.com/skanderjeddi/unbundle/actions/workflows/ci.yml/badge.svg)](https://github.com/skanderjeddi/unbundle/actions/workflows/ci.yml)\n[![Rust 1.85+](https://img.shields.io/badge/rust-1.85%2B-orange)](https://www.rust-lang.org/)\n[![Changelog](https://img.shields.io/badge/changelog-releases-blue)](https://github.com/skanderjeddi/unbundle/releases)\n[![License: MIT](https://img.shields.io/crates/l/unbundle)](LICENSE)\n[![Stars](https://img.shields.io/github/stars/skanderjeddi/unbundle?style=social)](https://github.com/skanderjeddi/unbundle)\n\n**The ergonomic Rust media toolkit** — extract frames, audio, and subtitles with clean APIs and real FFmpeg power.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/assets/unbundle-cli-hero.svg\" alt=\"unbundle CLI hero\" width=\"860\" /\u003e\n\u003c/p\u003e\n\n## Build media features faster\n\n`unbundle` gives you a high-level, type-safe interface over FFmpeg so you can ship video/audio workflows without fighting low-level decode details.\n\n### What you can build\n\n- Thumbnail services \u0026 contact sheets\n- Media ingestion \u0026 processing pipelines\n- Validation \u0026 metadata tools\n- Analysis tools (keyframes, scene detection, VFR)\n- Async batch processors\n\n### Why developers choose unbundle\n\n- **Ergonomic API** — `DynamicImage` frames, structured subtitles, zero boilerplate\n- **Production controls** — progress, cancellation, stream copy, validation\n- **Flexible outputs** — files, memory, iterators, async streams\n- **Single toolkit** — extraction + probing + remuxing + analysis in one crate\n\n## Quick start\n\n### Install\n\n**Library**\n```toml\n[dependencies]\nunbundle = \"5\"          # or { version = \"5\", features = [\"full\"] }\n```\n\n**CLI**\n```bash\ncargo install unbundle\n```\n\n### Hello media\n\n```rust\nuse std::time::Duration;\nuse unbundle::{AudioFormat, MediaFile};\n\nlet mut media = MediaFile::open(\"input.mp4\")?;\n\n// Frame at 10s\nmedia.video().frame_at(Duration::from_secs(10))?.save(\"frame_10s.png\")?;\n\n// Full audio track\nmedia.audio().save(\"audio.wav\", AudioFormat::Wav)?;\n```\n\n## CLI quick reference\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"docs/assets/unbundle-cli-demo.gif\" alt=\"Animated unbundle CLI demo\" width=\"800\" /\u003e\n\u003c/p\u003e\n\n```bash\n# Metadata\nunbundle metadata input.mp4\nunbundle info input.mp4\n\n# Frames / audio / subtitles\nunbundle extract-frames input.mp4 --out frames --every 12\nunbundle extract-audio input.mp4 --format mp3 --out audio.mp3\nunbundle extract-subs input.mkv --format srt --out subs.srt\n\n# Utilities\nunbundle validate input.mp4\nunbundle thumbnail input.mp4 --out thumb.jpg --timestamp 00:00:10\nunbundle remux input.mkv output.mp4\n```\n\n**Global flags** (work on every command):\n\n```bash\n--progress\n--verbose\n--overwrite\n--log-level \u003cquiet|info|debug|trace\u003e\n--pixel-format \u003crgb8|rgba8|gray8\u003e\n--threads \u003cN\u003e\n--hardware \u003cauto|cuda|vaapi|dxva2|d3d11va|videotoolbox|qsv\u003e\n```\n\nFeature-gated commands (`scene-detect`, `waveform`, `loudness`) appear when built with the matching crate features.\n\n## Detailed installation\n\n### Library with optional features\n\n```toml\n[dependencies]\nunbundle = { version = \"5\", features = [\"async\", \"rayon\", \"hardware\"] }\n```\n\n### System requirements\n\n`unbundle` requires **FFmpeg 4.0+** development libraries.\n\n**Linux (Debian/Ubuntu)**\n```bash\nsudo apt-get install libavcodec-dev libavformat-dev libavutil-dev \\\n  libswscale-dev libswresample-dev libavdevice-dev pkg-config\n```\n\n**macOS**\n```bash\nbrew install ffmpeg pkg-config\n```\n\n**Windows (vcpkg)**\n```powershell\ngit clone https://github.com/microsoft/vcpkg.git C:\\vcpkg\nC:\\vcpkg\\bootstrap-vcpkg.bat\nvcpkg install ffmpeg:x64-windows\n\n# Add to environment (restart terminal after)\nsetx VCPKG_ROOT \"C:\\vcpkg\"\nsetx FFMPEG_DIR \"C:\\vcpkg\\installed\\x64-windows\"\nsetx PATH \"%PATH%;C:\\vcpkg\\installed\\x64-windows\\bin\"\n```\n\nThe crate’s `build.rs` will give helpful guidance if anything is missing.\n\n## Core capabilities\n\n- Frame extraction (single, ranges, intervals, timestamps, segmented)\n- Audio extraction (full track or ranged, to file or memory)\n- Subtitle extraction (text + bitmap)\n- Lossless stream copy \u0026 remuxing\n- Rich metadata, chapters, and file validation\n- Thumbnail helpers (single, grid, smart variance-based)\n- Analysis tools (keyframes/GOP, variable frame rate, packet iteration)\n\n## Optional features\n\n| Feature     | What it adds                          |\n|-------------|---------------------------------------|\n| `async`     | `FrameStream` + `AudioFuture` (Tokio) |\n| `rayon`     | Parallel frame decoding               |\n| `hardware`  | GPU decoding (CUDA, VAAPI, …)         |\n| `scene`     | Scene change detection                |\n| `gif`       | Animated GIF export                   |\n| `waveform`  | Waveform visualization data           |\n| `loudness`  | Peak/RMS loudness (dBFS)              |\n| `transcode` | Audio re-encoding                     |\n| `encode`    | Encode image sequences to video       |\n| `full`      | Everything                            |\n\n## More examples\n\nAll runnable with `cargo run --example \u003cname\u003e`:\n\n```bash\ncargo run --example metadata -- path/to/video.mp4\ncargo run --example extract_frames -- path/to/video.mp4\ncargo run --example thumbnail -- path/to/video.mp4\ncargo run --example remux -- path/to/video.mp4\n```\n\nFull list in the [`examples/`](https://github.com/skanderjeddi/unbundle/tree/main/examples) directory.\n\n## Testing \u0026 benchmarks\n\n```bash\n# Generate test fixtures\nbash tests/fixtures/generate_fixtures.sh          # Linux/macOS\ntests\\fixtures\\generate_fixtures.bat              # Windows\n\ncargo test --all-features\ncargo bench --all-features\n```\n\n## Troubleshooting\n\n- **Linking errors** → Install FFmpeg dev libs and check `pkg-config --libs libavcodec`\n- **Unsupported codec** → Run `ffmpeg -codecs` on your system\n- **Hardware decode fails** → Use `--hardware auto` or `HardwareAccelerationMode::Auto`\n- **High memory** → Use `for_each_frame`, `frame_iter`, or `AudioIterator` instead of collecting everything\n\n## Project links\n\n- **Docs** → https://docs.rs/unbundle\n- **Repository** → https://github.com/skanderjeddi/unbundle\n- **Changelog** → https://github.com/skanderjeddi/unbundle/releases\n- **Contributing** → [CONTRIBUTING.md](CONTRIBUTING.md)\n\n## License\n\nMIT — see [LICENSE](LICENSE).\n\n100% vibe-coded with ❤️ using Claude Opus 4.6 by [Skander Jeddi](https://github.com/skanderjeddi) ✨\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskanderjeddi%2Funbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fskanderjeddi%2Funbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fskanderjeddi%2Funbundle/lists"}