Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Paul <nospam@needed.com> |
|---|---|
| Newsgroups | alt.computer |
| Subject | Re: Required CPU speed estimate please |
| Date | 2015-12-21 15:15 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <n59mg2$qvj$1@dont-email.me> (permalink) |
| References | <Wn7dy.3726$zT1.1947@fx26.iad> <n533qj$neq$1@dont-email.me> <Gpjdy.8105$Xk5.2806@fx17.iad> <n54mf3$bui$1@dont-email.me> <BFXdy.20467$8u4.7946@fx39.iad> |
Robert Baer wrote:
> Paul wrote:
>> Robert Baer wrote:
>>> Paul wrote:
>>>> Robert Baer wrote:
>>>>> I have been able to capture HDTV signals as they were driving one of
>>>>> those huge 50 inch wide TVs (mostly commercials at the time).
>>>>> 1.1Gby MP4 8:38 size, time; name=Encode_1080P_15.mp4 (name applied by
>>>>> the capture box).
>>>>> Sound is perfect, video is jerky and Process Explorer indicates 100
>>>>> percent of CPU time devoted to running the MP4.
>>>>>
>>>>> So, any (informed?) guesses as to what speed is needed?
>>>>>
>>>>
>>>> What are you playing it on ?
>>>>
>>>> Does the video card in this playback device,
>>>> have a hardware scaler ? A hardware scaler would
>>>> take a 640x480 movie and make the pixels so it
>>>> fits on a 1920x1080 screen. Without hardware to
>>>> do that, it takes 40% of a Pentium 4 to do it.
>>>> Just the scaling part, not even video decoding.
>>>>
>>>> Does the video card in this playback device,
>>>> have a built-in video decoder capable of
>>>> handling standard movie formats (DXVA 2 etc) ?
>>>> Modern video cards can do a lot of the decoding
>>>> process, so less CPU is needed.
>>>>
>>>> https://en.wikipedia.org/wiki/DirectX_Video_Acceleration
>>>>
>>>> In terms of decoder design, I've seen a range
>>>> of 10:1 in terms of CPU cycles, just for an
>>>> all-CPU based decoder. A badly written CPU-only
>>>> decoder can use 10x as many cycles as a well
>>>> written one.
>>>>
>>>> A rough estimate for a DVD is 1.5GHz. Your MP4 is a
>>>> container, and you might want to use a media analysis
>>>> tool to see what profile and codec was used.
>>>>
>>>> For example, MediaInfo. Now, I tried that once, and
>>>> for the movie I had in hand, it didn't actually
>>>> tell me all that much. Maybe you'll get lucky.
>>>>
>>>> https://upload.wikimedia.org/wikipedia/commons/9/98/MediaInfo_(2).png
>>>>
>>>> https://en.wikipedia.org/wiki/Mediainfo
>>>>
>>>> This is one I use more often, but it probably
>>>> wouldn't help all that much in this case.
>>>> As far as I know, the support for MediaInfo
>>>> is probably more recent. GSpot hasn't been
>>>> updated in quite a while.
>>>>
>>>> https://en.wikipedia.org/wiki/GSpot
>>>>
>>>> Paul
>>> Thanks; will see what MediaInfo sez.
>>> My video board is a GEForce 6200 PCI and DVDs play with no problem;
>>> all WMVs also play with no problem, and all MP4s also play decently
>>> _except_ this 1080p file (after all, it _is_ HDTV).
>>> Grumble..had thought i said what OS and CPU...OS: Win2K, CPU:AMD
>>> Athlon 64X2 dual core 5200; 2Gby RAM.
>>>
>>> Thanks again.
>>
>> Is the GEForce 6200 PCI actually on the PCI bus ?
>> The PCI bus is only good for 133MB/sec for the
>> 33Mhz 32 bit flavor. With normal burst transfer
>> limits set, it weighs in at around 110-120MB/sec.
>>
>> I've had trouble with a similar card, which sits on
>> PCI bus, and if I moved a small QuickTime movie window
>> around the screen, it would "stutter". And that was
>> a lack of PCI bus bandwidth.
>>
>> Try the math. Say I wanted 30FPS x 1920x1080x3 = about 180MB/sec.
>> Now, your screen may not be that big. But if you wanted
>> to use the hardware scaler, to scale down to fit,
>> it might not have the bandwidth for that.
>>
>> The PCI card in question, is one I bought to be used
>> when flashing the BIOS chip on a better video card.
>> So you have two video cards plugged in, the regular card
>> isn't connected to the monitor, the emergency PCI card
>> is plugged into the machine as well, and it is
>> connected to the monitor. I flashed an AGP card once,
>> while using the PCI card so I could see what I was
>> doing. And that card, also doubles as a "simulator" for
>> people with all PCI (no PCI Express) machines of a
>> bygone era. And that's how I was able to determine
>> that a lot of desktop stuff ran fine, but Apple QuickTime
>> wasn't very efficient when driving the screen, and
>> ran out of bus bandwidth.
>>
>> Even a PCI Express x1 video card (they made some), is
>> good enough for movies. Up to HD. An AGP 8x or a PCI Express x16
>> should never have a problem either (on bus bandwidth).
>>
>> The AGP cards run two protocols. For random access, a byte
>> at a time protocol, they use PCI 66MHz 32 bit or 266MB/sec
>> protocol. The true AGP speed is used for burst transfers.
>> So if the code is written to transfer in bursts, you can get
>> ~2100MB/sec. PCI Express runs just one protocol, packet
>> based. And PCI Express, the performance is limited by the
>> buffer size in the Northbridge. So if the motherboard
>> box says "4GB/sec PCI Express slot", it actually runs at
>> slightly less than 2GB/sec. If a larger static RAM was
>> inside the Northbridge, the thing could do better than
>> that.
>>
>> But regular PCI just isn't that whizzy. And will stutter
>> under the right conditions.
>>
>> Paul
> That must be the problem. My MB has an on-board NVIDIA GeForce GPU
> Northbridge supporting DirectX 9.0Shader Model 3.0 (whatever that
> means), and a NVIDIA Nforce 430Media and Communications Processor
> Southbridge (rest of description sounds like for RAID).
> I have the BIOS set to bypass that for present video board which has 3
> output ports (2 selectable at one time).
> Amazingly, this MB, bought in Oct 2008 that was "dated" then, _has_ a
> PCIE X16 slot.
> So..i will need to find a GeForce PCIE X16 board that supports up to 2
> ports (ideally SVGA type and DVI to drive HDMI).
> As long as i am going to $pend for such a board, do you have any
> suggestions?
>
Hmmm.
That sounds like it's better than something on PCI bus.
So maybe splashing out for a new card isn't going to
help that much. I think I would do some more testing
first.
*******
If you want to go shopping for a new card, you
could review these articles. I notice on NVidia,
that only the midrange or high end cards have
the highest decoder level, so you'd have to
"back off a level" to get a card at the $50 level.
https://en.wikipedia.org/wiki/Unified_Video_Decoder <--- ATI/AMD video decoder
https://en.wikipedia.org/wiki/Nvidia_PureVideo <--- NVidia video decoder
To use those, you need an OS with DXVA or DXVA 2
as part of the architecture. Which might not be
part of Win2K. Perhaps your Win7 machine would be
a candidate for it.
https://en.wikipedia.org/wiki/DirectX_Video_Acceleration
DXVA 1.0 = Win2K, WinXP overlay, VMR7, VMR9 <--- (overlay planes used)
DXVA 2.0 = Vista/W7/W8/W10
= "DXVA integrates with Media Foundation and allows
DXVA pipelines to be exposed as
Media Foundation Transforms (MFTs)."
(The difference on the overlay plane, is if you attempt
to capture a movie off the screen by doing screen
capture, the default overlay plane is most likely
to work, while trying to capture the VMR9 one
might give a "green square" instead. The same
thing happens with Adobe Flash if you turn on
hardware acceleration, your average screen cap
program will get a colored square instead of the
video, so you have to switch off hardware acceleration
to do capture.)
Next, the player application has to be able to
use DXVA. if a program has its own CPU-based
decoder, then it would be as slow as before (as
the CPU would be doing all the work). This means
that freeware players made in someones basement,
might not be all that efficient.
Just about any of those cards would have a hardware
scaler, so making the image fill the screen is
"for free" with respect to wasting CPU on that
step.
And with a PCI Express x16 interface, the bus
bandwidth is no longer a problem.
*******
You could also try video playback of the movie
in question using a Linux LiveCD, just to see
if it is some sort of software problem in Windows.
Which is an alternative way to test. On Linux,
this is an example of the library/interface used.
https://en.wikipedia.org/wiki/VDPAU
The VDPAU interface is to be implemented by device
drivers to offer end-user software, such as VLC
media player or GStreamer.
So maybe we should be looking at VLC (available
for Windows and Linux), to see what hardware
acceleration it uses. I just can't keep up with
the acronyms. The fifth item down suggests
VLC uses DXVA 2 related materials via
Media Foundation Transform decoding pipeline.
http://www.videolan.org/vlc/releases/2.2.1.html
Acceleration
* GPU 0-copy decoding-rendering for Android using MediaCodec
* GPU accelerated auto-rotation, in OpenGL, Direct3D and Mediacodec
--> * GPU 0-copy decoding-rendering for Linux using VDPAU
* Support for HLSL shaders in Direct3D video output
--> * Media Foundation Transform audio and video decoder for Windows Vista/7
* GPU 0-copy decoding-rendering for RaspberryPi using MMAL
* OpenMAX IL improvements for Android, Linux and rPi
* Support GStreamer codecs on Linux
So that's an example of checking an application for
hardware acceleration support. And not really
being sure whether it's there or not (that's
how these things work, the "not being sure" part).
Paul
Back to alt.computer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Required CPU speed estimate please Robert Baer <robertbaer@localnet.com> - 2015-12-18 23:08 -0800
Re: Required CPU speed estimate please Paul <nospam@needed.com> - 2015-12-19 03:19 -0500
Re: Required CPU speed estimate please Robert Baer <robertbaer@localnet.com> - 2015-12-19 12:49 -0800
Re: Required CPU speed estimate please Paul <nospam@needed.com> - 2015-12-19 17:44 -0500
Re: Required CPU speed estimate please Robert Baer <robertbaer@localnet.com> - 2015-12-21 10:37 -0800
Re: Required CPU speed estimate please Paul <nospam@needed.com> - 2015-12-21 15:15 -0500
Re: Required CPU speed estimate please Robert Baer <robertbaer@localnet.com> - 2015-12-21 12:22 -0800
Re: Required CPU speed estimate please Robert Baer <robertbaer@localnet.com> - 2015-12-21 21:16 -0800
Re: Required CPU speed estimate please Paul <nospam@needed.com> - 2015-12-22 01:13 -0500
Re: Required CPU speed estimate please Robert Baer <robertbaer@localnet.com> - 2015-12-23 16:53 -0800
Re: Required CPU speed estimate please Paul <nospam@needed.com> - 2015-12-23 21:55 -0500
csiph-web