Difference between revisions of "Cinepak"

From MultimediaWiki
Jump to navigation Jump to search
(added description of available encoders/decoders)
(unclear what the wording "official site" actually meant, I find neither any explanation nor reference. probo.com site does not claim anything besides implementing the codec for Windows)
Line 1: Line 1:
 
* FourCC: CVID
 
* FourCC: CVID
 
* Company: [[Supermac]], [[Radius]], [[Providenza & Boekelheide, Inc.]]
 
* Company: [[Supermac]], [[Radius]], [[Providenza & Boekelheide, Inc.]]
* Official Website: [http://www.probo.com/cinepak.htm http://www.probo.com/cinepak.htm]
 
 
* Technical Description: http://www.csse.monash.edu.au/%7etimf/videocodec/cinepak.txt ([[Mirrored Files|mirrored]])
 
* Technical Description: http://www.csse.monash.edu.au/%7etimf/videocodec/cinepak.txt ([[Mirrored Files|mirrored]])
 
* Samples: [http://samples.mplayerhq.hu/V-codecs/CVID/ http://samples.mplayerhq.hu/V-codecs/CVID/]
 
* Samples: [http://samples.mplayerhq.hu/V-codecs/CVID/ http://samples.mplayerhq.hu/V-codecs/CVID/]
 +
* Windows binary codec: [http://www.probo.com/cinepak.htm http://www.probo.com/cinepak.htm]
  
 
The Cinepak coding method is a vector quantization scheme with interframe update optimization. It is known to operate most commonly using a modified YUV 4:2:0 colorspace but also supports 256-grayscale mode. A modified variant of this format is used for full motion video on many Sega Saturn games (in [[Sega FILM]] files often bearing the .cpk extension). It is not known if this format has anything in common with the [[Cinepak For Sega]] format used in many Sega CD games.
 
The Cinepak coding method is a vector quantization scheme with interframe update optimization. It is known to operate most commonly using a modified YUV 4:2:0 colorspace but also supports 256-grayscale mode. A modified variant of this format is used for full motion video on many Sega Saturn games (in [[Sega FILM]] files often bearing the .cpk extension). It is not known if this format has anything in common with the [[Cinepak For Sega]] format used in many Sega CD games.

Revision as of 06:52, 6 February 2013

The Cinepak coding method is a vector quantization scheme with interframe update optimization. It is known to operate most commonly using a modified YUV 4:2:0 colorspace but also supports 256-grayscale mode. A modified variant of this format is used for full motion video on many Sega Saturn games (in Sega FILM files often bearing the .cpk extension). It is not known if this format has anything in common with the Cinepak For Sega format used in many Sega CD games.

ffmpeg contains an almost compliant decoder (using YUV420 instead of the Cinepak colorspace, which distorts colors somewhat - should be easy to fix).

There are several versions of a binary proprietary encoder/decoder as a windows dll, among others ftp://ftp.probo.com/pub/cinepak/cvid32.zip

There is also a simple and straightforward open source encoder as a ffmpeg patch, written in 2011 by [does the person want his name here??] and formerly available at http://titan.codemill.se/~tomhar/cinepakenc.patch (a dead link), see the thread http://multimedia.cx/eggs/playing-video-on-a-sega-dreamcast/

Unfortunately the open source encoder does not use all the possibilities of the format (f.i. skipped or partial codebook replacement). This is the probable reason why it does not achieve the performance of the proprietary one. It is also using the non-compliant YUV420 colorspace (should be easy to fix).

The mentioned open source encoder was recently adapted for the current (December 2012) ffmpeg and slightly improved. It is available at http://www.aetey.se/dl/cinepak-encoder-ffmpeg.patch

The encoder was never submitted for inclusion in ffmpeg, feel free to push it upstream.