[MPlayer-users] video out of sync(video_out cpu usage is high)

Yogesh Tyagi yogesh.bit2006 at gmail.com
Mon Jul 30 15:36:53 CEST 2012


On Mon, Jul 30, 2012 at 2:48 PM, Andy Furniss <andyqos at ukfsn.org> wrote:

> Yogesh Tyagi wrote:
>
>> it no longer says "Shared memory not supported Reverting to normal Xlib"
>> neither it is showing any information about "XImage/Shm" in the output.
>>
>
> You would need to use mplayer -v to see "XImage/Shm".
>
> Please reply to posts like I do here - with the text below not on top.
>
> Hi,
 with mplayer -v option it shows XImage/Shm in the log.

my mplayer produces following log:

./mplayer -v simpson_1920x800.mp4

MPlayer SVN-r34578-4.6.3 (C) 2000-2012 MPlayer Team
CPU vendor name: GenuineIntel  max cpuid level: 10
CPU: Intel(R) Atom(TM) CPU  315   @ 1.20GHz (Family: 6, Model: 54,
Stepping: 2)
extended cpuid-level: 8
extended cache-info: 33579072
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNowExt: 0 SSE: 1 SSE2: 1 SSSE3: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2 SSSE3 CMOV
get_path('codecs.conf') -> '/root/.mplayer/codecs.conf'
Reading optional codecs config file /root/.mplayer/codecs.conf: No such
file or directory
Reading optional codecs config file /usr/local/etc/mplayer/codecs.conf: No
such file or directory
Using built-in default codecs.conf.
get_path('font/font.desc') -> '/root/.mplayer/font/font.desc'
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
Configuration: --extra-cflags=-g --extra-cflags=-I/usr/include/linux_user
--extra-libs=-lffmpeg_plugin --extra-libs=-lismd_core
CommandLine: '-v' 'simpson_1920x800.mp4'
Using nanosleep() timing
get_path('input.conf') -> '/root/.mplayer/input.conf'
Reading optional input config file /root/.mplayer/input.conf: No such file
or directory
Reading optional input config file /usr/local/etc/mplayer/input.conf: No
such file or directory
Falling back on default (hardcoded) input config
get_path('simpson_1920x800.mp4.conf') ->
'/root/.mplayer/simpson_1920x800.mp4.conf'

Playing simpson_1920x800.mp4.
get_path('sub/') -> '/root/.mplayer/sub/'
[file] File size is 126284426 bytes
STREAM: [file] simpson_1920x800.mp4
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
libavformat version 53.29.100 (internal)
Configuration: --enable-gpl --enable-postproc
LAVF_check: QuickTime/MPEG-4/Motion JPEG 2000 format
libavformat file format detected.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x8a1c600]ISO: File Type Major Brand: isom
[h264 @ 0x8a8c300]err{or,}_recognition separate: 1; 1
[h264 @ 0x8a8c300]err{or,}_recognition combined: 1; 10001
[aac @ 0x8a8c300]err{or,}_recognition separate: 1; 1
[aac @ 0x8a8c300]err{or,}_recognition combined: 1; 10001
[aac @ 0x8a8c300]Unsupported bit depth: 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x8a1c600]All info found
==> Found video stream: 0
======= VIDEO Format ======
  biSize 79
  biWidth 1920
  biHeight 800
  biPlanes 0
  biBitCount 24
  biCompression 875967048='H264'
  biSizeImage 4608000
Unknown extra header dump: [1] [64] [0] [29] [ff] [e1] [0] [18] [67] [64]
[0] [29] [ac] [34] [e5] [1] [e0] [19] [68] [40] [0] [65] [d3] [c0] [13]
[12] [d0] [23] [c6] [c] [45] [80] [1] [0] [4] [68] [ee] [bc] [b0]
===========================
[lavf] stream 0: video (h264), -vid 0
==> Found audio stream: 1
======= WAVE Format =======
Format Tag: 20557 (0x504D)
Channels: 2
Samplerate: 44100
avg byte/sec: 16009
Block align: 1
bits/sample: 16
cbSize: 5
Unknown extra header dump: [12] [10] [56] [e5] [0]
==========================================================================
[lavf] stream 1: audio (aac), -aid 0, -alang und
LAVF: 1 audio and 1 video streams found
LAVF: build 3480932
VIDEO:  [H264]  1920x800  24bpp  23.976 fps  7234.8 kbps (883.1 kbyte/s)
[V] filefmt:44  fourcc:0x34363248  size:1920x800  fps:23.976  ftime:=0.0417
Clip info:
 major_brand: isom
 minor_version: 1
 compatible_brands: isomavc1
 creation_time: 2007-05-15 06:55:40
 genre: Trailer
 artist: 20th Century Fox
 title: The Simpsons Movie - Trailer
 date: 2007
Load subtitles in ./
get_path('sub/') -> '/root/.mplayer/sub/'
X11 opening display: :0.0
vo: X11 color mask:  FFFFFF  (R:FF0000 G:FF00 B:FF)
vo: X11 running at 1280x720 with depth 24 and 32 bpp (":0.0" => local
display)
[x11] Detected wm supports NetWM.
[x11] Detected wm supports FULLSCREEN state.
[x11] Detected wm supports ABOVE state.
[x11] Detected wm supports BELOW state.
[x11] Current fstype setting honours FULLSCREEN ABOVE BELOW X atoms
Disabling DPMS
DPMSDisable stat: 1
[gl] GLX chose visual with ID 0xee
Successfully enabled DPMS
Disabling DPMS
DPMSDisable stat: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 53.55.105 (internal)
Configuration: --enable-gpl --enable-postproc
[h264 @ 0x8a8c300]err{or,}_recognition separate: 2; 1
[h264 @ 0x8a8c300]err{or,}_recognition combined: 2; 30001
INFO: libavcodec init OK!
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
dec_audio: Allocating 192000 + 131072 = 323072 bytes for output buffer.
FFmpeg's libavcodec audio codec
[aac @ 0x8a8c300]err{or,}_recognition separate: 1; 1
[aac @ 0x8a8c300]err{or,}_recognition combined: 1; 10001
[aac @ 0x8a8c300]Unsupported bit depth: 0
INFO: libavcodec "aac" init OK!
AUDIO: 44100 Hz, 2 ch, s16le, 128.1 kbit/9.08% (ratio: 16009->176400)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[dummy] Was reinitialized: 44100Hz/2ch/s16le
Trying every known audio driver...
ao2: 44100 Hz  2 chans  s16le
audio_setup: using '/dev/dsp' dsp device
audio_setup: using '/dev/mixer' mixer device
audio_setup: using 'pcm' mixer device
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or
directory
alsa-init: requested format: 44100 Hz, 2 channels, 9
alsa-init: using ALSA 1.0.24
alsa-init: setup for 1/2 channel(s)
alsa-init: using device default
alsa-init: pcm opened in blocking mode
alsa-init: got buffersize=88200
alsa-init: got period size 1378
alsa: 44100 Hz/2 channels/4 bpf/88200 bytes buffer/Signed 16 bit Little
Endian
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
AO: Description: ALSA-0.9.x-1.x audio output
AO: Author: Alex Beregszaszi, Zsolt Barat <joy at streamminister.de>
AO: Comment: under development
Building audio filter chain for 44100Hz/2ch/s16le -> 44100Hz/2ch/s16le...
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[dummy] Was reinitialized: 44100Hz/2ch/s16le
Starting playback...
Increasing filtered audio buffer size from 0 to 90240
[ffmpeg] aspect_ratio: 0.000000
VDec: vo config request - 1920 x 800 (preferred colorspace: Planar YV12)
Trying filter chain: vo
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO Config (1920x800->1920x800,flags=0,'MPlayer',0x32315659)
VO: [x11] 1920x800 => 1920x800 Planar YV12
VO: Description: X11 ( XImage/Shm )
VO: Author: Aaron Holtzman <aholtzma at ess.engr.uvic.ca>
Sharing memory.
[swscaler @ 0x8a0ba00]using unscaled yuv420p -> bgra special converter
*** [vo] Exporting mp_image_t, 1920x800x12bpp YUV planar, 2304000 bytes
A:   3.0 V:   3.0 A-V:  0.000 ct:  0.007   0/  0 33% 49%  1.5% 28
0


MPlayer interrupted by signal 2 in module: sleep_timer
A:   3.0 V:   3.0 A-V: -0.001 ct:  0.007   0/  0 33% 49%  1.5% 28
0
Uninit audio filters...
[libaf] Removing filter dummy
Uninit audio: ffmpeg
Uninit video: ffmpeg
Successfully enabled DPMS
alsa-uninit: pcm closed
vo: uninit ...

Exiting... (Quit)


my mplayer shows no video with "-vo gl_nosw" option. It says "Error
opening/initializing the selected video_out (-vo) device"

Regards,
Yogesh


More information about the MPlayer-users mailing list