Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/0n1con3/video-codec-analyzer

Optimize video encoding with codec insights using ffmpeg.
https://github.com/0n1con3/video-codec-analyzer

android bsd codec converting ffmpeg ffmpeg-script ffmpeg-wrapper linux macos movies multimedia series wsl wsl2

Last synced: about 1 month ago
JSON representation

Optimize video encoding with codec insights using ffmpeg.

Awesome Lists containing this project

README

        

# Video Codec Analyzer 🎥💻

This Bash script analyzes video files in the current directory to provide insights on codecs, helping you optimize your video encoding process.

## Features
- 💡 **Codec Analysis**: Determine the best and worst codecs based on video duration.
- 📊 **Common Codec Analysis**: Identify the most common codec among your video files.

## Usage
1. Ensure you have `ffprobe` installed.
2. Simply run the script in your video directory:

```bash
./video_codec_analyzer.sh

█████ █████ ███ █████ █████████ ████
░░███ ░░███ ░░░ ░░███ ███░░░░░███ ░░███
░███ ░███ ████ ███████ ██████ ██████ ░███ ░███ ████████ ██████ ░███ █████ ████ █████ ██████ ████████
░███ ░███░░███ ███░░███ ███░░██████░░███ ░███████████░░███░░███ ░░░░░███ ░███░░███ ░███ ███░░ ███░░███░░███░░███
░░███ ███ ░███ ░███ ░███ ░███████░███ ░███ ░███░░░░░███ ░███ ░███ ███████ ░███ ░███ ░███░░█████ ░███████ ░███ ░░░
░░░█████░ ░███ ░███ ░███ ░███░░░ ░███ ░███ ░███ ░███ ░███ ░███ ███░░███ ░███ ░███ ░███ ░░░░███░███░░░ ░███
░░███ █████░░████████░░██████░░██████ █████ █████████ █████░░█████████████░░███████ ██████ ░░██████ █████
░░░ ░░░░░ ░░░░░░░░ ░░░░░░ ░░░░░░ ░░░░░ ░░░░░░░░░ ░░░░░ ░░░░░░░░░░░░░ ░░░░░███░░░░░░ ░░░░░░ ░░░░

Progress: [==================================================================================================== ] 100%

Best Codec: hevc (10464.037000 seconds)
Worst Codec: h264 (4940.960000 seconds)
Analyzing the most common codec...
Progress: [==================================================================================================== ] 100%

Most Common Codec: h264 (found in 9 files)
Ideal for good quality and small files: libx264

```

## About
This script utilizes `ffprobe` to extract codec information from video files (`.mp4` and `.mkv`). It then analyzes this data to identify the best and worst codecs based on video duration, as well as the most common codec found in the directory.

Feel free to contribute or report issues on [GitHub](https://github.com/0n1cOn3/Video-Codec-Analyzer).

Happy video encoding! 🚀