Welcome, Guest. Please login or register.

Author Topic: Video overlay - essential for fast video playback  (Read 10541 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Akiko

  • Hero Member
  • *****
  • Join Date: Jun 2002
  • Posts: 1026
    • Show only replies by Akiko
Re: Video overlay - essential for fast video playback
« Reply #14 on: June 29, 2012, 08:44:14 PM »
It goes to show how active the mods are here now days, talk about a slippery slope.
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: Video overlay - essential for fast video playback
« Reply #15 on: June 29, 2012, 09:13:33 PM »
Quote from: Akiko;698374
It goes to show how active the mods are here now days, talk about a slippery slope.


We do have lives too, you know.
int p; // A
 

Offline klx300r

  • Amiga 1000+AmigaOne X1000
  • Hero Member
  • *****
  • Join Date: Sep 2007
  • Posts: 3261
  • Country: ca
  • Thanked: 20 times
  • Gender: Male
    • Show only replies by klx300r
    • http://mancave-ramblings.blogspot.ca/
Re: Video overlay - essential for fast video playback
« Reply #16 on: June 29, 2012, 09:31:59 PM »
@ Piru

I respect your work on MOS;however, I'll side with Hans and Karlos's opinions on modern video driver issues.
____________________________________________________________________
c64-dual sids, A1000, A1200-060@50, A4000-CSMKIII
Indivision AGA & Catweasel MK4+= Amazing
! My Master Miggies-Amiga 1000 & AmigaOne X1000 !
--- www.mancave-ramblings.blogspot.ca ---
  -AspireOS.com & Amikit- Amiga for your netbook-
***X1000- I BELIEVE *** :angel:
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: Video overlay - essential for fast video playback
« Reply #17 on: June 29, 2012, 09:38:59 PM »
Quote from: klx300r;698379
@ Piru

I respect your work on MOS;however, I'll side with Hans and Karlos's opinions on modern video driver issues.


There's not really a side to take. There's no disagreement that being able to leverage hardware assisted video playback is a good thing (TM). This is all a question of implementation detail as to best to achieve it on more recent RadeonHD cards, as the existing drivers for these cards don't have a working implementation yet.

Ultimately, that decision will be down to Hans as he's the one doing the work, so other than being an interesting discussion on the relative merit of overlay vs chromakey vs video texture, it's all a bit academic.
int p; // A
 

Offline PiruTopic starter

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Video overlay - essential for fast video playback
« Reply #18 on: June 30, 2012, 01:00:24 AM »
Quote from: klx300r;698379
@ Piru

I respect your work on MOS;however, I'll side with Hans and Karlos's opinions on modern video driver issues.

And by that comment you show your complete ignorance of the matters at hand. I hope it's that, since the alternative is even worse.
« Last Edit: June 30, 2012, 01:02:59 AM by Piru »
 

Offline stevieu

  • Jr. Member
  • **
  • Join Date: Sep 2007
  • Posts: 84
    • Show only replies by stevieu
    • http://myspace.com/stevieu83
Re: Video overlay - essential for fast video playback
« Reply #19 on: June 30, 2012, 01:39:19 AM »
Anyone for tea?! ;)

Offline magnetic

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2531
    • Show only replies by magnetic
Re: Video overlay - essential for fast video playback
« Reply #20 on: June 30, 2012, 02:39:50 AM »
klx300r

Its not about "Sides" its about facts. Kind of funny you would take sides against guys like PIru and Itix ( man I wish Frank M posted here) I mean Piru has only been coding for amiga for 15 years, no big deal.
bPlan Pegasos2 G4@1ghz
Quad Boot:Reg. MorphOS | OS4.1 U4 |Ubuntu GNU-Linux | MacOS X

Amiga 2000 Rom Switcher w/ 3.1 + 1.3 | HardFrame SCSI | CBM Ram board| A Squared LIVE! 2000 | Vlab Motion | Firecracker 24 gfx

Commodore CDTV: 68010 | ECS | 9mb Ram | SCSI -TV | 3.9 Rom | Developer EPROMs
 

Offline klx300r

  • Amiga 1000+AmigaOne X1000
  • Hero Member
  • *****
  • Join Date: Sep 2007
  • Posts: 3261
  • Country: ca
  • Thanked: 20 times
  • Gender: Male
    • Show only replies by klx300r
    • http://mancave-ramblings.blogspot.ca/
Re: Video overlay - essential for fast video playback
« Reply #21 on: June 30, 2012, 04:00:46 AM »
Quote from: Piru;698403
And by that comment you show your complete ignorance of the matters at hand. I hope it's that, since the alternative is even worse.

ah please:roflmao:why because you think it's 'essential' and other highly skilled developers think it's 'obsolete'
____________________________________________________________________
c64-dual sids, A1000, A1200-060@50, A4000-CSMKIII
Indivision AGA & Catweasel MK4+= Amazing
! My Master Miggies-Amiga 1000 & AmigaOne X1000 !
--- www.mancave-ramblings.blogspot.ca ---
  -AspireOS.com & Amikit- Amiga for your netbook-
***X1000- I BELIEVE *** :angel:
 

Offline magnetic

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2531
    • Show only replies by magnetic
Re: Video overlay - essential for fast video playback
« Reply #22 on: June 30, 2012, 04:13:35 AM »
kxl3oor

Whats humours is that you arent even considering the science behind it, as explained by many in all these threads. Instead you are taking fanboy sides..
bPlan Pegasos2 G4@1ghz
Quad Boot:Reg. MorphOS | OS4.1 U4 |Ubuntu GNU-Linux | MacOS X

Amiga 2000 Rom Switcher w/ 3.1 + 1.3 | HardFrame SCSI | CBM Ram board| A Squared LIVE! 2000 | Vlab Motion | Firecracker 24 gfx

Commodore CDTV: 68010 | ECS | 9mb Ram | SCSI -TV | 3.9 Rom | Developer EPROMs
 

Offline takemehomegrandma

  • Hero Member
  • *****
  • Join Date: Oct 2002
  • Posts: 2990
    • Show only replies by takemehomegrandma
Re: Video overlay - essential for fast video playback
« Reply #23 on: June 30, 2012, 05:11:00 AM »
Quote from: klx300r;698416
ah please:roflmao:why because you think it's 'essential' and other highly skilled developers think it's 'obsolete'


djrikki said about timberwolf: "You need to opt-in to YouTube's HTML5 programme. Videos are painfully slow though at present, but do work. Yes, cannot wait until the optimisations begin. :)"

Just guessing here, but he has no overlay, right?
MorphOS is Amiga done right! :)
 

Offline spirantho

Re: Video overlay - essential for fast video playback
« Reply #24 on: June 30, 2012, 07:23:32 AM »
Overlay is obsolete.
Textured video is a much better way of doing the same thing at the same speed.
RadeonHD cards had moved away from supporting true overlay, using textured video instead.

And just in case I also get accused of fanboyism, here's a forum entry by AMD saying exactly that:
devgurus.amd.com/thread/154009
« Last Edit: June 30, 2012, 07:26:10 AM by spirantho »
--
Ian Gledhill
ian.gledhill@btinternit.com (except it should be internEt of course...!)
Check out my shop! http://www.mutant-caterpillar.co.uk/shop/ - for 8-bit (and soon 16-bit) goodness!
 

Offline Tcheko

  • Newbie
  • *
  • Join Date: Feb 2011
  • Posts: 16
    • Show only replies by Tcheko
Re: Video overlay - essential for fast video playback
« Reply #25 on: June 30, 2012, 08:35:51 AM »
The only interesting point of overlay is offloading dumb scaling & color conversion from CPU.

Definitly not obsolete and a real usefull feature. Just have a look at any under CPU powered H264 media player. They all embbed dedicated hardware for scaling & color conversion.

Not willing to implement such defacto standart or agree its usefullness... Oh well...
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Video overlay - essential for fast video playback
« Reply #26 on: June 30, 2012, 08:42:15 AM »
Quote from: stevieu;698405
Anyone for tea?! ;)


A nice cup of Assam, drop of milk, no sugar, would be great, thanks!
int p; // A
 

Offline Zac67

  • Hero Member
  • *****
  • Join Date: Nov 2004
  • Posts: 2890
    • Show only replies by Zac67
Re: Video overlay - essential for fast video playback
« Reply #27 on: June 30, 2012, 08:49:52 AM »
Quote
Overlay is obsolete.

This very much depends on the platform in question. While traditional overlay and 3D texturing are pretty much interchangeable from the user's POV, overlay is much more efficient.

Overlay: raw video data is written once (decompression by CPU) and then read back once during display when the overlay is used in the framebuffer.

Texturing video: raw video data is written during decompression (CPU), then read back, scaled/converted and written to the framebuffer (GPU) and finally read during display (GPU).

Obviously the latter is more work, so if power or GPU bandwidth is an issue you're better off with overlay. On a desktop computer where neither is a problem it may not be worth the trouble.

(It may be possible to read the raw video just once, process it in the GPU and shove the data directly into the display pipeline, but I don't think they're using this approach.)
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show only replies by Karlos
Re: Video overlay - essential for fast video playback
« Reply #28 on: June 30, 2012, 10:18:06 AM »
Quote from: Zac67;698433
This very much depends on the platform in question. While traditional overlay and 3D texturing are pretty much interchangeable from the user's POV, overlay is much more efficient.

It's only more efficient if both options exist and and takes less time than texturing. There was a time when that was a given, but these days, thanks to the 3D arms race (of which texture fill rate one of the things that got massively ramped up) it tends not to be the case. In fact, dedicated hardware has become less and less of a feature in favour of packing as many stream processors as possible onto the die.

As I said elsewhere, video texturing has a number of additional advantages too.

Quote
Obviously the latter is more work, so if power or GPU bandwidth is an issue you're better off with overlay. On a desktop computer where neither is a problem it may not be worth the trouble.

(It may be possible to read the raw video just once, process it in the GPU and shove the data directly into the display pipeline, but I don't think they're using this approach.)

GPU <-> memory bandwidth is literally in the hundreds of GB/s these days. Even my now rather old hat G200 based card can manage ~ 105GB/s for VRAM to VRAM (read-process-write) operations and that's while it's still displaying a fully composited desktop.
int p; // A
 

Offline Fab

  • Full Member
  • ***
  • Join Date: Jun 2009
  • Posts: 217
    • Show only replies by Fab
Re: Video overlay - essential for fast video playback
« Reply #29 from previous page: June 30, 2012, 10:39:53 AM »
@karlos

Fine, and what about the practical write speed on SAM 460 PCIe bus?

Being able to write yuv 420 data instead of plain rgb24 data is twice as fast... On machines like Macs, Pegasos or AmigaOnes it's a huge speedup.