X264 codecs-Intel IPP

Source: Internet
Author: User
1 download the Intel Xe composer 2011 evaluation version:

Http://software.intel.com/en-us/articles/intel-composer-xe/

Enter the registration information and apply for an evaluation version. Intel will send a download link to your email address.

2 raw 264 Conversion Tool

Http://www.videolan.org/developers/x264.html

x264.exe -o out.h264 my_movie.ts

3. Download and compile codecs

Http://software.intel.com/en-us/articles/intel-integrated-performance-primitives-code-samples/

Open a CMD and enter (My IPP is installed on the edisk ):

Set ipproot = E: \ Program Files \ intel \ composer Xe 2011 SP1 \ IPP

Browse the directory extracted from the sample and go

IPP-samples \ audio-video-codecs \ Application \ umc_h1__dec_con \

IPP-samples \ audio-video-codecs \ Application \ umc_video_enc_con \

Drag the sln files in these two directories to the CMD file (in fact, it is to set the environment variable ipproot when the SLN is opened)

After compilation, two EXE files are obtained:

Umc_video_enc_con.exe

Umc_h1__dec_con.exe

4 encoding test results4.1 YUV File Information

1920x1080, 2G bytes, with a title length of about 13 seconds

4.2 windows testing, 2-core, 30fps
E:\Documents and Settings\Administrator\videotest>umc_video_enc_con.exe h264 -i tvu.yuv -w 1920 -h 1080 -t 2 -o x2.h264Starting H264 encoding tvu.yuv to file x2.h264Source video width = 1920, height = 1080, frameRate = 30.00Max frames to encode = 2147483647Encoding bit rate = 5000000 bits per second0.10.20.30.40.50.60.70.80.90.100.110.120.130.140.150.160.170.180.190.200.210.220.230.240.250.260.270.280.290.300.310.320.330.340.350.360.370.380.390.400.410.420.430.440.450.460.470.480.490.500.510.520.530.540.550.560.570.580.590.600.610.620.630.640.650.660.670.680.690.700.710.720.730.740.750.760.770.780.790.800.810.Summary:    Num frames encoded = 810    Encoding Time = 278.45 sec, 2.91 fps    Overall  Time = 319.07 sec, 2.54 fps    Average CPU usage = 44.85%    Encoded Size = 17218164 bytes    Compression Ratio = 146.32    EncodedSize/ExpectedSize = 1.02

CPU usage (only one core is working, and the-T 2 parameter does not work)

4.3 Linux coding test results (4-core, FPS = 60)
localhost videotest # LD_LIBRARY_PATH=/data/intel/composer_xe_2011_sp1.10.319/ipp/lib/ia32/:/data/intel/composer_xe_2011_sp1/lib/ia32/ ./umc_video_enc_con h264 -w 1920 -h 1080 -t 4 -f 60 -i tvu.yuv420 -o tvu.yuv420.h264Starting H264 encoding tvu.yuv420 to file tvu.yuv420.h264Source video width = 1920, height = 1080, frameRate = 60.00Max frames to encode = 2147483647Encoding bit rate = 5000000 bits per second0.10.20.30.40.50.60.70.80.90.100.110.120.130.140.150.160.170.180.190.200.210.220.230.240.250.260.270.280.290.300.310.320.330.340.350.360.370.380.390.400.410.420.430.440.450.460.470.480.490.500.510.520.530.540.550.560.570.580.590.600.610.620.630.640.650.660.670.680.690.Summary:    Num frames encoded = 690    Encoding Time = 30.30 sec, 22.77 fps    Overall  Time = 31.88 sec, 21.64 fps    Average CPU usage = 0.00%    Encoded Size = 7336180 bytes    Compression Ratio = 292.55    EncodedSize/ExpectedSize = 1.02

5 decoding test environment: Windows, dual-core CPU

E:\Documents and Settings\Administrator\videotest>umc_h264_dec_con.exe -t1 -i x2.h264 -o xx2.yuv.x2.h264 31      1.1135 s.       27.8402 fps     All - 20.6545 fpsE:\Documents and Settings\Administrator\videotest>umc_h264_dec_con.exe -t2 -i x2.h264 -o xx2.yuv.x2.h264 31      0.3229 s.       95.9932 fps     All - 13.2822 fps

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.