View previous topic :: View next topic |
Author |
Message |
pahud Tux's lil' helper
Joined: 26 Nov 2002 Posts: 103
|
Posted: Mon Feb 24, 2003 9:04 am Post subject: what's the least hardware requirement to play DivX/XviD |
|
|
Hello,
I have a pc with VIA/400Mhz CPU and 128MB SDRAM.
Is it possible to playback DivX or XviD with no lag under Gentoo 1.4?
What's your minimal hardware requirement to playback DivX/XviD? |
|
Back to top |
|
|
drakonite l33t
Joined: 02 Nov 2002 Posts: 768 Location: Lincoln, NE
|
Posted: Mon Feb 24, 2003 9:23 am Post subject: |
|
|
The exact requirments would change depending on the exact stream you are playing.
However I have a 400mhz celery with 192mb ram and have never had a problem playing divx except when running something cpu intensive enough that it would make my system lag anyways. _________________ Shoot Pixels Not People
My GPG/PGP Public key |
|
Back to top |
|
|
jmercer Tux's lil' helper
Joined: 15 Nov 2002 Posts: 95 Location: Newfoundland, Canada
|
Posted: Mon Feb 24, 2003 12:28 pm Post subject: |
|
|
I recently setup Gentoo on an old PII 333 MHz 128mb ram Voodoo3 pci computer I salvaged. After about a week of setup I was able to run KDE 3.1 (disgusting compile time) on it and play DivX movies with Xine over an nfs mount at 1280x1024. I'm guessing that this is pushing the lower bound of hardware req, but since I didn't notice any slowdown, I'm guessing you could put it on even skimpier hardware. 266 perhaps? If you don't need kde 3.1 I'm sure you could trim the ram back to 64mb and still be ok. |
|
Back to top |
|
|
JensZ Guru
Joined: 15 Feb 2003 Posts: 339 Location: Freiburg
|
Posted: Mon Feb 24, 2003 9:17 pm Post subject: |
|
|
I think your video card should definitly support xv, so the CPU doesn't have to scale the video. Also you should use Xvid due to speed enhencments over the original DivX codecs... |
|
Back to top |
|
|
Malakin Veteran
Joined: 14 Apr 2002 Posts: 1692 Location: Victoria BC Canada
|
Posted: Mon Feb 24, 2003 10:05 pm Post subject: |
|
|
As was said this is going to depend on the divx file a lot, I've seen some that required about an Athlon 800 to play smoothly. High quality movie rips usually require something in the 450/500 range to play smoothly so it depends on what you're going to be playing. |
|
Back to top |
|
|
zentek n00b
Joined: 03 Jul 2002 Posts: 41
|
Posted: Mon Mar 03, 2003 9:02 pm Post subject: |
|
|
With major tweaking of my system, proper flags to mplayer to drop a few frame once in a while and a few error telling that my system was 2 slow, i was able to play a DIVX from a cd on my laptop.
Pentium 166mmx, 64mb RAM and a crappy 2mb 2D video card.
Forget about fullscreen do ..... |
|
Back to top |
|
|
StrCrssd n00b
Joined: 17 Apr 2002 Posts: 68 Location: McAllen, TX USA
|
Posted: Mon Mar 03, 2003 10:22 pm Post subject: laptops and minimum |
|
|
I haven't tried on my K6-2 380, but it won't play DVD's correctly...so I don't have much hope for divx.
Has anyone gotten xvid or DVD's to play properly on a cpu of this low caliber? _________________ StrCrssd
Give a man enough rope, he'll hang himself. Teach a man to make rope, he'll hang other people. |
|
Back to top |
|
|
pahud Tux's lil' helper
Joined: 26 Nov 2002 Posts: 103
|
Posted: Tue Mar 04, 2003 3:25 am Post subject: |
|
|
I am trying to play DivX or XviD with
1. 720x480 resolution
2. 29.97 fps
3. 780 or above kbps bitrate
on a mini-itx M/B with
1. VIA Samuel 2 400Mhz CPU with 64 KB cache
2. 256MB SDRAM
3. Trident Microsystems CyberBlade/i1 VGA chip
4. Maxtor 5200RPM IDE HD
and
1. mplayer-0.90_rc2
2. divx4linux20020418-r1
3. gcc 3.2.1-r6
Well, the divx film with 720x480 resolution will cause the lag, while
480x320 will not. My question is, what is your minimal hardware
requirement to play a DivX/XviD film with 720x480 resolution?
Another question, I wonder if there's any way(hardware or software solution) to encode the movie into DivX or XviD and stream the DivX/XviD movie on-the-fly? Looks like mplayer can do this, but I wonder
if it does work. Anyone has tried this? |
|
Back to top |
|
|
drakonite l33t
Joined: 02 Nov 2002 Posts: 768 Location: Lincoln, NE
|
Posted: Tue Mar 04, 2003 4:47 am Post subject: |
|
|
pahud wrote: | I am trying to play DivX or XviD with
1. 720x480 resolution
2. 29.97 fps
3. 780 or above kbps bitrate
on a mini-itx M/B with
1. VIA Samuel 2 400Mhz CPU with 64 KB cache
2. 256MB SDRAM
3. Trident Microsystems CyberBlade/i1 VGA chip
4. Maxtor 5200RPM IDE HD
and
1. mplayer-0.90_rc2
2. divx4linux20020418-r1
3. gcc 3.2.1-r6
Well, the divx film with 720x480 resolution will cause the lag, while
480x320 will not. My question is, what is your minimal hardware
requirement to play a DivX/XviD film with 720x480 resolution?
Another question, I wonder if there's any way(hardware or software solution) to encode the movie into DivX or XviD and stream the DivX/XviD movie on-the-fly? Looks like mplayer can do this, but I wonder
if it does work. Anyone has tried this? |
I have a feeling if you had a 400mhz P2 or even a 400mhz Celery instead of the Cyrix (yea yea... it's not cyrix anymore because VIA bought them out but I don't care...) I think you could probably play back the 720x480 file.
Try closing down as much software as you can before playing the file. If you have seti@home make sure to shut it down first.
I'm kinda surprised you can't play back that file actually... Even though I have an "emerge -U world" going and have some mp3's playing my 400Mhz celery encoded 320x240 DivX off of my capture card like a champ with zero frame drop. I could be wrong about this but I'm pretty sure encoding is quite a bit more entensive than decoding. I've never had any problems playing back files either, no matter what the resolution.
If you are using anything beyond -Os for optimizations it's probably killing you by overloading your cache (64kb is not very much cache...) _________________ Shoot Pixels Not People
My GPG/PGP Public key |
|
Back to top |
|
|
pahud Tux's lil' helper
Joined: 26 Nov 2002 Posts: 103
|
Posted: Tue Mar 04, 2003 5:39 am Post subject: |
|
|
drakonite wrote: |
I have a feeling if you had a 400mhz P2 or even a 400mhz Celery instead of the Cyrix (yea yea... it's not cyrix anymore because VIA bought them out but I don't care...) I think you could probably play back the 720x480 file.
Try closing down as much software as you can before playing the file. If you have seti@home make sure to shut it down first.
|
I am not sure whether it's Cyrix or P2, but this is cat /proc/cpuinfo
Quote: | processor : 0
vendor_id : CentaurHauls
cpu family : 6
model : 7
model name : VIA Samuel 2
stepping : 3
cpu MHz : 400.028
cache size : 64 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu de tsc msr cx8 mtrr pge mmx 3dnow
bogomips : 797.90
|
according to this document, I put the flags like this in /etc/make.conf
Code: | CHOST="i586-pc-linux-gnu"
CFLAGS="-march=i586 -m3dnow -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=i586 -m3dnow -O3 -pipe -fomit-frame-pointer" |
The emerge does work, but when I run mplayer, it will return
"illegal instructions" error. So I modified flags to
Code: | CHOST="i386-pc-linux-gnu"
CFLAGS="-march=i386 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=i386 -O3 -pipe -fomit-frame-pointer" |
And the 720x480 always lags from then on.
How to set the flags correctly for this CPU and play 720x480
smoothly? |
|
Back to top |
|
|
drakonite l33t
Joined: 02 Nov 2002 Posts: 768 Location: Lincoln, NE
|
Posted: Tue Mar 04, 2003 5:59 am Post subject: |
|
|
pahud wrote: | drakonite wrote: |
I have a feeling if you had a 400mhz P2 or even a 400mhz Celery instead of the Cyrix (yea yea... it's not cyrix anymore because VIA bought them out but I don't care...) I think you could probably play back the 720x480 file.
Try closing down as much software as you can before playing the file. If you have seti@home make sure to shut it down first.
|
I am not sure whether it's Cyrix or P2, but this is cat /proc/cpuinfo
Quote: | processor : 0
vendor_id : CentaurHauls
cpu family : 6
model : 7
model name : VIA Samuel 2
stepping : 3
cpu MHz : 400.028
cache size : 64 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu de tsc msr cx8 mtrr pge mmx 3dnow
bogomips : 797.90
|
according to this document, I put the flags like this in /etc/make.conf
Code: | CHOST="i586-pc-linux-gnu"
CFLAGS="-march=i586 -m3dnow -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=i586 -m3dnow -O3 -pipe -fomit-frame-pointer" |
The emerge does work, but when I run mplayer, it will return
"illegal instructions" error. So I modified flags to
Code: | CHOST="i386-pc-linux-gnu"
CFLAGS="-march=i386 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=i386 -O3 -pipe -fomit-frame-pointer" |
And the 720x480 always lags from then on.
How to set the flags correctly for this CPU and play 720x480
smoothly? |
It's a Cyrix, not a P2. P2 is pentium 2, it's made by Intel. Cyrix was a company that made low price cpu's (that don't perform as well as name brand...), they were bought out by Via though so techincally it's a Via cpu (the core is code named Samuel 2, which was supposed to be a fairly decent one as opposed to the monstrosities that Cyrix produced in the past...)
I would think the correct CFLAGS would be:
Code: |
CFLAGS="-march=i686 -Os -pipe -fomit-frame-pointer -mmmx -m3dnow"
CXXFLAGS="${CFLAGS}"
|
But i'm not sure.
Avoid using -O3, use -Os instead. The cyrix has very little cache so using -Os should keep the code size smaller and let the computer keep it all in cache more often, which will make programs run faster than if you were using -O3. _________________ Shoot Pixels Not People
My GPG/PGP Public key |
|
Back to top |
|
|
|