Template:Encoding with Daala: Difference between revisions

From XiphWiki
Jump to navigation Jump to search
(Created page with "== Encoding a Video == === Test Media === If you do not have one, get a sample video or two in .y4m format from [https://media.xiph.org/video/derf/ media.xiph.org]. These videos...")
 
 
(3 intermediate revisions by 2 users not shown)
Line 2: Line 2:


=== Test Media ===
=== Test Media ===
If you do not have one, get a sample video or two in .y4m format from [https://media.xiph.org/video/derf/ media.xiph.org]. These videos are relatively large and will take a long time to encode. There are also subsets of 1 second long videos for faster encoding:
Get a sample video or two in .y4m format from [https://media.xiph.org/video/derf/ media.xiph.org].<br />
* [https://people.xiph.org/~tdaede/video-1-short/ video-1-short]
These videos are relatively large and will take a long time to encode.
 
There are subsets of 1-second-long videos for faster encoding:
* [https://people.xiph.org/~tdaede/sets/video-1-short/ video-1-short]
* [https://people.xiph.org/~tdaede/sets/video-hd-1/ video-hd-1]
* [https://people.xiph.org/~tdaede/sets/video-hd-2/ video-hd-2]
 
Xiph also maintains a set of still-image collections in .y4m format:


We also maintain a set of still-image collections in .y4m format:
* [https://people.xiph.org/~tterribe/daala/subset1-y4m.tar.gz Subset 1] (50 images, small training set)
* [https://people.xiph.org/~tterribe/daala/subset1-y4m.tar.gz Subset 1] (50 images, small training set)
* [https://people.xiph.org/~tterribe/daala/subset2-y4m.tar.gz Subset 2] (50 images, small testing set)
* [https://people.xiph.org/~tterribe/daala/subset2-y4m.tar.gz Subset 2] (50 images, small testing set)
Line 12: Line 18:


=== Using the encoder ===
=== Using the encoder ===
Encode a video:
Encode the video:


     ./examples/encoder_example -v 30 video.y4m -o video.ogv
     ./examples/encoder_example -v 30 video.y4m -o video.ogv


where
where
* video.y4m is the input video you want to encode,
 
* video.ogv is the name of the encoded video file to output,
* '''-v ???''' specifies the amount of compression (currently from 0 to 511, where 0 is lossless, 511 is very lossy)
* -v specifies the quality (currently from 0 to 511, where 0 is lossless)
* '''video.y4m''' is the input video you want to encode
* '''-o video.ogv''' is the name of the encoded video file to output.
 
Use '''encoder_example.exe -h''' for the in-built help.

Latest revision as of 19:28, 7 December 2015

Encoding a Video

Test Media

Get a sample video or two in .y4m format from media.xiph.org.
These videos are relatively large and will take a long time to encode.

There are subsets of 1-second-long videos for faster encoding:

Xiph also maintains a set of still-image collections in .y4m format:

  • Subset 1 (50 images, small training set)
  • Subset 2 (50 images, small testing set)
  • Subset 3 (1000 images, large training set)
  • Subset 4 (1000 images, large testing set)

Using the encoder

Encode the video:

   ./examples/encoder_example -v 30 video.y4m -o video.ogv

where

  • -v ??? specifies the amount of compression (currently from 0 to 511, where 0 is lossless, 511 is very lossy)
  • video.y4m is the input video you want to encode
  • -o video.ogv is the name of the encoded video file to output.

Use encoder_example.exe -h for the in-built help.