Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Slow rendering and presentation time

1 view
Skip to first unread message

barney

unread,
Apr 3, 2011, 9:24:18 AM4/3/11
to
I'm trying to push video frames into asf writer @30fps using
presentation time - it's taking me longer than 1/30th of a second to
create each frame - the created wmv seems to render with a 'view
change rate' of once every 2 or 3 seconds; sumping to AVI instead of
WMF shows similar 'lumpiness' - what am i doing wrong?

Long Version :)

I have a DirectX model created, and this model (with shadows and blur
et al) takes a while to render - that's OK, that's expected ...

This model exposes a DirectShow source filter which I've connected to
a graph thus (video only)

DXsourceFilter -> smartT (cap)-> AVI | ASF ... smartT (prev) -> Win

(excluding some colour converters)

The idea is I would like to generate a 30fps 'movie' of this model for
consumption elsewhere - generation of each frame may well take more
than 1/30th of a second (using REF may take > 2s per frame)

I was under the impression, I could mark each frame with it's
presentation time [ie Frm0 = time0, Frm1 = time(1/30), Frm2 =
time(2/30), Frm3 = time(3/30) ... FrmN = time(N/30)], and pass it to
the encoder/compressor, irrespective of how long that frame took me to
generate, however the resulting files don't behave well ...

The AVI seems to slow down dramatically, then speed up, the WMV starts
well (for the first second or two) then proceeds to render a new view
every second or two (I haven't yet examined either stream to see what
each frame looks like)

As a sidenote, the preview window (thru the smartT) is running at the
'realtime/correct' rate

(to my small mind) this is nothing more than a format-transcoder - so
what am I doing wrong?

Any pointers or help would be greatly appreciated ...

0 new messages