[MPlayer-users] playing HD movies with mplayer
Galen
galenz at zinkconsulting.com
Thu May 29 21:00:32 CEST 2008
CoreAVC is way more efficient than libavcodec for playback
performance, plus I believe it handles threading automagically, even
to some extent with non-sliced video content.
To improve playback performance with mplayer, you could try passing
the fast option to libavcodec, it might help a little. You can also
pass threads=4, and if the video is 'sliced' properly, you will be
able to spread the load across cores. This will almost certainly
resolve your issues if your content is sliced. Use a cpu monitoring
app to see how cores are loaded.
If it's any consolation, I have a core 2 quad 3.2 ghz intel machine
with a 1.6 ghz FSB (would generally be thought to be noticeably faster
than your CPU) that cannot play many 1080p H.264 off-the-air transport
streams on a single core. I even sometimes have trouble with using two
cores. I need to use three or four to get flawless performance at all
times. Thankfully, the streams in question are sliced into at least
four slices, so libavcodec can smoothly thread them across my four
cores.
There is a project that integrates CoreAVC decoding into MPlayer,
though you need to have a copy of the CoreAVC codec (which you seem to
have.) I would suggest you look into it if the above suggestions do
not help. I think you can also get CorePlayer for Linux now, but
that's a whole closed source app you may not wish to use.
-Galen
On May 29, 2008, at 11:42 AM, Andreas Meier wrote:
> I'm trying to play some HD movies with mplayer.
> All of the mvoies play fine with WMP11 + CoreAVC using an AMD
> XP5000+ by about 60% CPU load.
>
> On my linux box I always end up with the famous "Too many video
> packets in the buffer"
> error message:
>
> MPlayer dev-SVN-r26920-4.3.0 (C) 2000-2008 MPlayer Team
> CPU: AMD Phenom(tm) 9850 Quad-Core Processor (Family: 16, Model: 2,
> Stepping: 3)
> CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
> Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2
> 115 audio & 237 video codecs
>
> Playing /usr/media/movies/Brad Bird/Brad Bird - Ratatouille (2007)
> [en,de].mpg.
> TS file format detected.
> VIDEO H264(pid=4113) AUDIO A52(pid=4353) NO SUBS (yet)! PROGRAM N. 1
> FPS seems to be: 23.976025
> [VO_XV] Using Xv Adaptor #0 (NV17 Video Texture)
> =
> =
> =
> =
> ======================================================================
> Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
> Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
> =
> =
> =
> =
> ======================================================================
> =
> =
> =
> =
> ======================================================================
> Opening audio decoder: [liba52] AC3 decoding with liba52
> Using SSE optimized IMDCT transform
> Using MMX optimized resampler
> AUDIO: 48000 Hz, 2 ch, s16le, 640.0 kbit/41.67% (ratio: 80000->192000)
> Selected audio codec: [a52] afm: liba52 (AC3-liba52)
> =
> =
> =
> =
> ======================================================================
> [AO SDL] Samplerate: 48000Hz Channels: Stereo Format s16le
> AO: [sdl] 48000Hz 2ch s16le (2 bytes per sample)
> Starting playback...
> [h264 @ 0x88a3550]brainfart cropping not supported, this could look
> slightly wrong ...
> VDec: vo config request - 1920 x 1080 (preferred colorspace: Planar
> YV12)
> VDec: using Planar YV12 as output csp (no 0)
> Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
> VO: [xv] 1920x1080 => 1920x1080 Planar YV12
> [h264 @ 0x88a3550]concealing 0 DC, 0 AC, 0 MV errors 6% 8.0% 243 0
> [h264 @ 0x88a3550]concealing 0 DC, 0 AC, 0 MV errors3% 6% 8.7% 441 0
> A: 63.6 V: 63.6 A-V: 0.016 ct: -0.098 1245/1245 83% 6% 8.7% 471 0
> Too many video packets in the buffer: (48 in 8425391 bytes).
> Maybe you are playing a non-interleaved stream/file or the codec
> failed?
> For AVI files, try to force non-interleaved mode with the -ni option.
> A: 63.7 V: 63.8 A-V: -0.112 ct: -0.101 1247/1247 83% 6% 8.7% 471 0
> Too many video packets in the buffer: (48 in 8463391 bytes).
> Maybe you are playing a non-interleaved stream/file or the codec
> failed?
> For AVI files, try to force non-interleaved mode with the -ni option.
> A: 63.8 V: 63.7 A-V: 0.017 ct: -0.099 1248/1248 83% 6% 8.7% 471 0
> Too many video packets in the buffer: (48 in 8482267 bytes).
> Maybe you are playing a non-interleaved stream/file or the codec
> failed?
> For AVI files, try to force non-interleaved mode with the -ni option.
> A: 63.8 V: 63.8 A-V: 0.016 ct: -0.098 1249/1249 83% 6% 8.8% 471 0
> Too many video packets in the buffer: (48 in 8496639 bytes).
> Maybe you are playing a non-interleaved stream/file or the codec
> failed?
> For AVI files, try to force non-interleaved mode with the -ni option.
> ....
>
> Sometimes I get a warning that my CPU is too slow ?!? and some
> additional hints what to do.
> All of them did not really help.
>
> So my question is: is there anyone on the list who can confirm, that
> it is possible
> to watch HD-movies with mplayer without having to use a mainframe ?
>
>
>
> --
> Super-Aktion nur in der GMX Spieleflat: 10 Tage für 1 Euro.
> Über 180 Spiele downloaden: http://flat.games.gmx.de
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
More information about the MPlayer-users
mailing list