World Library  
Flag as Inappropriate
Email this Article

Smacker video

Article Id: WHEBN0000637954
Reproduction Date:

Title: Smacker video  
Author: World Heritage Encyclopedia
Language: English
Subject: RAD Game Tools, Microsoft Video 1, QuickTime Graphics, Apple Video, Libavcodec
Collection: Container Formats, Video Codecs
Publisher: World Heritage Encyclopedia
Publication
Date:
 

Smacker video

Smacker
Filename extension .smk
Type code Smk2
Developed by RAD Game Tools
Type of format Video codec
Container for Smacker

Smacker video is a video file format (with the .SMK file extension) developed by RAD Game Tools, and primarily used for full-motion video in video games.[1] Smacker uses an adaptive 8-bit RGB palette. RAD's format for video at higher color depths is Bink Video. The Smacker format specifies a container format, a video compression format, and an audio compression format.[2] Since its release in 1994, Smacker has been used in over 2300 games.[1] Blizzard used this format for the cinematic videos seen in its games Warcraft II, StarCraft and Diablo I.[3]

The format has been reverse engineered and implemented in

  • Official Smacker video Page

External links

  1. ^ a b "Smacker video Technology". RAD Game Tools. Retrieved 4 May 2013. 
  2. ^ a b c d e f g h i j k l m "Smacker". MultimediaWiki. 11 April 2007. Retrieved 4 April 2013. 
  3. ^ Ladislav Zezula (2010). "MPQ Archives - Overview". Retrieved 4 May 2013. 
  4. ^ "FFmpeg Documentation". FFmpeg. Retrieved 4 April 2013. 
  5. ^ FFmpeg: Smacker video and Smacker audio decoder
  6. ^ FFmpeg: Smacker container demuxer
  7. ^ SourceForge project libsmacker

References

See also

Smacker audio is one of the audio formats that can be used in the Smacker container. For compression, Differential pulse code modulation (DPCM) is used. The difference between two successive samples is compressed using Huffman coding. The Huffman tables are adapted once per audio frame.[2]

Audio

Further compression is achieved by entropy coding using Huffman coding of the various bitstream elements that result from the process above.[2] There are four separate Huffman tables, each with 16-bit entries: one for mode decision, run-length, and fill color in fill color mode, one for the color indices in mono mode, one for the bitmap in mono mode, and one for all data in the full mode. Each table is adaptive and transmitted once per file in the header. The Huffman tables in the header are themselves compressed: the 16 bit values in the leaves of the code tree are split into a high byte and a low byte. Each byte is compressed using a Huffman table that is also contained in the header.[2]

In Smacker video, a frame is split into 4×4 blocks in raster-scan order.[2] Each block can be coded in one of six coding modes: skip, fill, mono, and three full modes. Each mode can be signaled for multiple blocks in a run-length encoding scheme. In skip mode, the current block is copied from the previous frame in a conditional replenishment fashion. In fill mode, the current block is filled with a single color. In mono mode, the palette is locally reduced from 256 colors to two colors. Both colors are written to the bitstream and one bit per pixel is used to indicate which of the two colors a pixel should be.[2] The mono mode can be interpreted as vector quantization, where a three-dimensional vector with the components red, green, and blue is quantized using an adaptive codebook with two entries. There are three full modes, one was specified in version 2 of the Smacker format, while the other two were added in version 4.[2] In the original full mode, 16 colors are transmitted, one for each pixel, equivalent to raw uncompressed PCM. The two full modes added in version 4 use 4 and 8 colors in a block, respectively.[2] In the 4-color mode, the 4×4 block is split into four 2×2 blocks, each of which is filled with a solid color. In the 8-color mode, the 4×4 block is split into eight 1×2 blocks, each of which is filled with a solid color.[2]

Smacker video supports 256 colors, and includes transparency support.[2] While being a palette-based format, which is inherently limited to having not more than 256 colors in each frame, Smacker videos may still contain more colors in total due to "palette rotation", whereby the palette is updated on a per-frame basis.[2] This usually results in SMK files that look better if the source video has more than 256 colors. The compression rate of Smacker can reach 1:12, but at the loss of quality (pixelation).

Video

Smacker defines its own container format.[2] A Smacker file can contain a Smacker video track and up to seven audio tracks. Each audio track can have either one channel (mono) or two channels (stereo) with a bit depth of either 8-bit or 16-bit. The audio can either be uncompressed PCM, compressed in the Smacker Audio format, or, in newer versions of Smacker, compressed in the Bink Audio format.[2]

File Format (container)

Technical Details

Contents

  • Technical Details 1
    • File Format (container) 1.1
    • Video 1.2
    • Audio 1.3
  • See also 2
  • References 3
  • External links 4

[7]

This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 


Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.