ActionScript 3.0 :: Poor Video Playing Performance?
Apr 15, 2011
I'm looking for ways to improve the video performance of FLVs. My AS3 video player plays multiple FLV videos synchronously. It can be used on the client's computer as we zipped it all up and tested it from the desktop, or from the server. The frame rate of the videos is 29FPS, it plays around 12, but drops below that regularly.
I have used both the FLVPlayback and Video Class, the video class had a slightly better FPS rate than FLVPlayback component: 1 - 2 FPS.
View 3 Replies
Similar Posts:
Nov 16, 2010
I really need your help on a project I'm doing for work. I have searched the posts but haven't been able to fix my issue. (I'm using Flash CS5 and AS3.)I've recently been given Flash + the job of creating flash presentations for flat-screen displays around the building. The movie only needs to be played on click every now and again so it isn't running 24/7 or anything.So far I've managed to create a simple vector-based movie (a couple of minutes long) and created a projector, which runs perfectly on my computer.I eventually need the exe. to run on the following computer/screen we've already bought for the job:At the moment the movie runs significantly slower on this pc, with the frame-rate struggling, especially with some movie clip zooms and alpha fades.Have you guys got any ideas what I can do to increase playback performance? Have I made any newbie mistakes? How would you maximise frame-rate performance fullscreen without losing too much quality. I've created the movie to the resolution of the screen (1366 x 768). Was this the right thing to do or should I create it smaller then blow it up?
The movie plays fine if I exit fullscreen and reduce the window to about half size. Being new to Flash, I'm afraid I don't really understand why this is the case? The processer is running high but isn't at max, and with 2GB memory I thought it would be able to cope.I've tried lowering the frame-rate from 24 to 20, turning off hardware acceleration on the projector, chopping the movie into smaller swf's to play arfter each other. Nothing seems to be making much difference with those zooms at fullscreen. I've also read that preloaders don't do much for projectors so I can't use that. Is it better to embed text with the swf or have it separate?I really would like to avoid this but, Is the only solution to re-do the movie with less zooms etc?As you can see I haven't got much scripting other than frame 1 and play movie clip commands (not shown), would creating the zooms in AS3 improve the performance? [code]
View 1 Replies
Aug 17, 2011
I have been working on a map viewer based blitting technique. As part of the map I need to draw approximately 50000 lines and performance is currently really poor.
Code: Select allvar movie:Shape = new Shape();
for( ... )
{
movie.graphics.clear();[code].....
View 2 Replies
Oct 4, 2009
I am using Flash Professional 8 and Dreamweaver 8 to maintain a website. I have just started using flash to show video highlights from high school football games which I record. Using iMovie I export the video as quicktime file and then import to flash to convert to a flash video file to post on the web site. The video coming out of iMovie has very good contrast and the quicktime movie has the same good contrast. When looking at the file in Flash the contrast changes dramatically. I becomes washed out. I am using Max OX 10.6 operating system.
View 2 Replies
May 9, 2011
I'm building a flash website where I'll show my tv commercial works. In the flash project I placed a FLVPlayback component that will play different flv videos. Those videos look very good and crispy when played in quicktime player. But when I export the swf from flash and play it the videos look bad with a lot of compression artifacts and pixelation.To show you what I exactly mean you can go to my website (url...) and click the 8th video in the scroll panel. Compare it's quality with the link to which refers the (url...)
View 1 Replies
Apr 8, 2011
Same file streamed from FMS4 (same on 3.5) with rtmp protocol has very poor quality compared to real file quality. Is there some low level configuration to do on Flash Server? Is the streaming server making some kind of transcoding before sending the stream? Or it can be Flash Player? Tried unchecking "hardware acceleration" but nothing changes. I am on a local gigabit network, so no network bottlenecks. Video seems very pixelated on the edges (not soft/antialiased). These are the file details:
[CODE]....
View 4 Replies
Jun 10, 2010
If I have a MovieClip with its "visible" property set to "false", would it aid performance to "stop()" its timeline? Or will that have no effect, since its not being rendered, anyway?
View 3 Replies
Aug 11, 2011
I am using Flex for displaying videos streamed using the Red5 server. Basically i have two perspectives - one who relays and one who receives the broadcast. On the Flex side, in the video display, the video quality is good but on the receiver side it appears pixelated. I can't find the cause. Does this have anything to do with Flex encoding of videos or any Red5 server settings?
View 1 Replies
Aug 7, 2009
I am loading an external SWF file into my main timeline. The external SWF file contains an FLV video. At a certain point in my main timeline, the SWF file loads and plays the video. Is there a way to say...
If the VIDEO (FLV) is done playing, gotoAndPlay(X)?
View 4 Replies
May 17, 2011
After a lot of head banging i'm still stuck I'm trying to deliver h.264 video over RTMP to a Flex app running on a Motorola Xoom. The BBC Iplayer, Youtube and lots of other video sites have beautiful HD video streaming without issues.
My solution currently encodes video using ffmpeg and plays fine on a desktop. But really appaulingly on the Xoom. I've tried forcing it to use h.264 baseline, and force it to use various levels. Still with no luck.
Has anyone had any luck encoding video for Flash on Android using ffmpeg and got a nice result?
View 2 Replies
Dec 16, 2011
I suppose the title says it all. I can load an external video file (FLV) and I can have it play. I also have the custom buttons made to control the clip. The only thing I have left to do is to have the main timeline move onto frame 2 once the external video reaches its end. I am using actionscript 3 and flash cs 5.5.
View 7 Replies
May 2, 2005
I've been using the "Reusable Preloader Using MovieClipLoader" from the tutorial section of this site.The only difference is that i don't use'm for preloading jpg. I load external swf files containing video. Everything works fine so far. The only problem is that the preloaded video already starts playing while preloading (at about 30%), but without showing the video.This is the code i have so far:
Code:
bar._visible = false;
border._visible = false;
this.createEmptyMovieClip("container", "100");[code].....
View 6 Replies
Jun 2, 2010
I built a timeline based player with 2 menus and many videos that you can play.The buttons move the timeline to a frame label and the video plays. The back button has a stop function built in it so the video stops playing when its hit.It plays wonderfully locally but once on a server after a few clicks it boggs down and sometimes the audio from the last video remains playing even when prompted to stop. I was pointed to use the add and remove child functions to prevent this but being very new to Flash and 100% self taught i have zero idea on how to do this. The link to the player is[url]....Even if its a link to a tutorial or something.
View 3 Replies
May 31, 2010
How can I detect when a video has finished playing a.k.a stopped playing, so I can tell flash to play the next video in an array?
This is my code:
Code: Select allvar x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();
[code]....
View 1 Replies
Aug 17, 2009
How can I detect when a video has finished playing a.k.a stopped playing, so I can tell flash to play the next video in an array?
This is my code:
Code: Select allvar x:XML = new XML();
x.ignoreWhite = true;
var urls:Array = new Array();
var desc:Array = new Array();
[Code]....
View 1 Replies
Sep 12, 2011
this is what i'm trying to accomplish; With a click on a movieclip (cannon_mc)a shot is being fired (ball_mc)
The longer mouse is down, the speed of wich the ball is fired with should increase.My question to you is;
What is the most efficient way to accomplish this? With a timer or something like this;
[Code]...
View 2 Replies
Jan 20, 2010
I have a vido page. Once I get to that page I can't navigate anywhere else unless I click the video thumbnail button and as long as the video is playing the buttons are active. I can I change this so the I don't have to click a video thumbnail button to navigate out of that page.
Code:
one.addEventListener(MouseEvent.CLICK, vid1);
two.addEventListener(MouseEvent.CLICK. vid2);
function vid1 (e:Event):void {
vidPlayer.source = "vid1.flv";
} function vid2 (e:Event):void {
[Code] .....
View 15 Replies
Aug 23, 2008
I am trying to put together a class for playing video using the Video object. So far, I have only been successful in getting the Video object to fully work when not using a class setup. In the documentation, I have read that to use the Video object you have to actually drag/create the video object onto the stage. So, in my next attempt, I created the video object onto the stage within a MovieClip but still trying to use a class/linkage setup with the Video inside inside of a MovieClip container. No luck there either. Here is the basic AS2 script that is linked to a MovieClip that contains the Video object ("video" instance) within it.
Code:
class VideoTest {
private var nc:NetConnection;
private var ns:NetStream;
[code].....
I am getting the following error with this script.
Code:
Line 14: There is no property with the name 'video'.
Line 15: There is no method with the name 'video'.
View 3 Replies
Jan 11, 2011
I'm devloping some library classes for flocking/steering behaviours on large numbers of objects (2000+). I'm finding that at < 500 instances, performance is reasonable. As the numbers increase, framerate bogs down.
I've seen remarkable performance with libraries such as Flint or Box2D with ridiculous #'s of particles / objects, so it should be possible to optimize / refactor my code to be a bit better.
I'm aware of the basic optimizations, such as bitwise operations and optimized for loops. Are there any more fundamental approaches I should be considering? For example, currently each instance is a vector-based MovieClip. Would working with BitmapData be more efficient?
View 1 Replies
Nov 4, 2011
Will I take a big hit in performance using nested ViewStacks? Should I strive to handle all navigation in one ViewStack and push children manually or will the affected performance be negligible?
eg.
<viewstack>
<tabnavigator />
<tabnavigator />
<tabnavigator />
</viewstack>
View 2 Replies
Mar 19, 2012
We have a medium size Flex 3.6 application that contains around 20 different page views (managed via a single lazy ViewStack) each having multiple components. Most use custom renderers.All model data is loaded at startup and changes to model instances are communicated via binding and/or collection change events.Once the user has viewed each page at least once, all page views are instantiated and happily listen to update events.Which in effect means that each time a model instance changes, all interested views receive that event and compute derived data or trigger item-renderers.I have tested and confirmed this behaviour in a proof-of-concept application. Even when setting a list to being invisible, it still listens to collection change events and invalidates any renderer affected.What would you do?
View 1 Replies
Aug 31, 2011
In the cosmicpanda update for youtube, you can go from a video page to the video creators profile page while your video is still playing in flash. Does anyone how Youtube accomplishes this? I would like to know if it's possible to keep the flash state of a site constant while moving from page to page on a site.It doesn't seem as if the flash is reloading, so I don't think that they are just saving cookies for the current video time and starting the video at that point when they refresh.I would assume that they're using ajax, but the application of this feature is really clean. The URL gets correctly changed to the users' profile page's URL. The back button still works as it should. (I can press back and forward between video page and user profile page and the video continues going clean and never drops.)
View 2 Replies
Jul 19, 2010
1) I want a 60 seconds video to start playing after 40 seconds have been downloaded - to do that I set the NetStream.bufferTime to 40 seconds and retrieve "NetStream.Buffer.Full" event causing the video to really start playing. This step is OK.
2) However, the "NetStream.Buffer.Full" causes data to stop downloading. So the remainder of the video begins to download no sooner than after the 40 seconds have been played. This step is my issue. Can anyone tell me how to avoid this unintended effect? (i.e. playing a video and downloading data at the same time?)
View 2 Replies
Apr 20, 2009
not got my earlier problem sorted yet (about the title contuing to loop) but have another question now! ive managed to get an audio clip into my page complete with play and stop buttons. the audio is dynamically loaded
id like to put video in and have an flv video to use. id like to dynamically load it so keep the overall file size down and have navigation buttons for the user using actionscript 3 but not sure how to do this. looked around online and getting increasingly furstrated!
View 4 Replies
Jun 4, 2010
I'm making a basic flash website, and have already created the site structure, but I'm having trouble adding FLV and SWF, as they aren't responding as I would like.
1) I have built a basic flash photo gallery, and it works great. I have exported the SWF, but when I add that to my main sites keyframe, it plays non stop, and the buttons on that embedded SWF don't work.
2) After adding a FLV video to a keyframe, it works as I would like. Except that when I click to another keyframe after starting the video, it keeps playing. How would I be able to pause/stop the video if a navigation button to other keyframes are clicked.
View 1 Replies
Jan 19, 2010
I created a video player (flvplayer component) and have one video as the source. I've had CS4 create the html and embed the video. Locally the video plays fine, however once loaded on the server the player's skin and button show up but not the video. The service provider said that they allow flash and have the MI
View 2 Replies
Jun 21, 2010
I imported a video to my FLA (cs4), and added a playhead. On my local machine the video plays fine , but when emailed to someone to test, the page with the video displays only a blank spot. Also , on my local, I have a home page, and link for video, when I do click to videos, that works, but if I click home button I made, the video sounds keeps playing. I guess making the video display would be first priority, then the make it stop when not on the page containing it would be 2nd,
View 12 Replies
Dec 12, 2010
I have some video that I uploaded and when i test movie it doesnt work. At first i had two videos on one frame and then i move one to a different layer. Initially when i uploaded them they both worked until i changed the parameters (auto play). but on the 3 frames in which I have the videos; the ones on the top doesnt play and the ones on the bottom plays.
View 4 Replies
Nov 28, 2011
I'm using Flash CS4.I just dropped an FLV file into my document and tested it.What asctionscript can I use to get it to not autoplay?Instead I would like to place the words "Click Here to play video" on top of the video so that when the user clicks on the text the video then begins to play.
View 2 Replies
Sep 17, 2010
I have an mp4 video, not sure the specific encoding outside of that, that I'm trying to play in a flvplayback component. I can get the audio to play, but for some reason there is no video. I've tried simply attaching it to the component and I've tried using a Video object and attaching a net_stream with the video in AS3. Same result. How do I fix that? If it's an encoding issue, how do I figure out what the encoding is and what software do I need to fix it?
View 1 Replies