ActionScript 3.0 :: Stream And Play Back Concurrently While Staying In Sync (concurrent Playback - Buffering Percentage)?

Nov 15, 2010

I have two identical-length videos that I need to stream and play back concurrently while staying in sync. The best I can do so far is keep them about a second apart, but I'm wondering if there's a way to force them to actually stay in perfect sync? Oh yeah: I'm using AS3. (Ideally, I'd just have a series of JPGs instead of the second video and load the relevant image via cuePoint, but that aspect is out of my control.)

Second, what's the best/ideal method of knowing what I can only think of as "percent buffered"? These videos I'm loading are hosted on a Flash Media Server (which I don't have control over or access to, short of loading files from it), and while bytesLoaded/Total works for progressive stuff, I know it doesn't work for streamed stuff. Full disclosure: I know very little about working with serving video in Flash (obvious, I'm sure)(I'm not using the FLVPlayback component.)

View 3 Replies


Similar Posts:


Media Server :: Stale Image From Earlier Playback After Close The Stream And Play Another Name

Jul 8, 2010

I don't think there is much to add to the subject. It is a bug, anyhow. Let's say I am playing content from publisher which is displayed in a video. I then close the stream, and issue a play call for content B on this same stream object. If publisher B is slow enough (no new data arrives for a short while), I manage to catch a glimpse of OLD UNRELATED content from publisher A! Why is this, and is there anything I can do about it? By the way Video.clear is broken in Flash Player 10, and that's public knowledge. However, I am not sure the clear method alleviates the problem. Even if you clear the video, the stale data appears afterwards anyway.

View 1 Replies

Stream - Play Back A RTSP In Flash

Nov 14, 2011

I have an IP camera streaming video through RTSP, and I am able to pick up the stream in VLC [URL]. What I need now is a way to show this stream in a Flash application I am developing (probably through the FLVPlayback component?). This means I need a way to "convert" or transcode the RSTP stream to a format supported by Flash, live.

I searched around but couldn't find any conclusive answers... Should I use VLC to transcode the video stream? Something with Adobe Media Server? Is ffmpeg an option here? I have no clue where to start or which option is most suited in this case.

View 1 Replies

Media Server :: Client Is Not Able Play Back The Live Stream From The FMS(Error 1009)?

Jul 13, 2011

I am publishing video content to FMS with my program to livepkgr application. After i start publishing the vidoe content, files like .bootstrap, .conrol, .f4f and .meta  are gettign created inside the livepkgr folder's my stream folder. But when i try to playback via OSMF player, the player is throwing error 1009. This happens for some few minutes. After some 4-5 minutes, the player start playing the live video content properly  (.f4f file size is not getting updated for those few 4-5 minutes)

View 2 Replies

Media Server :: Playback When Using Stream.play("mp3:file") - Bitrate Conversion

May 16, 2011

I'm trying to setup a server-side playlist for playing back mp3 files, though I stumble into a weird FMS behaviour. I'm using latest FMS 4.0.2 Here is how I try to publish the stream (Server-side ActionScript):

[CODE]....

On the client side, I try to play it using NetStream.play("boo"). Though, the sound quality I get is really weird. The sound goes slower and faster and stops for a split of a second. It may play properly for a couple of seconds, but that's all. Sounds like a decoder problem to me, or a bitrate conversion problem. When I play the stream with NetStream.play("mp3:rhcp") the playback goes smoothly. I've tried several mp3 files with different bitrates, but they all have the same problem.

View 3 Replies

Media Server :: FMS Static HD Video Playback Buffering

May 18, 2010

I have downloaded and installed the Flash Media Server (FMS) trial version. Just purchased the software today and waiting for the activation serial number. I created a video gallery - [URL]. My goal is for these videos to stream just like vimeo. I am only using HD 1280 x 720 video. All videos are between 25 to 125 MB in size, originally .mov files converted to .flv using FFMPEG. Videos are between 30 seconds to 58 seconds in length.

I am using ColdFusion to upload and organize my videos and I have configured FMS to work with CF. The Issue is that these videos buffer the same way they did when I didn't have FMS installed. Press play, the video buffers, the video plays, then stops to buffer again. Stop and Buffer, Stop and Buffer. I can understand if there is buffering at the start of the video but not throughout. When I start the video over from the start, it has to buffer all over again!

View 2 Replies

ActionScript 2.0 :: Sync MovieClip Animation With Flv Playback?

Dec 7, 2011

my as2 chops are minimal (as3 are non existent) but i have been animating in flash for a while.

I have a movie with an imported flv I made in AfterEffects. I have 2 movieClips that need to animate at certain times during the playback. I was able to add cuePoints in media encoder (i think) but can't figure out how to use them in flash.

View 1 Replies

ActionScript 3.0 :: Know When Live Stream Starts Buffering?

Sep 9, 2011

Is it possible to know when live stream starts buffering? Net status events that are connected to buffering (like NetStream.Buffer.Empty, NetStream.Buffer.Full) doesn't work I am using FMS 4.

View 2 Replies

IDE :: CS5 Audio Sync - Stream Sounds On Long Timeline?

May 13, 2011

I have a long timeline (5000+ frames) with cartoon animation and streaming dialogue sound on it. I've run into the dreaded audio sync problem. I found many discussions, peaking around 2005, but no solutions for this problem. I have a track of silence to ensure frame-dropping even between lines of dialogue. Prior to around 2000 frames the error is not noticeable.

My testing shows that playback is off by 2 frames per 1000 at 24fps. So at frame 10,000 the audio is out of sync with the graphics by 20 frames, nearly a second. This is predictable and reproducible on a variety of PCs and an iMac. I'm publishing to Flash 8 + AS2, but publishing to Flash 9 or Flash 10 don't make any difference at all.

I don't want to split this into multiple SWFs. Scenes don't help. Putting things into multiple movieclips would complicate my controls and our workflow. Just shifting the audio on the timeline is preferable to those solutions, but it makes maintenance difficult.

View 4 Replies

Media Server :: Audio Several Seconds Out Of Sync With Live Video Stream

Jan 4, 2012

I did a live stream last week using 282,482,832,1500Kbps streams. What would cause the audio to get out of sync with the live video stream? I'm trying to determine if it was bandwidth related, cpu/memory issue on the FMIS 4.5 server, or an issue with encoding PC exceeding it's limits?

View 3 Replies

Actionscript 3 :: HTML: Start Sound Playback From URL Mid-file Without Buffering All Sound Data To That Point?

Nov 21, 2010

I have a long mp3 file hosted on a standard apache server (30 minutes long so far, but I would like it to work with longer sounds too).I'd like to start playback of this audio within at a specified point. When attempting to use Flash Actionscript 3, my basic tests show that ALL the audio from the start to the position I choose is buffered before playback (Sound.bytesLoaded was my friend here). If I start one second in, it takes about 3 seconds to start playback, 30 seconds in, takes about 25 secondsObviously with a really long mp3, like skipping playback to the middle of a 3-hour audiobook, this isn't going to be practical.Here's the ActionScript 3.0 code I'm using:

button.addEventListener(MouseEvent.MOUSE_DOWN, function():void {
var s:Sound = new Sound();
var req:URLRequest = new URLRequest("http://example.com/audio.mp3");

[code].....

View 1 Replies

ActionScript 2.0 :: Buffering - Play The File After 20% Is Loaded

Nov 26, 2003

i made a little buffer script for dynamically loaded mp3s. it's supposed to play the file after 20% is loaded (these files are a couple of MB). anyway, it doesn't play after it's buffered to the 20%. works when i just test movie in flash. doesn't work when i test "streaming" in flash. here's my buff script, etc. let me know if you need anymore info...

[Code]...

View 10 Replies

Media Server :: Access Log- Stream Play & Stream Stop?

May 24, 2010

I have recently installed FMIS 3.5.3. In checking the access logs I find data in both logs that display the same stream stop and stream play time .I'm not sure why the time is the same (00:19:27 example below). Videos play fine when testing from work (T3 connection). However, occasionally a very slight hesitation when playing video from home (I have cable connection). [code]...

View 4 Replies

IDE :: SWF - Stream Playback Or Full Download?

Nov 20, 2008

I have sort of a general Flash question. Are swf's supposed to start playing back only once the entire file has been downloaded to the client machine, or start "streaming playback" just as soon as the client has downloaded enough data to start playing at all. Let's say I have a 20mb file. Here's what I've noticed: Firefox 3 starts playing back the file right away, only having downloaded a small percentage of the file - essentially offering "streaming" playback. Internet explorer 7, on the other hand, seems to wait for the entire swf to be downloaded before it starts.

This is a problem for me because it's about a 30 second wait for anyone trying to view the files on IE, while on Firefox, they start up within a few seconds. I tried putting in a preloader, but that slows things down considerably on Firefox, because now instead of streaming, even the Firefox users have to wait for the entire file to download before they can begin viewing it. To see what I'm talking about for yourself, click this link in both IE and Firefox and see the difference.

View 1 Replies

ActionScript 3.0 :: Play 2 FLVPlayback In Sync?

Sep 15, 2010

I didn't find any solution in the past discussions, I want to sync two FLVPlayback in the stage.Now I quickly solved with a Countdown of about 10sec;one can choose a project from a ComboBox and the two FLV play when the countdown reaches 1. That's not the right way as they never play in sync the first time..
 
I think a BufferingBar can do the job, detecting the end of the buffer. but I don't know the code to add...
 
This is the code I use with the Countdown: 
 
cb.addEventListener(Event.CHANGE, changeHandler);function changeHandler(event:Event):void {   if(ComboBox(event.target).selectedItem.data != "")

[Code]...

View 15 Replies

Automatically Start Buffering, But Don't Play Until Button Is Manually Clicked?

May 25, 2009

I'm trying to accomplish two things:
 
1)  Have an swf file automatically start buffering as soon as the webpage loads, without it also auto-playing the video.

2)  Implimenting a 'youtube' style play button which will manually start the playback (regardless of how much of the video has been buffered).
 
P.S.  I'm using CS4 if that matters.  I have a pretty solid html/photoshop/video background, but flash is almost entirely new to me.

P.P.S.  I'd like this to be compatible with older versions of the flash player as well, if at all possible.

View 3 Replies

Media Server :: Start Buffering And Fetch Meta Without .play()?

Nov 22, 2010

I want to get the meta from an FMS server and start buffering (really I just want the first frame).  Is there any way to do this other than calling play() and waiting for meta to call pause?

View 2 Replies

ActionScript 3.0 :: Audio Synchronization - If The Audio Were On The Timeline You Could Set Sync Params To Stream?

Mar 11, 2010

Because the player optimizes framerate, antialiasing etc dependent on the performance capabilities of the platform upon which it is running, it was nearly impossible to ensure animation syncronization w/ audio. If the audio were on the timeline you could set sync params to stream, but if the audio is loaded programically forget it .. well until AS3 ..The following code throttles the player framerate to lock step the animation to the audio .. not perfect but the principal works ..

View 1 Replies

Media Server :: Recording Stream From Webcam As F4V Playback

Mar 23, 2010

I'm recording a stream from a webcam as an f4v file using FMS 3.5. The file is created in the live folder, and i can stream it back to the client no problem, however when I try to play the file in Adobe Media Player (or anything else) it won't play. I've used the f4v post processor which claims to run successfully, but with no joy.

View 5 Replies

ActionScript 2.0 :: CS5 - Make Beat And Music Play In Sync?

May 26, 2011

I have two different .wav loops. One is just the tune, and one is the beat. And when they play together right on each other in sync, it sounds great.I have a button on the stage. I want it so that the tune is playing by itself at first, but when hovering over the button, the beat comes in. And when hovering off the button, the beat disappears. The problem is, I don't know how to keep them in sync. The beat and tune get all off when I make it so that on hover it plays the beat.

View 1 Replies

Media Server :: Play Multiple Videos In Sync?

Jul 20, 2011

I need to build a website which shows multiple instruments in a band, being played in sync.  Each camera/video block is a different instrument, and played together, they constitute an entire band.  I have been searching high and low for ways to do this, and it definitely appears that HTML5 is out.  It looks like standard FLV progressive download is out, too, because it's impossible to get 4-8 videos to sync perfectly.
 
I see on the FMS page that it has some abilities in synching.  How would one (conceptually) go about making a webpage where say 4-8 videos begin to buffer, then when ready, play in sync?  And they would also need to, when the location is changed, all sync to that location and rebuffer. 
 
The objective is so that the user can mute/solo each video's audio, to remove an instrument(s) from the "mix" at any time.An alternative way of doing this, I think, would be to just put the 4-8 videos together in video editing, and encode this into one video, but have each video's audio track be a separate audio channel.  If FMS can do multichannel audio on one video, this might work, if it could mix them in/out individually, as the user requires.

View 13 Replies

ActionScript 2.0 :: Load 2 Swfs And Play In Sync On Webpage?

Feb 10, 2009

I have two swfs on a web page but need them to start playing at the same time. Problem is that one file size is bigger than the other, so one loads before the other and starts playing earlier.

Is there any code that can make a movie wait until the other one has loaded, then start playing in sync?

View 1 Replies

ActionScript 2.0 :: Any Way To Sync Two Sound Events To Play Simultaneously?

Jun 16, 2004

Is there a way to synchronize 2 sound events to play simultaneously? It's vital that they begin at the exact same time (aren't started asyncronously).

View 2 Replies

Actionscript :: Play Multiple Tracks In Sync Flash Builder?

Aug 6, 2011

I'm about to create some art installation using augmented reality and music. I'd like to implement some kind of sampler in it, but I can't find any way to do it.

It's gonna be a looper, I've got 12 files (each 8 seconds) and I want to play them synchronized - so they must start at the same time. this is example of something similiar to my project[url]... They must be controlled by changing volume (0 means off).

View 1 Replies

Actionscript 2.0 :: Flv Playback Instance Loops Back To First Frame?

Feb 27, 2010

I am importing a .mov file in Flash, which converts it into an .flv, which works fine and dandy, but playback does NOT stop at the end of the video, but loops back to the first frame and stops there. what to do to get it to stop at the last frame? I am just using the flv instance in a keyframe, not using any code to control it, which is a bit over my knowledge level.

View 1 Replies

Actionscript 3 :: Stream Playback From Wowza Has Audio Crackling On Flash Player

Feb 2, 2012

I have a custom Flash video player that uses the NetConnection and NetStream classes to stream mp4 files from a Wowza server. Lately the playback has been having audio problems. The sound is crackled and in some cases may cause the Flash player to crash. This is not consistent between files. Meaning that a file that was played once with bad audio could be fine 5 minutes later when played again from a new instance of the player , but 5 minutes later have the same problem.

My thought direct me to thinking this was an encoding problem, but that wouldn't explain how one second the playback is fine, and once refreshed messes up again.

I should note that the Wowza server does not stream the entire file but only a portion of it based on various parameters it gets.

View 1 Replies

ActionScript 3.0 :: Make A Movie Clip Play When The MouseY Is Less Than A Percentage Of StageY?

Feb 20, 2010

I have a listener which traces the Y value of mouse:
 
stage.addEventListener(MouseEvent.MOUSE_MOVE,f);
function f(e:MouseEvent){
trace(e.localY);
}
 
I need to make a movie clip play when the localY value is less than .25 of stageY, or even less than 150 would work. 

View 7 Replies

Media Server :: Stream.play (live_from_FMLE, -1, 4500, True) Got No NetStream.Play.Start?

Nov 5, 2010

I got a bunch of live stream from FMLE, say: "FMLE_channel1", "FMLE_channel2", "FMLE_channel3". And then on the server side, I created several corresponding republished stream called "channel1", "channel2", "channel3".

On periodical basis, we call Stream.get("channel1").play("FMLE_channel1", -1, 10, true) every 10 seconds. Similar things were done on the second channel & third channel.Soon after the above Stream.get("channel1").play() call, I should get the following events in sequence:info :NetStream.Unpublish.Successinfo :NetStream.Publish.Startinfo :NetStream.Play.Resetinfo :NetStream.Play.Start In the above case all are happy. Clients can view channel1, channel2, channel3 well.But then after a while, one of the three channels, in most case it would be channel1, will not be viewable.

With the server trace info, I found that after the Stream.get("channel1").play() call, only the following two events exists:

info :NetStream.Unpublish.Successinfo :NetStream.Publish.Starti.e. I was missing the play.reset and play.start event.I further checked and confirmed that the FMLE was publishing all three channels fine to the server. I was able to view the "FMLE_channel1" from flash clients, but not the republished "channel1". the version is FMS 3.5.0.

View 3 Replies

ActionScript 3.0 :: Video In Flash - Detect When Playback Has Completed And Then Take The Viewer Back To The Main Menu

Oct 13, 2011

I have a couple of questions with regards to video playback in Flash using AS 3. I'm not very good with flash coding so I've used the default video importer to import the video (file > import > import video). However I'm trying to put an event handler in that will detect when playback has completed and then take the viewer back to the main menu. I know it has something to do with NetStatusEvent but not sure how to connect it with the video.

Additionally when a viewer is watching a video, if they click a button below the video it takes them, say, back to the main menu. However the video continues to play in the background. I have put a 'video.pause();' on any button that takes the viewer away from the video, however the video is still loading in the background which isn't the ideal.

View 4 Replies

ActionScript 3.0 :: Calling 2 Functions Concurrently?

Feb 23, 2010

Is there any way to call two functions concurrently at the same time in AS3? I have two functions which do very sensitive things, a difference of 0.1 second is considered failure.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved