osx playback of h264 super resource intense

macOS specific usage questions
williedigital

osx playback of h264 super resource intense

Postby williedigital » 09 Jan 2006 07:37

so, playback of h264 files on my 1.5ghz mac mini is really cpu intensive. Playing back a dvd resolution file (720x400) takes about 95% of the cpu. The same file in vlc on windows (pentium m 1.4 ghz) takes about 20% of the cpu. What gives? both machines are equipped with radeon video cards with 32mb ram (laptop a radeon 9000, mini 9200). Everything is up to date on both systems. Doesn't matter if the files were encoded with x264 or recode. I just can't figure out why the cpu use is so high under osx. Do these numbers jive with everyone else's experiences?

haifischjunge
Blank Cone
Blank Cone
Posts: 18
Joined: 07 Nov 2005 16:58
Contact:

Postby haifischjunge » 09 Jan 2006 14:53

ive already asked the same question and the answer is simple. for h264 vlc relies on ffmpeg for replay and ffmpeg is highly optimized for x86, sse, sse2.

the ffmpeg altivec parts are getting better day by day, however on my powerbook videos encoded with recode are nearly unplayable, however a memory leak that caused vlc to crash with h264 videos was fixed in the last nightlies.

but... ive found a way for playing back without hassle. in the preference you could set "skip the loop filter for h.264 decoding" to - skip all. this lowers the quality however its full playable. ive played with this setting to find a good compromise between cpu needs and quality.

poopie

Postby poopie » 09 Jan 2006 22:46

I found that lowering the "framerate" (in Preferences>Input/Codecs>Demuxers>H264) to about 16 helps a lot too. It doesn't actually lower the framerate -- the video is smooth and syncs up with the audio just fine.

haifischjunge -- where is that preference?

Guest

Postby Guest » 10 Jan 2006 08:43

it's really amazing that the performance is that poor. seems like that much of a difference between the two machines can't simply be a compiler optimization or something, but I guess that's it. Will the switch to osx86 help?

fkuehne
Developer
Developer
Posts: 7227
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Postby fkuehne » 10 Jan 2006 14:24

@ Guest: Yes, this will probably help. It's not about compiler optimisations btw.: ffmpeg uses certain velocity extensions (as mentioned: AltiVec, SSE, etc.). The SSE-units are x86 only and very well supported, while AltiVec is ppc-only and only little optimised, since most of the ffmpeg-devs are using x86-PCs.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

Godzil

VLC crashing playin h264

Postby Godzil » 18 Jan 2006 09:12

It's really seems like h264 tend to crash VLC under OS X :

I've got some MKV with h264/AAC/ASS and I use the latest VLC-Trunk (18/01/06)

Each time I try to read them I got some crashing like :

[00000291] ffmpeg decoder error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
h264.c:2610: failed assertion `pic->data[0]'

I don't have actually better crash log.. It's taken from the console, vlc seems to not writing a crashlog :/

fkuehne
Developer
Developer
Posts: 7227
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

Postby fkuehne » 18 Jan 2006 11:22

That's a typical error in case that your computer is too slow. ffmpeg's h264 decoder isn't finished. That's it does just crash then.
You might want to try out a nightly build, which could handle this a bit better, but is 10.4 only at the moment.
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 2 guests