| Crates.io | media-stats-rs |
| lib.rs | media-stats-rs |
| version | 0.2.0 |
| created_at | 2024-12-30 14:56:06.571639+00 |
| updated_at | 2024-12-30 15:44:13.948695+00 |
| description | Generate a table with media statistics of video files in a folder. You'll receive information like the resolution or codec to quickly sort and filter your media files. |
| homepage | https://github.com/LekoArts/media-stats-rs |
| repository | https://github.com/LekoArts/media-stats-rs |
| max_upload_size | |
| id | 1499218 |
| size | 35,154 |
Generate a table with media statistics of video files in a folder. You'll receive information like the resolution or codec to quickly sort and filter your media files. Optionally you can create a .csv file with the information.
Uses ffprobe to inspect the files.
You'll need to have the Rust development environment installed and up to date.
Once you have rust and dependencies installed, use cargo to install media-stats-rs:
cargo install --locked media-stats-rs
You need to pass a base and pattern.
Usage: media-stats-rs [OPTIONS] --base <BASE> --pattern <PATTERN>
Options:
-b, --base <BASE> The base folder to search in
-p, --pattern <PATTERN> The file pattern to search for inside the base folder
-c, --csv Write output to a .csv file in the current directory
-h, --help Print help
-V, --version Print version
Example:
media-stats-rs --base "/Users/movies" --pattern "**/*.{mkv,mp4}"
Output:
🔍 Searching for files...
+-------------------------------+-------+--------+----------------+-----------+-------+----------+-----------+
| Filename | Width | Height | Duration (min) | Size (GB) | Codec | Audio | Subtitles |
+============================================================================================================+
| Millennium Actress (2001).mkv | 1920 | 1040 | 86 | 9.91 | hevc | ger, jpn | ger |
+-------------------------------+-------+--------+----------------+-----------+-------+----------+-----------+
🎬 Total files found: 1
✨ Done in 0 seconds