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

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

Easily deploy an SSD cloud server on @DigitalOcean in 55 seconds. Sign up using my link and receive $10 in credit
Proudly published with Ghost | Theme based on Draugur | Header Image by GUWEIZ@DeviantArt
Creative Commons Licence