Video encoding and encapsulation method

Source: Internet
Author: User
Tags coding standards


1. Encoding and Encapsulation format
Common AVI, RMVB, MKV, ASF, WMV, MP4, 3GP, FLV and other files can only be regarded as a packaging standard.


A complete video file is made up of 2 parts of audio and video. H264, XviD and so on is the video encoding format, MP3, AAC and so on is the audio encoding format.


For example: A XviD video encoding file and a MP3 video encoding file in the AVI package standard package, you get an AVI suffix video file, this is our common AVI video file.


Because many kinds of video encoding files, audio encoding files conform to the requirements of the AVI package, it means that even the AVI suffix, may also be within the specific encoding format is different. So appear on some devices, with the AVI suffix file, some can play normally, and some will not play.

The same situation also exists in other container formats. Even RMVB, WMV, etc. are no exception

In fact, many packaging containers on the audio encoding and video coding combination of very open, such as AVI can also use H264+AAC combination, can be used in the specific experience. In particular MKV packaging containers, basic no matter what kind of combination can be! However, the most commonly used MKV is H264+AAC combination, this combination file volume is the smallest, the highest definition. So many MKV videos on the web are high definition.

Therefore, the essence of the video conversion needs to be set: A to set the required video encoding, B set the required audio encoding, C Select the required container encapsulation. A full video conversion setting includes at least the above 3 steps.

At present, the most common video coding methods are Mpeg-1/-2 < WMV/7/8 < RM/RMVB < Xvid/divx < avc/h.264, video compression performance and technical advancement are also basically shown in the above order (from low to high, not exactly).

Currently the most common audio formats are MP3, AC-3, Acc,mp3 most widely supported, AC-3 is the technology of Dolby, ACC is the audio standard in MPEG-4, ACC is currently more advanced and has the advantage of technology.

2. Video coding standard Two systems
The video coding standard has two systems: MPEG and ITU-T, as shown in the following table

Video Coding Standard

MPEG standards are developed by MPEG

MPEG-1 | MPEG-2 | (MPEG-3) | MPEG-4 | MPEG-7 | MPEG-21

ITU-T standards developed by VCEG

h.261 | (h.262) | H.263 | H.263v2 | H.

MPEG-1

is the first video and audio lossy compression standard developed by the MPEG organization. The video compression algorithm was defined in 1990. At the end of 1992, MPEG-1 was formally approved as an international standard.

This standard brings in VCD and MP3

MPEG-2

is the international standard for video and audio compression released by the MPEG workgroup in 1994. MPEG-2 is commonly used to provide video and audio coding for broadcast signals, including satellite TV, cable TV, and so on. MPEG-2 has also become a core technology for DVD products after minor modifications.

MPEG-3

is the video and audio compression standard developed by MPEG organizations. The original goal was to provide 20-40mbps video compression technology for HDTV. In the process of standard-setting, the committee quickly found that MPEG-2 could achieve similar results. Subsequently, the MPEG-3 project was stopped.

MPEG-3 is not equal to MP3. The MP3 is a MPEG-1 audio Layer 3 part.

MPEG-4

is a set of compression coding standards for audio, video information, MPEG-4 contains most of the MPEG-1 and MPEG-2 features and other formats of the strengths, MPEG-4 most of the features are left to developers to decide whether to adopt. This means that the functionality of the entire format is not necessarily fully enclosed by a program. Therefore, this format has the so-called ' profiles ' and ' hierarchy (Levels) ', which defines a collection of certain functions MPEG-4 used for certain applications.

This standard is widely used in the current mainstream coding standards

MPEG-4 consists of a series of sub-standards, called Ministries, including the following sections:

Part II (ISO/IEC 14496-2): Video: Defines a codec for a variety of visual information, including video, stationary textures, computer-synthesized graphics, and so on. In the View section, one of the many profiles that is commonly used is advanced easy profile (ASP), such as XviD encoding, which belongs to MPEG-4 Part 2.

Part III (ISO/IEC 14496-3): Audio: Defines a collection of codecs that encode a variety of audio signals. includes several variants of advanced audio encoding (Coding, abbreviated AAC) and some other audio/speech coding tools.

Tenth (ISO/IEC 14496-10): Advanced Video coding or Advanced video coding (Coding, abbreviation AVC): Defines a video codec (codec), AVC and XviD are MPEG-4 encoded, However, because AVC belongs to the MPEG-4 Part 10, in the technical characteristics than belong to MPEG-4 Part2 XviD to Advanced. In addition, technically speaking, it is consistent with the ITU-T H-I standard, so it is all called MPEG-4 avc/h.264.

ITU-T

ITU Telecommunication Standardization Group (English: ITU Telecommunication Standardization Sector, abbreviated ITU-T) is an organization specializing in the development of relevant international standards for telecommunications under the management of ITU.

A series of standards he set are h.26x h.261 | (h.262) | H.263 | H.263v2 | H.

Where h.262 and MPEG-2 are at the system and level

The AVC that corresponds to MPEG-4 L10

Wmv

Microsoft Company's proprietary set of video coding standards, with multiple versions, starting from the V9 version gradually began to take the open, standardized road

3. Common video coding methods are XviD (MPEG4), H264,MPEG1,MPEG2.


Xvid: The compression rate similar to the RMVB format is very versatile, especially for devices such as home DVD and portable MP4.

divx:1998 Microsoft developed the first MPEG-4 encoder to be used on a PC, with the MS MPEG4v3 series having very good codec capabilities. But Microsoft has closed the MS MPEG4v3 video encoding kernel to Windows Media streaming technology, which means it is only applied to ASF files. This not only led to ASF can not fully spread and occupy the mainstream market, but also caused a bunch of hackers cracked MPEG4 V3. After this hacker's modification, DivX was born.
· The DivX format, also known as the DVDRip format, incorporates the MPEG4 compression algorithm and incorporates the MP3 audio technology. Use DivX technology to compress the video image, then compress the audio with MP3 or AC3 encoding, and then synthesize the video, audio, external subtitles and other files to form the video format. The end result is that video files that are compressed using DivX technology have a quality that is almost the same as the DVD, and the volume is only one of the latter.
· XviD: Speaking of XviD, we have to mention the previous DivX format, which, although developed from Microsoft MPEG4 V3, is not a fully open source technical standard. So the original part of the team began another way, the re-development of the XviD format, from the name of the XviD is DivX inverted writing. XviD has been improved from DivX and has a powerful adjustability that allows you to set many options for different compression modes for different movies. More importantly, XviD is fully open source, so there are a lot of people involved in the development of XviD, in this regard, XviD format than the DivX format has a great advantage.
Their file suffixes are avi.

DIVX,XVID:DIVX Video Coding technology is actually MPEG4 compression technology, it can be said on the challenge DVD, the next squeeze svcd,divx-mpeg4 on DVD and SVCD threat can not be ignored (some say it is DVD killer), it by Microsoft MPEG4v3 is modified to use the MPEG4 compression algorithm. It is said that MPEG4 is the United States Export-forbidden coding technology, it is used to encode, compress a DVD only need two sheets of cd-rom! This means that you do not need to buy expensive DVD ROM and can get the same quality as its video program, and all this only requires that you have a CD-ROM. Playback (decompression) MPEG4 encoding, the requirements of the machine is not high, as long as the CPU is more than 300MHz, and then with 64MB of memory and a 8MB video card can be played smoothly. The requirements for the playback software are more lenient, you only need to install a 500K size of the MPEG4 encoding driver, with Windows comes with the media player can be played smoothly.
XviD and DivX are actually the same source and are all based on mpeg4v3 modifications, but since DivX is not open source after version 5, some programmers have improved DivX 3.11 to become XviD.
Another feature of DivX and XviD is the ability to plug in subtitles and AC3 audio sources, so that you can enjoy the sound of the DVD on the basis of the picture quality similar to the DVD, while also choosing subtitles, giving users a great degree of freedom.
Avi,wmv,asf,dat,mpg,vob: These are the storage formats of media files, AVI is usually used for storing divx/xvid encoded files,

The MPEG4 file is characterized by the file's encapsulated format as AVI (also known as the filename suffix avi), the video format of the file is MPEG-4 Visual (abbreviated MPEG-4), the video codec ID is XviD or DivX (sometimes shown as DX50 (DivX 5)).


H264: The video compression format with the highest compression rate, compared with other encoding formats, the same picture quality, file volume is the smallest, far more than RMVB
Encoded format, the computer can be played, and some portable video devices are also supported, such as Apple player. PDA/PPC and other equipment can also be used

2, h.261/h.263
①, h.261 standard commonly known as p*64,h.261 to full-color, real-time transmission of moving images can achieve a high compression ratio, the algorithm is compressed in the frame and pre-and post-frame compression coding combination to provide video compression and decompression of the rapid processing. Because in the inter-frame compression algorithm only predict the last 1 frames, so in the continuation time has the advantage, but the image quality is difficult to achieve very high definition, cannot realize the big compression ratio and the variable rate recording and so on.
Ii H.263 Basic Coding method and h.261 are the same, are mixed coding method, but h.263 to adapt to very low bit rate transmission, in the coding of the various links have been improved, such as the province code word to improve the quality of the encoded image, in addition, H.263 also absorbed the two-way motion prediction of MPEG and other measures to further improve the accuracy of inter-frame coding Generally speaking, at low bit rate, the use of h.263 as long as half the rate can be obtained and h.261 equivalent image quality.


MPEG1: In fact, is the VCD encoding format.

MPEG-1: Established in 1992, it is an international standard designed for digital storage media motion images and their sound coding for data transfer rates below 1.5Mbps. That's what we usually see in VCD production format. Using the MPEG-1 compression algorithm, a 120-minute movie can be compressed to about 1.2GB. The file extensions for this video format include. mpg,. MLV,. MPE,. mpeg, and. dat files in the VCD CD.

MPEG1: Technical Features: MPEG-1 developed in 1992, can be applied to different bandwidth devices, such as CD-ROM, VIDEO-CD, cd-i. Its purpose is to compress the NTSC image of 221MBIT/S to 1.2mbit/s with a compression rate of 200:1. This is the industry recognition standard for image compression. It can be for the SIF standard resolution (for NTSC system 352x240; for PAL system 352x288) image compression, transfer rate of 1.5mbits/s, play 30 frames per second, with CD quality, quality level basic and VHS (broadcast-level video) equivalent

MPEG-1 is also used for video transmissions on digital telephony networks, such as asymmetric digital subscriber lines (ADSL), Video on Demand (VOD), and educational networks.


MPEG2:DVD encoded format. Stronger than MPEG1, and the same as MPEG1, has been backward encoding format, compression rate is not high, the size of the file after the encoding, more used to want to download the online file to VCD or DVD disc when.

MPEG2: Technical Features: MPEG-2, developed in 1994, is designed with advanced industrial standards for image quality and higher transmission rates. The MPEG-2 delivers transmission rates between 3mb-10mb/s, with a resolution of up to 720x486,mpeg-2 in the NTSC format that delivers broadcast-grade video and CD-level sound quality. The MPEG-2 audio codec provides right and left and two surround channels, plus a weighted bass channel and up to seven audio channels. Another feature of the MPEG-2 is the availability of a wide range of variable compression ratios to accommodate different picture quality, storage capacity, and bandwidth requirements.
Application: MPEG-2 technology is the standard technology to achieve DVD, now DVD players are also beginning to become popular in the family. In addition to being a designated standard for DVDs, MPEG-2 can also be used to provide broadcast-grade digital video for broadcast, cable networks, cable network, and satellite broadcasts.

MPEG-2: Developed in 1994, the design target is high industry standard image quality and higher transmission rate. This format is mainly used in the production of DVD/SVCD (compression), but also in some HDTV (high-definition TV broadcast) and some high-demand video editing, processing, there is a considerable application. Using the MPEG-2 compression algorithm, a 120-minute movie can be compressed to a size of 4 to 8GB. The file extensions for this video format include. mpg,. MPE,. mpeg,. M2V, and. vob files on DVD discs.

MPEG4: Technical Features: MPEG-4 published in November 1998, it is not only for a certain bit rate video, audio coding, more attention to the interactivity and flexibility of multimedia systems. This standard is mainly used for video telephony, video e-mail, etc., the transfer rate is low, between 4800-64000BITS/S, the resolution is 176x144. MPEG-4 uses a very narrow bandwidth, through frame reconstruction technology, data compression, in order to achieve the best image quality with minimal data.
Application: After two years of development, the most popular application now is to use MPEG-4 's high compression rate and high image restoration quality to convert the MPEG-2 video files inside the DVD into smaller video files. After this processing, the video quality of the image drops small but the volume can be reduced several times, it is easy to use CD-ROM to save the program on the DVD. In addition, MPEG-4 in home photography video, online real-time video playback will be useful.

3, MPEG is (motion image coding Expert Group) research and development, is compressed motion image and its sound audio coding standard, it uses the inter-frame compression, only store the continuous frame between the difference between, so as to achieve a larger compression ratio. MPEG is currently more commonly used in MPEG-1, MPEG-2, and MPEG-4 three versions to accommodate different bandwidth and image quality requirements.
①, MPEG-1 video compression algorithm relies on two basic techniques, one is based on the 16*16 (Pixel * line) block motion compensation, the second is based on the transformation domain compression technology to reduce the airspace redundancy, compression ratio is higher than m-jpeg, the motion is not intense video signal can obtain better image quality, But when the movement is intense, the image will produce mosaic phenomenon. MPEG-1 to 1.5Mbps Data rate transmission of AV signal, MPEG-1 in the video image quality equivalent to the image quality of VHS recorders, video recording of the clarity of the color mode ≥240TVL, two stereo sound quality close to the audio quality of the CD. MPEG-1 is a compression algorithm for front and back frame multi-frame prediction, with great compression flexibility, can change the rate of compression video, visual different video environment, set different compression quality, ranging from 80Mb to 400Mb per hour, but the amount of data and bandwidth is still relatively large.
②, MPEG-2 It is a broadcast-grade AV coding standard for higher resolution (720*572). MPEG-2 as a compatible extension of MPEG-1, it supports interlaced video formats and many advanced features including support for multi-layered adjustable video encoding for a wide range of quality, such as multiple speeds and multiple resolutions. It is suitable for real-time images with large motion change, which require high image quality. 30 frames per second, 720*572 resolution video signal compression, data rate of up to 3-10mbps. Because the amount of data is too large, it is not suitable for long-time continuous recording.
③, MPEG-4 is a low-rate, high-compression-ratio audio coding standard for mobile communication devices to transmit AV signals in real-time in internet networks. The MPEG-4 standard is object-oriented compression, not as simple as MPEG-1 and MPEG-2 to divide the image into some like blocks, but based on the content of the image, where objects (objects, people, backgrounds) are separated, respectively within the frame, inter-frame encoding, and allow the flexible distribution of the code rate between different objects, Allocating more bytes to important objects, assigning fewer bytes to secondary objects, thus greatly improving the compression ratio and obtaining better results at lower bitrate, MPEG-4 supports most functions in MPEG-1, MPEG-2, and provides different video standard source formats, bitrate, Effective coding of rectangular graphic images under frame frequency.
In a word, MPEG-4 has three advantages:
①, with good compatibility;
②, MPEG-4 provides a better compression ratio than other algorithms, up to 200:1;
③ and MPEG-4 provide a high compression ratio at the same time, the loss of data is very small. Therefore, the application of mpeg-4 can greatly reduce the video storage capacity, obtain high video sharpness, especially for long-time video recording needs, but also has a good network transmission capacity in low bandwidth.

Rm,rmvb:rm and RMVB are a kind of audio and video encoding format produced by real company, and it is also the storage method of this format encoded file, in which RM is constant bit rate, and RMVB is variable bit rate. Real coding is characterized by the lowest possible data rate to achieve the highest possible picture quality, especially rmvb, in the 450K bit rate can achieve a very clear picture quality, the disadvantage is that the audio quality is relatively general, while the screen details loss is relatively high, especially the brightness portion, So rm and rmvb movies usually give people a darker feel.
Other audio and video encoding formats: Other more common formats are mov,mp4,h263,h264,wmv-hdtv,mkv,ogg,indeo CODEC,ACM,WAV,CD and so on, because these formats are either uncommon, or not suitable for network stream distribution, So the scope of application is usually limited.

4. Common Storage Package format
WMV and ASF are typically storage formats for the Microsoft MPEG4 algorithm

DAT and MPG are MPEG1 algorithm-encoded file storage, where DAT is mainly used for VCD,VOB is the MPEG2 algorithm encoded file storage method, usually used for DVD.

Different video packaging format has different advantages and disadvantages, in general, AVI and RM are the most common format, and AVI due to congenital defects is not conducive to network transmission; M2TS and MKV are advanced next-generation standards that may be gradually prevalent in the future.

avi (. AVI)

It is an acronym for the English Audio Video Interleave ("Audio interlaced" or "Audio Video Interleave"), a multimedia file format introduced by Microsoft in November 1992 to combat the technology of Apple QuickTime. Avi is now said to refer to a package format.

It supports a variety of coding methods: Xvid, WM, h, MPEG, etc.

Common combinations are: * (DivX or Xvid+mp3). avi,* (H.264+mp3). avi* (Wmv9+mp3). avi

asf (. ASF)

Advanced Systems Format (formerly known as "Advanced Streaming Format",. asf), a Microsoft-related streaming media format associated with Windows Media player.

His goal is to solve the AVI format in the transmission of the shortcomings.

wmv (. WMV)

Microsoft's package format corresponding to WMV standard

QuickTime (. mov)

Apple's, needless to say.

MPEG (. mpg/. MPEG)

Package format based on the MPEG-1/MPEG-2/MPEG-4 series standard

mp4 (. mp4)

Full name MPEG-4 Part 14, is a multimedia computer file format using MPEG-4, the file name is. mp4, to store digital audio and digital video-based.

m2ts (. M2TS/. MTS)

is a video file format (container) to support multi-work audio stream. The M2TS is architected on the MPEG transport stream and the famous Bdav MPEG-2 transport stream. [1] [2] [3] This file format supports high-definition Blu-ray Disc and AVCHD.

This is the packaging format in the latest MPEG-4 architecture and is likely to be the mainstream of the next generation

Matroska (. mkv/. MKS/. Mka)

Matroska is a new multimedia package format that encapsulates a variety of different encoded videos and 16 or more different formats of audio and language subtitles into a Matroska media file. It is also one of the open source multimedia encapsulation formats.

ogg

is a free and open standard container format, maintained by the Xiph.org Foundation. The OGG format is not limited by software patents and is designed to efficiently stream media and handle high-quality digital multimedia. "Ogg" means a file format that can be incorporated into a wide variety of free and open source codecs, including audio, video, text (like subtitles) and metadata processing.

rm (. RM/. RMVB)

Real Company

5. Several common conversion format settings


media files that are suitable for home DVD playback (this DVD needs to support MP4 file playback)
means setting value
Set audio stream encoding format LAME MP3
Set audio stream sample rate 44100Hz
Set audio stream sampling channel default
Set audio stream encoding specific mode ABR
Set audio stream converted channel Auto
set audio stream conversion bitrate of 400 Kbps or 128kbps
Set video stream specific encoding bitrate-based
Set video stream conversion code rate (transcoding) Kbps or kbps
Set video encoding format Xvid
Set encapsulation container AVI
Set resolution of converted files 400x-3
Set frame rate for converted files
suitable for media files that support most PDA and smartphone playback. Low-speed CPU models (CPU speed less than 400MHz)
This setting is generally suitable for most MP4 playback devices. PDA, smart phone need to install TCPMP to better support AVI and MKV format
meaning setting value
Set audio stream encoding format LAME MP3
Set audio stream sample rate 44100Hz
Set audio stream sampling channel default Yes
Set the audio stream encoding specific mode ABR
Set audio stream converted channel Auto
set audio stream conversion bitrate at $ bitrate-based
Set video stream specific encoding mode * * Setting the bitrate of the stream Set video encoding format Xvid
Set encapsulation container AVI
Sets the resolution of the converted file 320x-3
Set the frame rate of the converted file
is suitable for supporting most PDA, smartphone playback media files, High-speed CPU (CPU speed greater than or equal to 400MHz)
means setting value
Set audio stream encoding format CT aac+
Set audio stream sample rate 44100Hz
Set audio stream sampling channel default
set audio stream encoding specific mode AACplus
Set audio stream converted channel Stereo
set audio stream conversion rate (Kbps)
Set video stream specific encoding bitrate-based
Set video stream conversion bitrate up to $ kbps
Set video encoding format H264
Set Encapsulation container Matroska
Sets the resolution of the converted file 320x-3
Set the frame rate of the converted file

Suitable for saving VCD to hard drive conversion settings
Set the location to indicate the meaning of the setting value
Set the audio stream encoding format CT aac+
Set audio Stream sample rate 44100Hz
Set audio stream sampling channels by default
Set the audio stream encoding in the exact way aacplus
Set the channel Stereo after the audio stream is converted
Set audio stream Conversion bitrate
Set the video stream specific encoding method quality-based
Set video stream conversion bitrate 95
Set the video encoding format H264
Setting up the encapsulation container Matroska
Sets the resolution of the converted file 352x-3
Set the frame rate of converted files 24

Ideal for saving DVD-to-hard drive conversion settings
The meaning of the representation setting value
Set the audio stream encoding format CT aac+
Set audio Stream sample rate 44100Hz
Set audio stream sampling channels by default
Set the audio stream encoding in the exact way aacplus
Set the channel Stereo after the audio stream is converted
Set the audio stream conversion bitrate up to Kbps
Set the video stream specific encoding method bitrate-based
Set video stream conversion bitrate at
Set the video encoding format H264
Setting up the encapsulation container Matroska
Sets the resolution of the converted file 640x-3
Set the frame rate of converted files 24

6. Lossless video Encoding

Compressed, or not compressed? That's a problem. Common MPEG, WMV, RMVB and other formats are actually lossy compression, in other words, sacrificing picture quality for smaller volumes. But if not compressed, the volume of video files will be very amazing, a 60-minute DV band, if saved in AVI format, about 11GB space, storage and portability is very inconvenient. So why not try lossless compression of video files? This is not a fantasy, in fact, lossless compression video is not complex, installed on the encoder, a few steps can be completed.

I. Video lossless compression Three Musketeers

Currently commonly used lossless compression encoding/decoder has three kinds, they are corepng, HUFFYUV and MSU Lossless Video Codec, three are free software, compression ratio and compression speed can be said to be different, the following author will introduce each. These encoders are only the core, no shell, so must be called through the video conversion software, the author recommends using VirtualDub, which is a freeware, can be downloaded to http://www.skycn.com/soft/1998.html.

The above types of encoding/decoder are as follows:

MSU Lossless Video Codec:http://www.ogg.cn:8080/upload/download/msu-ls-codec.zip

Huffyuv:http://www.ogg.cn:8080/upload/download/huffyuv_220.rar

Corepng:http://www.ogg.cn:8080/upload/download/corepng-vfw-v0.8.2.exe

Which MSU Lossless Video codec and corepng can be directly run EXE executable file installation, only HUFFYUV, must be decompressed after the right click on the Huffyuv.inf file, select the pop-up menu "Install" installation, 1 shown.

Two. Actual combat lossless compression

These encoders are called in exactly the same way. Open VirtualDub, execute "file"/"Open video File" Import the video to be processed, here the author uses a 9.93MB avi video file, then select "Video"/"compress" to open the dialog box shown in 2, in the left list we can find the encoder just installed. Let's start with the MSU Lossless Video codec.

1.MSU Lossless Video Codec

Select "MSU Lossless Video Codec BETA v0.2.4", click "Configure" to open the dialog box shown in 3, the default setting of the encoder is "high compression", the software will increase the compression ratio as much as possible to preserve the image details, This setting is actually lossy, but its video quality is very high, even if the picture is magnified several times, the naked eye can hardly distinguish the difference. Of course, if your request is very high, you can also choose "low compression", so you can get 100% lossless compression video, but the video file size is relatively large, detailed comparison can be see table 1.

2.Huffyuv

Select Uffyuv v2.2.0 in the dialog shown in Figure 2, click Configure, Open the dialog box shown in 4, the option in the YUY2 compression method drop-down list affects the compression ratio the most, and the default setting is Predict median ( Best) ", at this time the compression speed is slower, but the compression ratio is highest, select" Predict left (fastest) "can greatly increase the compression speed, but will reduce the compression ratio, the comparison can be see table 2. Be sure to select "<-convert to YUY2" in the "RGB compression medhod" drop-down list, otherwise it will be illegal to play: (, "Field Threshold" can be set up to 768 lines depending on the horizontal definition of the source file.) Other options do not need to control it, click "OK" can be set to complete.

3.CorePNG

In the dialog box shown in Figure 2, select "CorePNG VFW Codec v0.8.2", click "Configure" to open the dialog box shown in 5, where the settings are many, but the most important to the compression ratio is "Compression level", the default setting is "6-normal", This is a mean setting, you can also choose "1-fastest" or "9-best", other options generally do not need to change. The compression ratios under different settings are shown in table 3.

After the above setup, execute "file"/"Save as AVI" to start the compression. Any multimedia playback tools in the system, such as Windows Media Player or MPC, and video processing software can open these AVI files directly, as long as the codec/decoder is installed.

HuffYUV-Famous, no introduction, quite fast lossless compression codec, but seems to stop developing

Download page: http://neuron2.net/www.math.berkele...rg/huffyuv.html

Alparysoft Lossless codec-alparysoft business software, if not registered in the lower right corner will have logo, even so, compression ratio is usually much higher than the HUFFYUV, the speed is good

If you are interested, download page: http://www.alparysoft.com/prod/compression/index.php

CorePNG-Do not understand, see doom9 on someone recommended, so find, compression than with Alparysoft, probably slightly better, but slow ...

Download page: http://corecodec.org/projects/corepng/

Finally, we recommend FFV1, FFMpeg Project under the development of lossless compression, so the natural ffdshow encoder part contains it, compression ratio of the largest, fast, but mostly slower than HUFFYUV, no closer look ... ^^, and it's Opensou. Rce software, free, plus ffdshow added it is easy to find, ^^

FFmpeg project:http://ffmpeg.sourceforge.net/

Ffdshow project:http://sourceforge.net/project/show...ackage_id=59355

Use ffdshow included ffv1 please download Ffdshow-20040725.exe, after installation, the VFW Selection window will have ffdshow Video Codec, in the encoder section of the dropdown option FFv1 can be selected.

Here are some small tests.

Source 1 (bink) 6,912 kb

Uncompressed 327,612 kb

HuffYUV 163,630 kb

Alparysoft Lossless 68,276 kb

CorePNG 63,934 kb

FFv1 56,918 kb

HuffYUV Needless to say, the other three tested PSNR compared with uncompressed.avi results are

Y:psnr:1. #INF 1. #INF 1. #INF

U:psnr:1. #INF 1. #INF 1. #INF

V:psnr:1. #INF 1. #INF 1. #INF

Sum:psnr:1. #INF 1. #INF 1. #INF

Minimum Average Maximum

Trustworthy alpary do not register the lower right corner will have a logo, so the comparison of the source and comparison of the object are cut 64 pixels, cut off the code after the source of the message does not have the logo-_-~!.

Still, we have such great mpeg-2/mpe-4 code, or Real Codec, why do we need a huge lossless code? For example, even if the FFV1 rate is twice times higher than the DVD's maximum bitrate.

Lossless coding is usually used to collect, very few people will use its most final finished product, and generally will be handed to the commonly used lossy coding, so lossless coding is usually just a intermediate and ^^, it will be useful when

1. Input is a freak, no third-party software support, and his own editing/coding is very poor, such as Bink ... (Sorry to say it bad), Bink actually not bad, it compression ratio is very high, but sometimes too paste, such as Ff8 CG, and no third-party software support, on its pirate don't want to go down, fortunately it also support VFW, can do code conversion, but not support XviD 2pass, compression The result seems to have no vdmod good (?).

2. For example, want to do their own gameplay, collected into non-destructive AVI and later processing, AVI so common what software is supported.

3. As intermediate, uncompressed avi is too big ... And more than 2g/4g files will not be supported by some software/file system, with FFV1 to achieve 3-6 times the compression rate and the same lossless, can save a lot of hard disk space, speed in the current mainstream configuration should also be good, why not.

4. WINDVR and POWERDVR support with MPEG-2 acquisition, but many TV capture software does not support MPEG2 encoding, if the first damage with XVID/DIVX/RV, the second if the advanced option may be slow. So it may be possible to use lossless coding, in this field HUFFYUV because its speed has been very popular, FFV1 (VLC) speed should be slower than HUFFYUV, if the machine is good to do TV capture can also try Ffv1

The above only made a test, the specific compression rate is not the only, more doom9 on the Moogie have been tested, FFV1 not every time is the best, but almost every time into three armor

Continue playing Ff8 CG ...

ps. ff8 ending theme The last three CG, add together 16:07, with FFV1 lossless compression only 1.04G, bitrate 93nn kb/s, with DVD highest rate almost flat .... Of course, Ff8 CG is actually only a few fps, or the two times its bitrate but also very good

Video encoding and encapsulation method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.