FLV performance and garbage collection

I am creating a large flash site (AS3) that uses huge FLVs as transition videos from section to section. FLV are 1280x800 and scale to 1680x1050 (most of which are not displayed to users with smaller screens) and is about 5-8 seconds apiece. I encode the video using the On2 hi-def codec, VP6-S, and playback is pretty good with the native FLV players, Quicktime Quick, as well as the simple FLV playback applications developed in AS3.

The problem I am facing is that in the context of the actual site, playback is not so smooth; the frame rate is not as good as it should be, and more problematic, sometimes irritability and dropped frames occur (sometimes pausing a video for up to a quarter of a second or so). I assume this is due to garbage collection in the Flash player, which is non-deterministic and therefore difficult to check and control.

I use one instance of FLVPlayback to play the video; I originally used NetStream objects, etc., but switched to FLVPlayback for this reason . Has anyone experienced such a jerk with FLVPlayback (or, more generally, with hi-def high-definition video)? I am right that the GC is the culprit here, and if so, is there a way to prevent it during playing these system-intensive transitions?

+3
source share
3 answers

FLV/F4V - , , ( - , , cacheAsBitmap true).

F4V, FLV (, , daidai, - , ) , , . , , , .

? , , cacheAsBitmap true ( ). ( / ). , - ?

- ? , ( false).

, , , "show redrawn regions" ( ). ? - , .

- onEnterFrame /? .

30fps CG (, )? , 24 , - - , .

? , , .

. # 1.

+4

H.264 ? Flash Player , . , HD- Flash (, Youtube, Vimeo ..).

, 1080p HD YouTube , .

0

Source: https://habr.com/ru/post/1742007/


All Articles