<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.xiph.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ltrudeau</id>
	<title>XiphWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.xiph.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ltrudeau"/>
	<link rel="alternate" type="text/html" href="https://wiki.xiph.org/Special:Contributions/Ltrudeau"/>
	<updated>2026-04-20T02:34:07Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://wiki.xiph.org/index.php?title=Daala_Quickstart&amp;diff=16195</id>
		<title>Daala Quickstart</title>
		<link rel="alternate" type="text/html" href="https://wiki.xiph.org/index.php?title=Daala_Quickstart&amp;diff=16195"/>
		<updated>2016-01-19T22:49:06Z</updated>

		<summary type="html">&lt;p&gt;Ltrudeau: /* Ubuntu */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is a guide to getting a copy of the latest Daala source code and encoding a video with it.&lt;br /&gt;
&lt;br /&gt;
There is also a &#039;&#039;&#039;[[Daala Quickstart Windows]]&#039;&#039;&#039; page.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
=== Obtaining dependencies ===&lt;br /&gt;
==== Linux ====&lt;br /&gt;
You&#039;ll need:&lt;br /&gt;
&lt;br /&gt;
* Standard build tools (autoconf, automake v1.11 or later, libtool, pkg-config, and a C compiler)&lt;br /&gt;
* git&lt;br /&gt;
* libogg (v1.3 or later)&lt;br /&gt;
* libpng&lt;br /&gt;
* libjpeg&lt;br /&gt;
* libcheck (v0.9.8 or later, can be skipped if you pass --disable-unit-tests to ./configure)&lt;br /&gt;
* libsdl2 (can by skipped if you pass --disable-player to ./configure)&lt;br /&gt;
* libwxgtk2.8 (optional: only needed if --enable-analyzer is passed to ./configure)&lt;br /&gt;
&lt;br /&gt;
Do not use linuxbrew.&lt;br /&gt;
&lt;br /&gt;
Instructions for installing these packages are OS-specific (feel free to contribute some here, especially if you tried installing these somewhere and ran into difficulties; you will likely save other people some pain). If you have a package manager that has separate -dev versions with the public headers, make sure you install those in addition to the actual libraries.&lt;br /&gt;
&lt;br /&gt;
===== Ubuntu =====&lt;br /&gt;
&lt;br /&gt;
Run the following command to install dependencies:&lt;br /&gt;
  sudo apt-get install autoconf git g++ libtool libsdl2-gfx-dev libogg-dev libjpeg-dev libpng-dev check&lt;br /&gt;
&lt;br /&gt;
==== Mac OS X ====&lt;br /&gt;
Install Apple&#039;s command line developer tools. E.g. install [https://developer.apple.com/xcode/ Xcode] from the App Store and select &#039;Command Line Tools&#039; from the Preferences::Downloads panel, or download and install the pkg directly from [https://developer.apple.com/downloads/ developer.apple.com].&lt;br /&gt;
&lt;br /&gt;
Install [http://brew.sh/ Homebrew]&lt;br /&gt;
&lt;br /&gt;
Run the following command to install dependencies:&lt;br /&gt;
  brew install autoconf automake libtool libogg libpng libjpeg check sdl2&lt;br /&gt;
&lt;br /&gt;
=== Installation Procedure ===&lt;br /&gt;
&lt;br /&gt;
Just run these commands:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
git clone https://git.xiph.org/daala.git&lt;br /&gt;
cd daala&lt;br /&gt;
./autogen.sh&lt;br /&gt;
./configure&lt;br /&gt;
make&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that the git clone can take several minutes to complete.&lt;br /&gt;
&lt;br /&gt;
And optionally&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
make tools&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure you run the git clone operation on the same machine where you intend to use the code. Checking out a copy on Windows and then trying to use it on Linux will not work, as executable permissions and line-endings will not be set properly.&lt;br /&gt;
&lt;br /&gt;
{{Encoding with Daala}}&lt;br /&gt;
&lt;br /&gt;
{{Decoding with Daala}}&lt;br /&gt;
&lt;br /&gt;
== The Stream Analyzer ==&lt;br /&gt;
There is a bitstream analyzer, with a GUI based on wxWidgets available.&lt;br /&gt;
&lt;br /&gt;
To run it:&lt;br /&gt;
&lt;br /&gt;
    ./examples/analyzer video.ogv&lt;br /&gt;
&lt;br /&gt;
where video.ogv is the file you want to open. If you omit it, you can open it via the analyzer&#039;s GUI.&lt;br /&gt;
&lt;br /&gt;
The analyser may only work correctly with videos encoded using the same Daala version as itself, as the bitstream is still being changed regularly by the ongoing code development.&lt;br /&gt;
&lt;br /&gt;
== Using PNG Images ==&lt;br /&gt;
&lt;br /&gt;
To encode a series of images:&lt;br /&gt;
&lt;br /&gt;
    make tools&lt;br /&gt;
    ./tools/png2y4m video%05d.png -o video.y4m&lt;br /&gt;
&lt;br /&gt;
where %05d means your input images are named video00000.png, video00001.png, etc. You can leave out the %05d tag if you only want to convert a single image (which does not need to be numbered).&lt;br /&gt;
&lt;br /&gt;
To convert a y4m back to PNGs:&lt;br /&gt;
&lt;br /&gt;
    ./tools/y4m2png video.y4m -o video%05d.png&lt;br /&gt;
&lt;br /&gt;
If you are converting a .y4m file that only contains a single frame (e.g., from one of the still-image subsets linked above), you can leave out the %05d tag. Conversion from PNG to Y4M uses the Rec 709 matrix with video levels, a box filter for chroma subsampling, and a triangular dither. Conversion back from Y4M to PNG uses the same matrix, levels, and box filter, but does not dither.&lt;br /&gt;
&lt;br /&gt;
{{Converting to y4m}}&lt;br /&gt;
&lt;br /&gt;
{{Merging two y4m videos side-by-side}}&lt;br /&gt;
&lt;br /&gt;
== Showing frame differences in a y4m file ==&lt;br /&gt;
To show the difference between two consecutive frames in a y4m file, do:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ffmpeg -i file.y4m -ss 0.03 -i file.y4m -filter_complex &#039;blend=all_mode=difference&#039; -y diff.y4m&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This actually compares the video with itself, but offset by 1 frame or 0.03 seconds.&lt;br /&gt;
&lt;br /&gt;
[[Category:Daala]]&lt;/div&gt;</summary>
		<author><name>Ltrudeau</name></author>
	</entry>
</feed>