Skip to main content
July 15, 2014
Answered

Lag/Skipping frames when running 3 Netstream flv videos.

  • July 15, 2014
  • 1 reply
  • 592 views

Why do I have Lagie skipping frames videos when using Flash CS5 ,and 3 Netstream flv videos. If i just play 2 videos they work ok. It is not a CPU or Memory max reached. Videos are being download locally(cached anyway).

Conditions:

Windows 7

Flashplayer 10

With or without hardware aceleration - same experience

More than 2 netstream videos

CPU i7

8GB RAM

Geforce GTX 650

Windows Flash application (no Browser) / Windows Projector (tryed that too)

Result:

Videos all laggie and skipping frames

What I want:

- Magic way to fix the lag
- Alternative to load video (with cue point control and seek)

CODE:

3 x MovieClips containing :

var vid:Video=new Video(640,1080);

  this.addChild(vid);

  var nc:NetConnection = new NetConnection();

  nc.connect(null);

  var ns:NetStream=new NetStream(nc);

  vid.attachNetStream(ns);

ns.client = this;

ns.play("someVideo.flv");     // 10 MB video

This topic has been closed for replies.
Correct answer

That's exactly the use case. I am working with a simulation of a slot machine that after a quick entrance stops until the user turn it on. That's when video stutter.

Iam calling resume on the 3 movieclips that contain the netstream:

mc_left.ns.resume();

mc_center.ns.resume();

mc_right.ns.resume();


Problem/Bug Solved in Adobe Flash CS6 windows player!

Thanks for all your help.

1 reply

kglad
Community Expert
Community Expert
July 15, 2014

your flvs are stuttering when played locally?

July 15, 2014

Yes, until one of the vídeos stop all of them are stuttering. I think it may be with a performance issue

kglad
Community Expert
Community Expert
July 15, 2014

perform a quick test.

start (play) them all and immiately pause them all.  wait 5 seconds (using a timer for example) and then play them all. 

any problem?