Author Topic: Any of the video players take advantage of multi-threaded CPU's ?  (Read 2933 times)

Offline davexnet

  • Full Member
  • ***
  • Posts: 128
HI
I've seen a few articles here and there of custom versions of mplayer using the multi-threaded ffmpeg (ffmpeg-mt).

Using the supplied smplayer/mplayer my CPU maxes out at 50% when playing high-demand media files
using the xv mode. 

Is there any player within the repository that works  multi-threaded to take advantage of multi-core cpu?

Thanks for any info.
AMD64 x2 4200; 2 GB Ram; EVGA 8600GT; Biostar Geforce6100 M9 MB

Offline T6

  • Super Villain
  • ******
  • Posts: 19077
  • xmas is comming!
Re: Any of the video players take advantage of multi-threaded CPU's ?
« Reply #1 on: March 03, 2011, 01:25:32 PM »
thanks for sharing that info

never thought about that

all i know is that some video editors and video converters ask how many cores available can be used for a edit/convert task but never for a video player

since most cpus existing now when paired with a decent video card can handle 1080p with big effort, the remaining cores should be free for the system to be used for other tasks

maybe is useful for bluray playback on hard disk?
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline davexnet

  • Full Member
  • ***
  • Posts: 128
Re: Any of the video players take advantage of multi-threaded CPU's ?
« Reply #2 on: March 03, 2011, 01:31:36 PM »
Well there are certain flavors of video cards with various modes of HW acceleration.
It's nice to take advantage of it if it's there.  Some cards have limited HW acceleration,
so the next best thing is probably multi-thread in the CPU.

For example, my Nvidia 8600GT has only limited support for 1080p.
I can play these HD files better in Windows using MPC-HC.

AMD64 x2 4200; 2 GB Ram; EVGA 8600GT; Biostar Geforce6100 M9 MB

Offline spidy

  • New Friend
  • *
  • Posts: 6
Re: Any of the video players take advantage of multi-threaded CPU's ?
« Reply #3 on: March 03, 2011, 02:27:04 PM »
have you tried Pitivi video editor, Gxine, handbrake, real player, vlc media player etc?

just look in synaptic under selection choose VIDEO then you have a list of video players converters etc
 some of the video players for Linux or PC Linux OS can handle HD video or make HD dvd movies
by the way you may need a codec X264 under synaptic to convert any video to HD

also VLC media player can handle any codec thrown at it!!!

Offline davexnet

  • Full Member
  • ***
  • Posts: 128
Re: Any of the video players take advantage of multi-threaded CPU's ?
« Reply #4 on: March 03, 2011, 04:32:58 PM »
Thanks very much, I'll look into VLC, I believe multi-thread may have been added recently.

In Windows, (using Windows Media Player and CoreAVC H.264 decoder) I can play the 1080p
test file Planet Earth from Pole to Pole.  It's an incredible test.  It starts out with some sweep across the mountains
(50% cpu at that point) and opens up into this incredible scene of thousands of bird filling the whole landscape.
The detail is high, and the amount of birds increases.  (at this point the cpu is 95%).

It plays properly all the way through.  Smplayer/Mplayer single threaded is not cutting the mustard.
AMD64 x2 4200; 2 GB Ram; EVGA 8600GT; Biostar Geforce6100 M9 MB

Offline T6

  • Super Villain
  • ******
  • Posts: 19077
  • xmas is comming!
Re: Any of the video players take advantage of multi-threaded CPU's ?
« Reply #5 on: March 03, 2011, 05:27:23 PM »
could you share the video so we can test, i am interested to see how my old video card performs
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline davexnet

  • Full Member
  • ***
  • Posts: 128
Re: Any of the video players take advantage of multi-threaded CPU's ?
« Reply #6 on: March 03, 2011, 08:07:03 PM »
Sure, here it is - http://www.mediafire.com/download.php?tdukvcaj87nivn7

On my modest box (AMD64 x2 4200 / Nvidia 8600GT), I get 95% cpu (using CoreAVC)
but the CPU is reduced to 19% max if CUDA is enabled in the CoreAVC config.

Either way it works great.

CUDA seems to works better on my system (compared to DXVA in Windows)

In PCLinuxOS Smplayer uses VDPAU which I guess uses some kind of acceleration, but I don't know much about it.
It certainly doesn't work as good as CUDA in Windows.
Cheers,
Dave
AMD64 x2 4200; 2 GB Ram; EVGA 8600GT; Biostar Geforce6100 M9 MB

Offline T6

  • Super Villain
  • ******
  • Posts: 19077
  • xmas is comming!
Re: Any of the video players take advantage of multi-threaded CPU's ?
« Reply #7 on: March 03, 2011, 09:10:04 PM »
vlc hates mkv files here

mplayer could reproduce the file but reports wrong aspect ratio and also drops too many frames to be enjoyable

the codec used on this video is a cpu killer  :(

it says h.264 but not sure if it is really that
"If you wish to make an apple pie from scratch, you must first invent the universe."

Carl Sagan

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Any of the video players take advantage of multi-threaded CPU's ?
« Reply #8 on: March 04, 2011, 02:32:18 AM »
My PC does not handle HD video at all well ......  essentially not watchable.

The best results I got when testing this video was with Loopy ......  less dropped frames etc etc.

I am new to Loopy and was quite pleasantly surprised with the result.


My PC
P4 3.2Ghz Hyperthreading, 4 GB RAM, Nvidia G71 (GeForce 7900 GT/GTO)

Offline jaydot

  • Administrator
  • Super Villain
  • *****
  • Posts: 15564
  • there is no limitation on imagination
Re: Any of the video players take advantage of multi-threaded CPU's ?
« Reply #9 on: March 04, 2011, 02:39:29 AM »
you just piqued my interest with your report, just19, so much so that i gave hd a try on my new machine (quad core, 4gb ram) and it's surprisingly watchable, whereas it was impossible to watch on my multi-threaded machine.  there's no fancy graphics card in this new machine either; bog-standard onboard graphics.
PCLinuxOS  Get it?  Got it?  Good!!   8)

We don't have any millionare angels or corporate backers paying the bills here, PLEASE DONATE.
http://pclinuxos.com/?page_id=7

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Any of the video players take advantage of multi-threaded CPU's ?
« Reply #10 on: March 04, 2011, 03:00:12 AM »
you just piqued my interest with your report, just19, so much so that i gave hd a try on my new machine (quad core, 4gb ram) and it's surprisingly watchable, whereas it was impossible to watch on my multi-threaded machine.  there's no fancy graphics card in this new machine either; bog-standard onboard graphics.

Yeah ......  this is the reason I want to change my hardware soon ........  HD video is a no go area on this.

It *should* .....  but it doesn't  :(

Offline Roc4fun

  • Hero Member
  • *****
  • Posts: 620
  • The life so short, the craft so long to learn
Re: Any of the video players take advantage of multi-threaded CPU's ?
« Reply #11 on: March 04, 2011, 05:45:07 AM »
I've struggled with VDPAU and my PCLOS machine.  Core 2 Duo 2.66  Nvidia GT 220, I should be able to fully use hardware acceleration. 

This file maxes out at about 70% cpu.  SMPlayer reports it is using the correct codec  ffh264vdpau.

I tried running mplayer from the command line using this command   mplayer -vo vdpau -vc ffh264vdpau ./filename.mkv  with the same results.

My HTPC running XBMC Dharma from a USB stick uses about 12% cpu  similar hardware.

If I use Dragon player I end up using 130% cpu (100 + 30), so I'm clearly getting some value from VDPAU. 

Dave

Online Bald Brick

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6369
  • I'm going South
Re: Any of the video players take advantage of multi-threaded CPU's ?
« Reply #12 on: March 04, 2011, 07:39:14 AM »
The best results I got when testing this video was with Loopy ......  less dropped frames etc etc.

A good tip. I'd never heard about Loopy before, but I installed it, and on my box it handled the video almost perfectly.
(SMPlayer became a bit hesitant towards the end, VLC couldn't manage the end at all, and Kaffeine gave up at the very beginning.)

2xAMD Athlon 7450 (Dual Core, 2399.30MHz).
Nvidia G96 (GeForce GT 120). Hardinfo reports it as GT 120/PCI/SSE2/3DNOW!
8188MB RAM.
Feed the trolls!
They need it!

AMD Athlon 7450 Dual-Core Processor, 7.80 GiB RAM, Nvidia GeForce GT 120/PCIe/SSE2, OpenGL/ES-version: 3.3 0 NVIDIA 295.40, SBx00 Azalia (Intel HDA) soundcard, ‎Logitech B500 webcam, SAA7146 DVB card, HDDs: Seagate 250824AS, Western Digital WD10EAVS-00D

Offline Roc4fun

  • Hero Member
  • *****
  • Posts: 620
  • The life so short, the craft so long to learn
Re: Any of the video players take advantage of multi-threaded CPU's ?
« Reply #13 on: March 04, 2011, 09:23:28 AM »
Just the opposite for me.  Loopy used as much or more CPU as Dragon player and had lots of judder and dropped frames.  I don't think I was getting any hardware accelleration.

Offline davexnet

  • Full Member
  • ***
  • Posts: 128
Re: Any of the video players take advantage of multi-threaded CPU's ?
« Reply #14 on: March 04, 2011, 09:52:45 AM »
Apparently, from what I understand, Nvidia's CUDA is the best.  VDPAU and DXVA are similar.
Neither work as well as CUDA on my machine.

As I mentioned earlier, CoreAVC uses both cores of the CPU very well so if you disable CUDA,
it uses as much CPU as it can get/needs (95% on my box).

On the other hand Smplayer in pclos only uses 50% of the CPU, (no chance of playing this file like that)
hence my original point about multi-threaded player. 

ON my (relatively) old 8600GT, HW acceleration is not as advanced as some of the new cards.
For example, 720p H.264 files will play fine with HW acceleration in VDPAU and DXVA but 1080p will not - but 1080p
plays great with CUDA.

AMD64 x2 4200; 2 GB Ram; EVGA 8600GT; Biostar Geforce6100 M9 MB