-
h.264 decode on slow CPUs
Having have to downgrade my system from AMD Thunderbird [email protected] to a Duron 900Mhz@1Ghz, I didn't know at the moment that one of my hobbbies (watch anime series) will be stopped
my specs 1Ghz, 256MB, Geforce4MX 64MB.
Literaly my system specs don't stop me for the most usual, surf the web, listen music, some docs withn abiword, but watching anime (usually matroska files) with the codec h.264 take all cpu. At the best case I can watch video files (specially avi)
with the cpu going to 35-55% without problems...
Later with bigger resolution videos and of course with h.264 the experience was horrible, mplayer my prefered media player (used xine, vlc..) can not help even with hard frame dropping or cache, audio out of sync, slow video, pauses on the video, and for last mplayer show me an informative text saying ... "your CPU is to slow..." with certain tips to make my experiencia more normal.
Searching, reading, tips, mplayer-hq,users comments, I prove knowing what it do the tips that mplayer always mentioned (obviusly for mplayer). The result? Hurra!!
Code:
nano ~/.mplayer/config
# Write your default config options here!
vo=xv
ao=alsa
softvol=1
vf=screenshot
lavdopts=fast=1:skiploopfilter=all
I've and know all options except the last 'lavdopts' wich make the big difference.
Before wathing a matroska video file decode with h.264 my cpu go top 100%, now the same video file my cpu go between 76-84%
what more can I ask?
After 2 hours watching the chapters of my anime, I decided to post this experiencie to help other users with similar problems.
----
*Other interesting option was lavdopts=lowres=1, but like the cpu going at 50% or less, the quality drops too. I suppose on systems more slower than mine the option for lowres is really important.
*slow systems: The standard today for computer machine go something like 2ghz, 1Gb ram. I don't try to disrespect, likewise my system is slow for standard...and works too well

*The options explication here...
fast (MPEG-2, MPEG-4, and H.264 only)
Enable optimizations which do not comply to the specification and might potentially cause problems, like simpler dequantization, simpler motion compensation, assuming use of the default quantization matrix, assuming YUV 4:2:0 and skipping a few checks to detect damaged bitstreams.
lowres=<number>[,<w>]
Decode at lower resolutions. Low resolution decoding is not supported by all codecs, and it will often result in ugly artifacts. This is not a bug, but a side effect of not decoding at full resolution.
0: disabled
1: 1/2 resolution
2: 1/4 resolution
3: 1/8 resolution
skiploopfilter=<skipvalue>
Skips the loop filter (AKA deblocking) during H.264 decoding. Since the filtered frame is supposed to be used as reference for decoding dependent frames this has a worse effect on quality than not doing deblocking on e.g. MPEG-2 video. But at least for high bitrate HDTV this provides a big speedup with no visible quality loss.
<skipvalue> can be either one of the following:
none: Never skip.
default: Skip useless processing steps (e.g. 0 size packets in AVI).
nonref: Skip frames that are not referenced (i.e. not used for decoding other frames, the error cannot "buildup").
bidir: Skip B-Frames.
nonkey: Skip all frames except keyframes.
all: Skip all frames.
Similar Threads
-
By Acorn22 in forum General Support
Replies: 1
Last Post: 03-24-2007, 03:31 PM
-
By Snorkfroken in forum Hardware & Booting
Replies: 2
Last Post: 03-14-2006, 10:43 AM
-
By m_yates in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 02-12-2004, 05:21 AM
-
By RobC in forum Networking
Replies: 3
Last Post: 02-01-2004, 04:16 PM
-
By CaffeineGamer in forum General Support
Replies: 7
Last Post: 07-08-2003, 06:14 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

IBM System X3850-X5 Server w/4x Intel Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD
$1599.99

IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5" Bay Server No RAM
$179.99

DELL POWEREDGE HP IBM SERVER XEON GOLD 5315Y 8 CORE PROCESSOR 3.2 GHZ SRKXR
$1100.00

IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon E5620
$199.99

IBM X3650 M5 5462-AC1,2 X E5-2640V3 2.6GHZ 8C, 16 GB, DUAL 750W, 2 X 1TB SERVER
$349.99

IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES
$111.70

IBM System x3550 M3 1U Server 2x Xeon E5645, 192GB RAM, 2x 300GB HDD (7944-AC1)
$150.00

IBM Power 720 8202-E4B Server - POWER7 4-Core 3GHz, 8GB, 2x 146GB HDD, 1725W PSU
$450.00

IBM X3650 M4 Server System Board 00MX553 00AM209 00Y8499 00Y8457 00D2888 00W2671
$230.00

IBM System x3755 M3 2U Rackmount Server – No Drives or Trays
$150.00