• Stars
    star
    222
  • Rank 179,123 (Top 4 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 7 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

AV1 / VP9 Bitstream Analyzer

AOM Analyzer

Install & Build

npm install && npm run build-release

Development Setup

To build AOM Analyzer automatically whenever a file changes run:

npm run build-watch

Electron

You can run the analyzer using electron from the command line using:

electron . decoder1 video1 decoder2 video2 video3 ...

The decoder and video parameters can point either to a local file or a remote url. If you don't specify any arguments, the analyzer will prompt you to select jobs directly from AWCY.

If you've downloaded a standalone package of the analyzer, you can omit the electron . part and just run the binary directly from the command line.

Command Line Options

  • --zoomFactor sets the default zoom level, if you feel that the UI elements are too large, use 0.75 or 0.5.
  • --dev opens up electron dev tools by default.
  • --frames number of frames to decode, by default this is set to 4.
  • --split side by side comparison. This requires that you specify at least two videos to compare. The split view does not show any analyzer layers which makes decoding a bit faster.
    • 1: Left (first video)
    • 2: Right (second video)
    • 3: Vertical Split (first video on the left, second video on the right)
    • 4: Horizontal Split (first video on the top, second video on the bottom)

To build electron packages use:

  • npm run package-darwin
  • npm run package-linux
  • npm run package-win32

Toolbar

GitHub Logo

Video Tabs

The very top tabs let you toggle between videos. You can also use the number keys to toggle between videos.

Current Video Quick Info

The red bar provides quick info about the current frame.

Commands

  • Toggle Layers: Toggles a variety of layers on/off. To understand what the color values mean in each of the layers, you have to click on individual blocks and inspect their value in the Block Info tab.
  • Save Image: Save current image to a .png file.
  • Reset Analyzer: Resets the analyzer state to the first frame and clears all layers.
  • Previous Frame
  • Play / Pause
  • Next Frame
  • Zoom Out
  • Zoom In: Zooming in the entire video can slow things down quite a bit. Use the Zoom tab instead.
  • Decode 30 More Frames: Decode 30 more frames in a background thread. This may take a while but you should still be able to use the analyzer while that is happening.
  • Share: Creates a shortened URL to your analyzer state.

Tabs

  • Zoom: Click anywhere on the decoded image to zoom in on it.

  • Histograms:

    • Bits: Number of bits spent.
    • Symbols: % of bits spent on each symbol type.
    • Block Size: % of pixels within a block size.
    • Transform Size: % of pixels within a transform size.
    • Transform Type: % of pixels within a transform type.
    • Prediction Mode: % of pixels within a prediction mode.
    • Skip: % of pixels skipped.
  • Block Info: Per selected block information and accounting. (When you click on the decoded image, you'll see a orange rectangle that highlights the selected block.)

  • Frame Info: Per frame information and accounting.

Accounting

Both the Block Info and Frame Info tabs have an accounting section. Accounting information keeps track of the number of bits spent on each symbol in the bit stream. The accounting tables show the symbol name, the number of bits spent on that symbol within a block (or frame), the percentage relative to the total number of bits spent in the block (or frame) and the number or samples (or the number of symbols read.)

Building JavaScript Decoders

The analyzer uses a JavaScript decoder to decode video frames and extract information out of .ivf files. The decoder is compiled to JavaScript using the Emscripten compiler. To build your own decoder you'll first need to install Emscripten and then follow the directions in the AV1 Codec Library. This will produce a inspect.js file that you can use as a decoder in the analyzer.

URL Parameters

Decoders / Videos

Video decoder/file pairs are constructed from a sequence of decoder and file URL parameters. For example, the URL string decoder=A&file=X&file=Y&decoder=B&file=X will construct 3 pairs: A:X, A:Y and B:X.

Voting

  • blind: Whether to randomize the videos shown to the user.
  • vote: A comma separated string of video decoder/file pairs to vote on. For example, the string 0:1,1:2 indicates that there should be two votes, the first between A:X and A:Y, and the second between A:Y and B:X. The voting tool can also be used to vote on more than 2 videos at a time (the string 0:1:2:1,1:2 is also valid.)
  • voteDescription: A optional message to show on the first voting screen.
  • showVoteResult: Show the voting results on the last voting screen.

More Repositories

1

rnnoise

Recurrent neural network for audio noise reduction
C
3,969
star
2

rav1e

The fastest and safest AV1 encoder.
Assembly
3,714
star
3

opus

Modern audio compression for the internet.
C
2,201
star
4

flac

Free Lossless Audio Codec
C
1,590
star
5

LPCNet

Efficient neural speech synthesis
C
1,123
star
6

daala

Modern video compression for the internet
C
541
star
7

Icecast-Server

Icecast streaming media server (Mirror) - Please report bugs at https://gitlab.xiph.org/xiph/icecast-server/issues
C
464
star
8

speexdsp

Speex audio processing library - THIS IS A MIRROR, DEVELOPMENT HAPPENS AT https://gitlab.xiph.org/xiph/speexdsp
C
460
star
9

vorbis

Reference implementation of the Ogg Vorbis audio format.
C
455
star
10

speex

Speex voice codec mirror - THIS IS A MIRROR, DEVELOPMENT HAPPENS AT https://gitlab.xiph.org/xiph/speex
C
420
star
11

ogg

Reference implementation of the Ogg media container
C
340
star
12

opus-tools

A set of tools to encode, inspect, and decode audio in the Opus format.
C
214
star
13

opusfile

Stand-alone decoder library for .opus streams
C
150
star
14

libopusenc

Library for encoding .opus audio files and live streams.
C
105
star
15

theora

Reference implementation of the Theora video compression format.
C
96
star
16

vorbis-tools

Command-line tools for creating and playing Ogg Vorbis files.
C
73
star
17

libao

Portable audio output library
C
73
star
18

awcy

Python
71
star
19

ezstream

[Mirror] A streaming source client for Icecast
C
57
star
20

Icecast-libshout

Icecast project live streaming library (Mirror) - Please report bugs at https://gitlab.xiph.org/xiph/icecast-libshout/issues
C
42
star
21

rd_tool

Python
18
star
22

Icecast-IceS

IceS, source client for streaming vorbis to the Icecast server.
C
17
star
23

Icecast-directory

[Obsolete] Icecast stream directory (NodeJS version)
JavaScript
11
star
24

webrtc-opus-ng

C++
11
star
25

Icecast-common

Shared code of the Icecast project
C
9
star
26

xiph-mirror

Scripts for maintaining mirrors of https://git.xiph.org/
Shell
7
star
27

oggdsf

Ogg Directshow Filters
C
5
star
28

Icecast-m4

Icecast project shared autofoo
M4
5
star
29

opus-website

Source of https://opus-codec.org/
JavaScript
4
star
30

flac-website

Homepage for the Free Lossless Audio Codec
HTML
3
star
31

xiphbot-ng

IRC notification bot in rust
Rust
3
star
32

opus-logo

Source files for the Opus audio codec logo.
3
star
33

sintel-downmix

Scripts for deriving packages from the "Sintel" open movie.
Makefile
2
star
34

gsoc

Google Summer of Code
1
star