[package]
edition = "2024"
name = "unbundle"
version = "4.0.1"
authors = ["Skander Jeddi <skanderjeddi@fastmail.com>"]
build = false
exclude = [
"tests/fixtures/*.mp4",
"tests/fixtures/*.mkv",
"target/",
]
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Unbundle media files - extract still frames, audio tracks, and subtitles from video files"
readme = "README.md"
keywords = [
"video",
"audio",
"ffmpeg",
"extraction",
"media",
]
categories = [
"multimedia",
"multimedia::video",
"multimedia::audio",
]
license = "MIT"
repository = "https://github.com/skanderjeddi/unbundle"
[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
"--cfg",
"docsrs",
]
[features]
async = [
"tokio",
"tokio-stream",
"futures-core",
]
default = []
encode = []
full = [
"async",
"rayon",
"hardware",
"scene",
"gif",
"waveform",
"loudness",
"transcode",
"encode",
]
gif = ["dep:gif"]
hardware = []
loudness = []
rayon = ["dep:rayon"]
scene = []
transcode = []
waveform = []
[lib]
name = "unbundle"
path = "src/lib.rs"
[[example]]
name = "async_extraction"
path = "examples/async_extraction.rs"
required-features = ["async"]
[[example]]
name = "audio_iterator"
path = "examples/audio_iterator.rs"
[[example]]
name = "extract_audio"
path = "examples/extract_audio.rs"
[[example]]
name = "extract_audio_segment"
path = "examples/extract_audio_segment.rs"
[[example]]
name = "extract_frames"
path = "examples/extract_frames.rs"
[[example]]
name = "gif_export"
path = "examples/gif_export.rs"
required-features = ["gif"]
[[example]]
name = "hardware_acceleration"
path = "examples/hardware_acceleration.rs"
required-features = ["hardware"]
[[example]]
name = "keyframe"
path = "examples/keyframe.rs"
[[example]]
name = "loudness"
path = "examples/loudness.rs"
required-features = ["loudness"]
[[example]]
name = "metadata"
path = "examples/metadata.rs"
[[example]]
name = "packet_iterator"
path = "examples/packet_iterator.rs"
[[example]]
name = "pixel_formats"
path = "examples/pixel_formats.rs"
[[example]]
name = "progress"
path = "examples/progress.rs"
[[example]]
name = "rayon"
path = "examples/rayon.rs"
required-features = ["rayon"]
[[example]]
name = "remux"
path = "examples/remux.rs"
[[example]]
name = "scene"
path = "examples/scene.rs"
required-features = ["scene"]
[[example]]
name = "subtitle"
path = "examples/subtitle.rs"
[[example]]
name = "subtitle_search"
path = "examples/subtitle_search.rs"
[[example]]
name = "thumbnail"
path = "examples/thumbnail.rs"
[[example]]
name = "transcode"
path = "examples/transcode.rs"
required-features = ["transcode"]
[[example]]
name = "validate"
path = "examples/validate.rs"
[[example]]
name = "variable_framerate"
path = "examples/variable_framerate.rs"
[[example]]
name = "video_encoder"
path = "examples/video_encoder.rs"
required-features = ["encode"]
[[example]]
name = "video_iterator"
path = "examples/video_iterator.rs"
[[example]]
name = "waveform"
path = "examples/waveform.rs"
required-features = ["waveform"]
[[test]]
name = "async_extraction"
path = "tests/async_extraction.rs"
[[test]]
name = "audio"
path = "tests/audio.rs"
[[test]]
name = "audio_iterator"
path = "tests/audio_iterator.rs"
[[test]]
name = "chapters"
path = "tests/chapters.rs"
[[test]]
name = "configuration"
path = "tests/configuration.rs"
[[test]]
name = "conversion"
path = "tests/conversion.rs"
[[test]]
name = "error_handling"
path = "tests/error_handling.rs"
[[test]]
name = "frame_metadata"
path = "tests/frame_metadata.rs"
[[test]]
name = "gif_export"
path = "tests/gif_export.rs"
[[test]]
name = "hardware_acceleration"
path = "tests/hardware_acceleration.rs"
[[test]]
name = "keyframe"
path = "tests/keyframe.rs"
[[test]]
name = "loudness"
path = "tests/loudness.rs"
[[test]]
name = "metadata"
path = "tests/metadata.rs"
[[test]]
name = "metadata_extended"
path = "tests/metadata_extended.rs"
[[test]]
name = "packet_iterator"
path = "tests/packet_iterator.rs"
[[test]]
name = "probing"
path = "tests/probing.rs"
[[test]]
name = "progress"
path = "tests/progress.rs"
[[test]]
name = "rayon"
path = "tests/rayon.rs"
[[test]]
name = "scene"
path = "tests/scene.rs"
[[test]]
name = "segmented_extraction"
path = "tests/segmented_extraction.rs"
[[test]]
name = "subtitle"
path = "tests/subtitle.rs"
[[test]]
name = "subtitle_search"
path = "tests/subtitle_search.rs"
[[test]]
name = "thumbnail"
path = "tests/thumbnail.rs"
[[test]]
name = "transcode"
path = "tests/transcode.rs"
[[test]]
name = "validation"
path = "tests/validation.rs"
[[test]]
name = "variable_framerate"
path = "tests/variable_framerate.rs"
[[test]]
name = "video"
path = "tests/video.rs"
[[test]]
name = "video_encoder"
path = "tests/video_encoder.rs"
[[test]]
name = "video_iterator"
path = "tests/video_iterator.rs"
[[test]]
name = "waveform"
path = "tests/waveform.rs"
[[bench]]
name = "extraction_benchmarks"
path = "benches/extraction_benchmarks.rs"
harness = false
[dependencies.ffmpeg-next]
version = "8"
[dependencies.ffmpeg-sys-next]
version = "8"
[dependencies.futures-core]
version = "0.3"
optional = true
[dependencies.gif]
version = "0.13"
optional = true
[dependencies.image]
version = "0.25"
[dependencies.log]
version = "0.4"
[dependencies.rayon]
version = "1.11"
optional = true
[dependencies.thiserror]
version = "2.0"
[dependencies.tokio]
version = "1"
features = [
"rt",
"sync",
"macros",
]
optional = true
[dependencies.tokio-stream]
version = "0.1"
optional = true
[dev-dependencies.criterion]
version = "0.5"
[dev-dependencies.image]
version = "0.25"
[dev-dependencies.tempfile]
version = "3.0"
[dev-dependencies.tokio]
version = "1"
features = [
"rt-multi-thread",
"macros",
]
[dev-dependencies.tokio-stream]
version = "0.1"