Created this simple encoder script while trying out daala

Features:

  • Select file
  • Number of frames to skip
  • Number of frames to encode
  • Uncompressed y4m output file
  • Lossless png file from daala encode (uses y4m file from dump_video)
  • Lossless png file from source
  • Linux Bash Version
  • and by unpopular demand a Batch Version for Windows

Requirments

  • encoder expects y4m, so you need to ffmpeg -pix_fmt yuv420p -i any-source-video.webm output.y4m
  • ffmpeg needed for png frame extracting

Install Linux

cd daala/examples/

wget https://raw.githubusercontent.com/nwgat/scripts/master/nwgatdaalaenc.sh

chmod +x nwgatdaalaenc.sh

./nwgatdaalaenc.sh

Install windows

Download https://raw.githubusercontent.com/nwgat/scripts/master/nwgatdaalaenc-win.bat

copy to daala folder

Run it

notes:

  • Need to figure out why echo says its off on windows
  • Inputing nothing into frames/encodeframes on windows fails, need to figure that out
  • Perhaps more options to say yes or no, but this works for me

The NetVC has a new altenative video codec

"The Thor video codec is a block-based hybrid video codec similar in structure to widespread standards."

Encoder: ./Thorenc -cf config.txt

Decoder: ./Thordec str.bit out.yuv

Source Code

http://github.com/cisco/thor

Windows x64 Builds

(almost) up to date daala builds for windows
64-bit for now, if anyone need 32-bit just contact me

Daala Websites
Website - GitHub - Demos - Doom9 Discussion

Compiler Details(for nwgat builds)

  • Cygwin64 1.7.32(0.274/5/3) or later
  • libogg 1.3.1-1 or later

Usage

Source: ffmpeg -pix_fmt yuv420p -i any-source-video.webm source.y4m
Source: (720p resize) ffmpeg -pix_fmt yuv420p scale=1280:-1 -i any-source-video.webm source.y4m
Encoding: encoder_example -v 20 source.y4m -o daala-video.ogv
Decoding: dump_video daala-video.ogv -o daala-video.y4m
Playback: Play daala-video.y4m in MPC-BE

Use between 0-55 (0 being lossless), daala supports upto 511 but thats pointless in my testing

Issues

Only use same build for the encoded file.
daala is not finished. so file decoding will break between builds

Download

Install Packages
sudo apt-get install autoconf automake libtool libogg-dev libpng12-dev libjpeg-dev check libsdl1.2-dev git

Compile Daala
git clone https://git.xiph.org/daala.git && cd daala

./autogen.sh

./configure && make -j22

make tools

  1. Install Cygwin x64 with wget
    https://cygwin.com/setup-x86_64.exe

  2. Install apt-cyg
    wget rawgit.com/XadillaX/apt-cyg/master/apt-cyg

    install apt-cyg /bin

  3. Install Packages
    apt-cyg install gcc-core make pkg-config autoconf automake libtool libogg-devel libpng-devel libjpeg-devel check git

  4. Compile Daala

    git clone https://git.xiph.org/daala.git

    cd daala

    ./autogen.sh

    ./configure --disable-player

    make -j22

    make tools

if the compile fail try commenting out
CFLAGS="-std=c89 -pedantic -Wall -Wextra -Wno-parentheses -Wno-long-long -Wno-overlength-strings $CFLAGS"

CC_CHECK_CFLAGS_APPEND([-U__STRICT_ANSI__])

with # on front of the lines
from configure.ac file

issues: only encoder works for me atm, i need to figure out howto properly compile SDL, tools might fail to compile too with make tools

Receive $10 in credit at DigitalOcean for your VPS Hosting
€1.24 VPS from Time4VPs
Proudly published with Ghost | Theme based on Draugur | Header Image by GUWEIZ@DeviantArt
Creative Commons Licence