Collect video playback data in MPlayer

Source: Internet
Author: User
Tags benchmark


There are-benchmark parameters in Mplayer to collect video playback data


1. Common commands

Mplayer-benchmark Foreman.avi


If you don't need video output, you can do this:

MPLAYER-BENCHMARK-VO NULL Foreman.avi


In general, we test the effect of a video decoder, and do not need audio data, then:

Mplayer-nosound-vo Null-benchmark Foreman.avi



2. Results analysis

Foreman.avi This video is finished, MPlayer will output a message similar to the following:

benchmarks:vc:97.821s vo:0.000s a:0.000s sys:7.679s = 105.500s
benchmark%: vc:92.7213% vo:0.0000% a:0.0000% sys:7.2787% = 100%

The first line is a statistic in seconds, and the second row is a percentage of statistics. The total is followed by the last equal sign of each line.

The meaning of each primary field is as follows:

VC: Time required for video decoding
VO: The time required for video output
A: The time required for audio decoding

The above is the time spent on user space program execution

Sys: Time spent in kernel space


Then: Play the video data to parse as follows:

Video decoding time is 97.821s
Video output Time is 0.000s
The audio output time is 0.000s
Time for nuclear mentality code is 7.679s
Total time is 105.500s


3. Fu Dragon (built-in godson 2E) on the actual test

Test video use news broadcast to cover a section of the Dragon Dream, MPEG4 format

Audio and video information MPlayer newspaper:

Video: [DIV3] 720x576 24bpp 25.000 fps 944.1 kbps (115.2 kbyte/s)
audio:44100 Hz, 2 ch, s16le, 1411.2 kbit/100.00% (ratio:176400->176400)


I. Mplayer-benchmark Test.avi

AO: [OSS] 44100Hz 2ch s16le (2 bytes per sample)
VO: [XV] 720x576 => 720x576 Planar YV12

a:159.7 v:159.4 a-v: 0.267 ct:6.984 3987/3987 121% 39% 2.9% 2251 0

benchmarks:vc:193.669s vo:63.772s a:4.612s sys:10.932s = 272.985s
benchmark%: vc:70.9451% vo:23.3610% a:1.6895% sys:4.0045% = 100%


Ii. Mplayer-benchmark Test.avi-vo Xvidix (using optimized video output components)

AO: [OSS] 44100Hz 2ch s16le (2 bytes per sample)
VO: [Xvidix] 720x576 => 720x576 Planar YV12

a:159.2 v:159.4 a-v: -0.287 CT:-0.040 3987/3987 44% 0% 1.3% 56 0

benchmarks:vc:71.352s vo:0.161s a:2.062s sys:96.128s = 169.704s
benchmark%: vc:42.0451% vo:0.0951% a:1.2153% sys:56.6445% = 100%


The test I spent on video output was 63.772s, accounting for 23.361% of the total time

And because the video output speed does not keep up, resulting in the test video decoding time is Test II twice times more.



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.