Giter Site home page Giter Site logo

cryencodercomparer's Introduction

CryEncoderComparer

A simple cross-platform command-line tool for comparing diffent ffmpeg video encoders based on a reference video and VMAF metric.

User can define multiple presets (= ffmpeg commands) for encoding the reference video. The tool will then calculate the VMAF metric for each defined preset.

Requirements

  • FFmpeg executable available in PATH or in the same directory as this tool

Usage

Usage: ./CryEncoderComparer [options] <REFERENCE CLIP> [options]

Options:
   --from <timestamp>      Select the FROM timestamp for reference clip. (example: 52.3)
   --to <timestamp>        Select the TO timestamp for reference clip. (example: 01:10)
   --threads <threads>     Number of threads for calculating VMAF. (default: 8)
   --presets <filename>    Select file that contains all presets you want to compare, separated by lines

Examples

Used reference video is myClip.mp4.

Using timestamps 00:45.5 and 01:00 and presets file presets.txt:

./CryEncoderComparer --from 00:45.5 --to 01:00 -p presets.txt myClip.mp4

Example using shorthand options. Timestamps 00:05 and 00:15. Using 16 threads for VMAF calculation:

./CryEncoderComparer -p presets.txt -f 5 -t 15 myClip.mp4 --threads 16

Presets File

A presets file contains different ffmpeg commands that will encode the reference video. Each preset is in a new line.

Example:

-c:v libx265 -preset slow -b:v 2M -f mp4
-c:v libx265 -preset medium -b:v 2M -f mp4
-c:v libx265 -preset fast -b:v 2M -f mp4
-c:v hevc_nvenc -preset slow -b:v 2M -f mp4

A preset must define the following:

  • video codec (options -c:v/-codec:v/-vcodec)
  • output format (option -f)

A preset must not have any inputs (-i)

Anything else is up to you. You can set encoder parameters however you want.

Screenshots

Screenshot of program

Publishing

You can publish this tool from source code by running the following command:

dotnet publish -c Release -r win-x64 -o output

It will generate the executable for Windows insdie the output directory.

If you want to publish for other platforms, check the availabe runtime identifiers for dotnet. (Linux: linux-x64)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.