Skip to content

Latest commit

 

History

History
81 lines (53 loc) · 2.59 KB

File metadata and controls

81 lines (53 loc) · 2.59 KB

Narabemi

Quick side-by-side video comparison tool.

Screenshots

screenshot main2 screenshot main1

© Blender Foundation | cloud.blender.org/spring, studio.blender.org/films/big-buck-bunny

Custom Blend Shader

screenshot custom blend shader

float4 main(float2 uv : TEXCOORD) : COLOR
{
    float4 color0 = tex2D(input0, uv);
    float4 color1 = tex2D(input1, uv);
    float4 color = lerp(color0, color1, step(ratio, uv.x) * saturate(step(uv.y % 0.2, 0.1))); // stripe blend
    return lerp(color, borderColor,
        step(uv.x - (borderWidth / widthPx / 2.0f), ratio) *
        step(ratio, uv.x + borderWidth / widthPx / 2.0f));
}

Comparing Subtitles

screenshot subtitles

Installation

Download

Set FFmpeg path

  1. Download the FFmpeg 4.4 binary and put it somewhere.
  2. Edit the appsettings.json file to set the path to FFmpeg's bin directory.

Or just run the download_ffmpeg.bat file.

Building from source

Prerequisites

  • .NET 6.0 SDK — required to build and run the application
  • FXC shader compiler — required for the PreBuild step that compiles HLSL pixel shaders to .fxc bytecode

Steps

# 1. Download FFmpeg binaries (places them at ./ffmpeg/bin by default)
./download_ffmpeg.bat

# 2. Build
dotnet build Narabemi/Narabemi.csproj

# 3. Run
dotnet run --project Narabemi/Narabemi.csproj

Limitations

  • Video playback synchronization is not frame-accurate, not perfect.

Alternatives

License

MIT license