[MPlayer-users] 1080p/60fps plays fine in vlc, not in mplayer

Grant emailgrant at gmail.com
Wed Dec 26 22:25:30 CET 2012


>> I usually find that mplayer has somewhat better performance than vlc,
>> but the 1080p/60fps videos produced by my Sony digital camera play
>> smoothly in vlc but without A/V sync on mplayer.  I'm comparing 'vlc
>> file.mkv' and 'mplayer file.mkv'.  Does anyone know why vlc seems to
>> be more performant than mplayer with these particular videos?
>
> Complete, uncut console output and sample missing.

Here is the console output:

$ mplayer Desktop/00006.MTS
MPlayer 1.1-4.5.4 (C) 2000-2012 MPlayer Team

Playing Desktop/00006.MTS.
libavformat version 53.32.100 (external)
TS file format detected.
VIDEO H264(pid=4113) AUDIO A52(pid=4352) SUB Teletext(pid=4608)  PROGRAM N. 1
FPS seems to be: 59.940060
Load subtitles in Desktop/
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 53.61.100 (external)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 256.0 kbit/16.67% (ratio: 32000->192000)
Selected audio codec: [ffac3] afm: ffmpeg (FFmpeg AC-3)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Unsupported PixelFormat 61
Unsupported PixelFormat 53
Unsupported PixelFormat 81
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
VO: [xv] 1920x1080 => 1920x1080 Planar YV12
A:   2.6 V:   1.9 A-V:  0.736 ct: -0.033  52/ 52 187%  6%  2.8% 50 0


           ************************************************
           **** Your system is too SLOW to play this!  ****
           ************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use the OSS emulation of ALSA.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
    e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.

A:   6.0 V:   4.3 A-V:  1.744 ct: -0.033 194/194 149%  4%  1.7% 190 0

Exiting... (Quit)

>> Does mplayer take advantage of my multi-core CPU?
>
> Certainly, if you tell mplayer that it should use them.
> (-lavdopts threads=0)
> I don't think vlc is particularly slow, but I would be very
> surprised if MPlayer isn't faster on careful comparison.
> (They use different defaults, I prefer how
> MPlayer handles multithreading.)
>
> Carl Eugen

-lavdopts threads=4 yields perfect playback.  In future versions, will
mplayer grab more than one core by default?

Any idea why vlc is doing better with this file than mplayer?

- Grant


More information about the MPlayer-users mailing list