Playback of Multiple Videos Simultaneously -- onCuePoint

Hello AS3 Gurus!
I have multiple instances of a video playback object (not an FLVPlayback component) on my stage (named "videoScreen1", "videoScreen2", etc...). I have separate NetConnections, NetStreams, and NetStatusEvent handlers set up for each of the video instances. Everything works fine (playback of each video in each instance happens as expected and the NetStatusEvent handlers fire off, as expected, for each of the video streams) except I cannot figure out how to separately keep track of the OnCuePoints events for each of the video streams.
Right now, I have just one onCuePoint function that reacts to the cuepoint info for all the streams at once (with the following code). This misses some of the cuepoints since it seems that it gets a bit confused as to how to handle all the onCuePoint events that fire off from all of the video streams. What I would like is to have separate onCuePoint functions set-up that react to only one stream. That is, have one onCuePoint function react to the video streaming on my "videoScreen1" video object, another that is reacting to my "videoScreen2" video object, etc... How can I do this?
function onCuePoint(cpInfo:Object):void {
     var key:String;
     for (key in cpInfo) {
         trace(key + ": " + cpInfo[key]);
Or, should my question be: "What is the best way to handle the simultaneous playback of multiple video streams and keep track of onCuePoint (and onMetaData) events for each of the streaming videos?"
Any input would, as always, be most appreciated.
Regards,
ropeGun

Hi!
I have had - and still seem to have the same problem. QuickTime 7 will start stuttering after the first change, ie. after the first movie. If you pause playback on and off, the current film will play perfectly - until the next change in the playlist. Then the problem reaccurs.
I cured the situation by going back to QT 6.5.2, where everything works just fine... but you have to do without a lot of nice stuff that QT7 has.
Also remember that QuickTime only supports a subset of SMIL, not all commands.
MacMinis, XServe, Dual 867 G4, Dual 2.5 GHz G5   Mac OS X (10.4.2)  

Similar Messages

  • Labeling multiple videos simultaneously

    Hey all!
    So, I have a bunch of video files that were not purchased via the iTunes store. And I bring them into iTunes, and it automatically labels them as "Movies". I do not really want to go through each of them, one at a time, and relabel them, as it takes a couple of second to write each tag. Is there a way to change the default label when I import things? Or is there a way to change the video type for multiple videos at the same time, like you can do with songs? Please help!

    Does anyone have any idea how to do this? I know that you can select multiple videos, and change field settings such as Artist, Genre, ect. But I want access to the video tab while having multiple files selected. An example would be, I just finished importing a season from dvds, and I have 20-30 files, one for each episode of that season. Then I put them into iTunes. Now, I want to select them all, and change the value of their TV Series Name and Season. Otherwise, I have to go one by one, click on the video tab, change the name, change the season, and it takes forever! Any help would be greatly appreciated!!

  • ? play multiple videos simultanously with a single control bar ?

    I have 4 live f4vs that I'm using with interactive server 3.5.  Thus they are running in dvr.  I'm trying to find a way to control all 4 videos so that when you go back on one video all 4 videos go back to the same time.  This is very important with camera 4 as it is the only one with sound.
    I have tried putting all 4 videos in one swf file and I have tried putting each video as its own swf.  So far I can't figure out how to do it, any help would be greatly appreciated.
    Thanks
    stjc3
    I know something similar was listed previously at
    http://forums.adobe.com/message/64579
    But the link to the solution is bad
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=194&threadid =1292827&enterthread=y

    Thanks for the quick responce.
    The streams are very close to being in sync but they tend to be about half a second to a couple of seconds out of sync.  I tried using the timecode in fmle but when I do that it seems to mess up the dvr feature and kill 2 or more streams so that you can only watch old data and not new.
    So... Will it still work if they are mostly insync?  If so how do I customize the seekbar?
    Also are there any extra steps I need to take since The size of the file will continue to increase while the player is in use?
    Thanks again
    stjc3

  • Watching Multiple Video's at once

    is there a way to auto snap multiple quick time videos in my monitor for simultaneous viewing?  I know that Cinch can do it but I'm looking to snap 4-6 at one time

    is there a way to auto snap multiple quick time videos in my monitor for simultaneous viewing?
    What does "auto snap" mean here? Are you referring to the simultaneous playback of multiple videos, each in their own player, or multiple videos in a single player?
    I know that Cinch can do it but I'm looking to snap 4-6 at one time
    What is "Cinch?" What kind of files in terms of display dimensions and data rates per file are you talking about? How much CPU power does your system have? Are you referring to playback with or without dropped frames? If multiple clips in a single player, are you saving/flattening the combined data as part of the work flow?

  • Multiple video playback issues

    Hi All,
    I would dearly appreciaty any light anyone could shed on this issue - I have run into a couple of Flash bugs that have stumped me for quite a while, and my deadline is aproaching fast.
    Essentially, I would like to play back 3 reasonably high res videos (On2 VP6-S) simultaneously in one Flash App (using flash.video, netstream and netconnect - code only). Unfortunately, when I do this, the video playback drops a lot of frames, however, CPU usage does not go much above 50% - spread over both cores. I'm using a Core2Duo. If I play the same 3 videos simultaneously in 3 separate flash apps (FP10), they play much better (and use close to 100% CPU). I even tried creating it as an AIR app with 3 separate windows (NativeWindow), but that made little difference. I have lodged this as a bug via the Flash Bug Reporting System (http://bugs.adobe.com/jira/browse/FP-2341).
    And yes, I do need to be doing something as crazy as this - it is for a pretty cool kiosk app, so I know what hardware will be used (and it has a good Graphics Card).
    One promising workaround appeared to be playing back a single NetStream in multiple Video instances, as it is NetStream that does the decoding, so I could decode once and present it in 3 places. Two of my video objects are actually the same flv (on different monitors), so there would be a 33% saving right there. If necessary, I could encode both flvs into a single 1920x1200 flv (I've checked - it would play back ok) and then use video.mask to show the relevant bits.
    However, another bug has been reported at http://bugs.adobe.com/jira/browse/FP-920 saying this does not work - Video in the object that last called attachNetStream(ns) will play, all others will freeze. They do mention a workaround that gets both videos to play - reset the size of freezed videos on ENTER_FRAME event. However, I cannot get this workaround to work - my first video is empty (not even frozen).
    So there are a couple of things I would love any feedback on. Firstly, if anyone has insights on how I could get this to work. Secondly, if anyone could try the "multiple videos on one netStream with workaround" code below (simply copy, paste and point to a relevant flv) and let me know if it works and the versions of software they used, I'd be very thankful.
    ---------------Code Begins-------------
    import flash.events.Event;
    import flash.media.Video;
    import flash.net.NetConnection;
    import flash.net.NetStream;
    showRedrawRegions(true); // both the placeholders and the entire window redraws every frame.
    // When only video1 is attached, only video1's region is redrawing
    // When both videos are attached, both video's regions are redrawing, BUT video1 is empty.
    trace ("Capabilities.version = " + Capabilities.version); // = WIN 10,0,22,91 // in Flash CS4 10.0.2
    //var nc:NetConnection = new NetConnection( null ); // Got Eror: 1137: Incorrect number of arguments. Expected no more than 0.
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    // Connect nc here ...? Unnecessary in this case?
    var ns:NetStream = new NetStream(nc);
    ns.client = new Object(); // Simplest way to deal with cuePoints and metaData by doing nothing. For more, see http://blogs.adobe.com/pdehaan/2006/07/playing_back_flvs_with_actions_1.html
    var stream:String = "test.flv";
    var video1:Video = new Video(); // Defaults to size of 320x240
    var video2:Video = new Video(); // Defaults to size of 320x240
    video2.x = 320;
    addChild(video1);
    addChild(video2);
    ns.play(stream);
    video1.attachNetStream(ns);
    video2.attachNetStream(ns);
    // PROBLEM: Video in the object that last called attachNetStream(ns) will play, all others will freeze.
    // See WORKAROUND below for solution:
    //WORKAROUND to stop the first split stream from freezing:
    addEventListener(Event.ENTER_FRAME, onEnterFrame);
    function onEnterFrame(e:Event){
    video1.width = 320;
    video1.height = 240;
    trace ("video1.videoWidth = " + video1.videoWidth);
    trace ("video2.videoWidth = " + video2.videoWidth);
    // When only video1 is attached, video1.videoWidth = 1920, video2.videoWidth = 0
    // When both videos are attached, video1.videoWidth = 0, video2.videoWidth = 1920
    ---------------Code Ends-------------
    Letting me know what exact versions of the following software was used would help a lot:
    - Windows/OS (e.g. XP SP3).
    - App code was written in. (e.g. Flash CS4 IDE 10.0.2, Flash Develop 3.0.1).
    - App code was compiled in. (e.g. Flash CS4 IDE 10.0.2, Flex SDK 3.4.0.6955).
    - Type and Version of Flash Player used (e.g. Standalone Debug Flash Player v10,0,22,91).
    The versions I used are listed above.
    Lastly, for what it is work, I found three interesting/informative results, but they didn't help me:
    - When only video1 is attached, video1.videoWidth = 1920, video2.videoWidth = 0
      When both videos are attached, video1.videoWidth = 0, video2.videoWidth = 1920
    - When only video1 is attached, only video1's region is redrawing
      When both videos are attached, both video's regions are redrawing, BUT video1 is empty.
    - var nc:NetConnection = new NetConnection( null ); // Got Eror: 1137: Incorrect number of arguments. Expected no more than 0.
      So I had to change it to:
        var nc:NetConnection = new NetConnection();
        nc.connect(null);
      Does this mean my NetConnection class is different and maybe incompatible with this workaround?
    Many, many thanks,

    How to view/hear pretty much everything:
    Assuming you already run OS 10.4.9 or above and have Quicktime 7.2, and are using Safari 2 or 3, download and install (or re-install even if you already had them) the latest versions, suitable for your flavor of Mac, of:
    RealPlayer from http://uk.real.com/player/
    Flip4Mac WMV Player from http://www.microsoft.com/windows/windowsmedia/player/wmcomponents.mspx (Windows Media Player for the Mac is no longer supported, even by Microsoft)
    Perian from http://perian.org/
    Adobe FlashPlayer from http://www.adobe.com/shockwave/download/download.cgi?P1ProdVersion=ShockwaveFlash
    In Quicktime Preferences, under advanced, UNcheck Enable Flash, and under Mime settings/Miscellananeous only check Quicktime HTML (QHTM).
    In Macintosh HD/Library/Quicktime/ delete any files relating to DivX (Perian already has them).
    The world should now be your oyster!
    You should also have the free VLC Player from http://www.videolan.org/ in your armory, as this plays almost anything that DVD Player might not.

  • How to apply Time Remap to multiple clips simultaneously

    Quite often after trimming many different clips for a wedding video I will then want the majority of them slowed down to a 50% speed. I know how to apply the Time Remap Speed % change in the Motion Tab, but have yet to figure out how to make the change to multiple clips simultaneously.
    Thanks for your help!

    You can apply a speed change from one clip to multiple clips by copying the first one, then pasting attributes (option + V, then select speed from the list) onto as many clips as you have selected.
    Just be aware that this will ripple your timeline by extending all of your clips. FCP keeps the original out point of the source clip, not the out point of each cut on the T/L.
    Tim

  • Trimming multiple transitions simultaneously.

    Didn't we use to be able to trim multiple transitions simultaneously? For instance, having a cross dissolve on a clip on video track 1 as well as on audio track 1. Selecting both clips and dragging to trim the transition which adjusts both video and audio together. Also if there was video on tracks 1-3 and you wanted to trim all the transitions the same.
    Now it seems that you have to click and drag each individually. I always hated that final cut operated like that and now premiere?

    Logical would be if more than one item is selected then the all are manipulated. Also efficient.
    A video dissolve doesn't infer an audio cross mix. It's very common at the end of a segment to fade to black. Fading the audio at this time is also a good choice. If you added a default 1 second dissolve to the video and also to the linked audio and then decided to increase the transition duration of both at the same time you can't. Move one then the other. Inefficient.
    Perhaps a better example would be when you have two mono channels linked and add a cross fade transition to both. You're likely want to adjust them the same. Moving one the. Having to move the another to match is very wrong.
    I've never noticed it being an issue before which is why I believe there has been a change. I'm hoping someone will have a solution.

  • Synchronized playback from multiple computers?

    My roommates and I have about 5 computers all over the house. We can all access each other's iTunes libraries, but we would like to all be able to listen to the same playlist or songs at the same time as we wander around the house. There must be an app out there that allows the simultaneous playback from multiple computers, so that every computer can be playing the same song at the same time, no?

    It looks like I could play my music in VLC, then broadcast a stream over the network, however, this won't account for latency, and won't do any synchronization of the other computers. Plus, I'm not really interested in using VLC for playlists and organizing my music... Is this in the works at Apple, by any chance?

  • Java playback of multiple wav files in sequence - without overlap

    Hi there
    I am asking for suggestions on how to do simple consecutive playback of multiple wavefiles using java. Right now I have each wavefile loaded into a clip, and the playback almost works, but with occasional errors where two or more of the files are played back simultaneously. I am doing busy-waiting using the clip.isActive() method in a while-loop in order to detect when a clip has finished playing so that the next one can start. I know that there are most likely some smarter methods of doing this, and I have tried some of them - e.g. linelistener but without getting it to work. If anyone can supply me with some example code on how to do this the right way, or could point me to some literature, it would be greatly appreciated.
    Thx in advance.
    Jacob

    http://www.jsresources.org/examples/SimpleAudioPlayer.html
    That example plays a file by opening it with an AudioInputStream and copying the contents to a SourceDataLine to play it...
    It can be easily modified to allow for multiple files to be opened & copied to a single SDL, and is what I'd consider the "proper" way to do it. Clips are mostly useful for things like making a button go "beep" and things of that nature. Not especially useful for normal multimedia applications.

  • Multiple Video Clips

    Does DVDSP4 support multiple video clips in a track? It allowed me to add a video clip after the first one but the second clip is black when I play it. This is for a dance recital where i want each section title screen to be separate from the video.

    Hi:
    Most probably you find the black playback (but audio is playing fine) in Simulator, right? Try pausing and starting again during Simulator.
    It's a kind of bug in Simulator. If you make a trial build you'll find everything is OK.
    Hope that helps !
      Alberto

  • A frame failed to render while using Render Multiple Frames Simultaneously

    Hello fellow AE users:
    I've read other threads which deal with this issue, however they don't seem to be exactly what I'm experiencing so I'm starting a new thread. I did do several hours of due diligence by research others' handling of this issue, so I'm not just blindly reposting this question without having done some legwork.
    I'm getting this message when rendering one of my compositions:
    "After Effects warning: A frame failed to render while using Render Multiple Frames Simultaneously. Allocating more memory to the background processes in Memory & Multiprocessing Preferences may fix this problem. (26  ::  142)"
    First, some background on what led up to this. I've built an entirely new system from scratch based on the new Intel 5960X 8-Core processor, with 64GB of RAM on an Asus X99-Deluxe Mobo.Brand new install of Windows 8.1, and brand new install of After Effects CC (latest versions as of this posting) and all of my plug-ins (mostly Red Giant, also all updated to current versions.) I have a new video card in this system (Gigabyte GTX 980 G1 Gaming) however this issue also happened with my old 4GB GTX 680 as well, which was in the original i7-950 system (see below.)
    I've set up Multiprocessing preferences for 6GB reserved for system, 8 CPUs reserved for other applications which leaves "Actual CPUs that will be used: 8", with each CPU having a 6GB RAM allocation. That's 8x6=46G, leaving 18GB free for the operating system, which should be more than enough.
    One could speculate that there is some plug-in that is using too much memory, or something weird with QuickTime or H.264 decoding (the source is one Canon 5D mk II H.264 .mov and one jpeg file). However, this issue did *NOT* happen on my old system, which was 4-core Intel i7-950, 24GB RAM, running the same version of After Effects CC and my plug-ins, and with only 3GB/Thread of ram allocated instead of the 6GB/Thread i'm using here.
    I've simply loaded the old project on the new install and attempted to render. I have not changed any settings. I DID do the thing where you hold CTRL-SHIFT-ALT (or something like that) to reset all of the preferences when loading AE just in case that was the issue.
    So, why would this be able to render using multiple processes on my old box with only 3GB/thread, while it will NOT render on this new system with double that, 6GB/thread allocated?
    Please let me know if there is any other information I can provide that would be helpful to debug this.
    Many thanks in advance for your help!

    Thank you very much for the quick reply, Todd. I'll give that a shot. There also seems to be a problem with the Red Giant Cosmo plug-in. I get Cosmo engine initialization failures, but it's intermittent.

  • OpenGL vs "Render Multiple Frames Simultaneously"

    My first post on these forums (Like to learn on my own ).  This question(s) accually has to do more with RAM and rendering in general.
    1.) Is OpenGL rendering faster (With a GTX 460) or is Render Multiple Frames Simultaneously faster (Athlon II x3 445)?  I read on one of the FAQ that you can only use one or the other.
    2.) After Effects will stop rendering with at least 10-20% RAM still left over and even call it complete.  Why is this?  I have tried every setting in the book and I can't get it to use any more RAM.  Also in the Render Multiple Frames Simultaneously section I can't get the RAM avalaible for AE over 2.5GB.
    3.) What is the difference between the space bar and the 0 key?  As they both seem to do the same thing, and niether get very far into the movie before stopping.
    My System:
    Windows 7 Home Premium 64 Bit
    AMD Athlon II x3 445 3.1Ghz
    GTX 460 OC'ed
    4GB 1600 RAM
    Small Boot Drive SSD
    This movie is really large (3000x2200ish), but should be able to render further along than it is (Less than 4 sec and 25% left over RAM)...
    Thanks Ahead

    > 1.) Is OpenGL rendering faster (With a GTX 460) or is Render Multiple
    Frames Simultaneously faster (Athlon II x3 445)?  I read on one of the
    FAQ that you can only use one or the other.
    They accelerate entirely different things. Don't use OpenGL for rendering for final export. I leave my preview mode set to OpenGL - Interactive, and that's it.
    > 2.) After Effects will stop rendering with at least 10-20% RAM still
    left over and even call it complete.  Why is this?  I have tried every
    setting in the book and I can't get it to use any more RAM.  Also in the
    Render Multiple Frames Simultaneously section I can't get the RAM
    avalaible for AE over 2.5GB.
    You have 4GB of RAM? Your OS and other software need RAM, too. After Effects using 2.5GB out of 4GB is about right.
    > 3.) What is the difference between the space bar and the 0 key?  As they
    both seem to do the same thing, and niether get very far into the movie
    before stopping.
    Read the documentation:
    "Preview video and audio"
    The 0 key on the numeric keypad starts a RAM preview.

  • Multiple videos

    I am trying to play and control multiple small (160x120) QT
    or AVI videos simultaneously. I tried a grid of 50 playing on one
    frame with the "go to the frame" loop. Each video cycles through
    once then stops and then the next video plays and cycles through
    once then stops and on to the next. I want them to play at the same
    time and then control each with LINGO commands.

    How are you going to distribute the final project? If
    it’s CD or DVD you might want to check performance from
    burned media early on. I recently had a project that had to play
    just two videos simultaneous from DVD-ROM, worked fine from my HD
    but most machines couldn’t keep up when reading two streams
    from a DVD. In my case the videos were large (720x480 MPG 2) so
    your mileage may vary. Just FYI, our solution was to copy the
    videos to the user’s temp folder while other content was
    playing, then use the copy in the temp folder as the source. We
    wrote the code to be smart enough to check for the videos first, so
    if they had already been copied from a previous run we didn’t
    waste time copying again, also, if the copy failed for any reason
    the projector would switch to the DVD source since we figured
    choppy video was better than no video at all.

  • Arranging Multiple Video Layers

    When I want to have multiple videos playing on screen simultaneously - 4, 6, 8, maybe 16 - is there a way to have Final Cut Pro auto-arrange the location and size of each clip so that they are evenly spaced on the canvas? At the moment I am arranging everything manually in the motion editor, but it is slow and I would love to have a more efficient way to get it done.
    Thanks.

    Create Motion templates. There may be some third party plugins if you look around.

  • Multiple video layers in clip

    When attempting to view a clip in Quicktime, the clip will play as normal and then suddenly switch between scenes. At this point, it is possible to drag the slider backwards in time and view a different scene. A third scene can be viewed if the cursor is rewound and played from precisely the right point towards the beginning of the clip.
    This clip was downloaded using Limewire and "previewed" before the download was complete. My theory is that some sort of Quicktime cache is enabled which permanently set the length of the clip at a fixed time... not allowing the clip to play for a longer length of time after it had been downloaded.
    Is there any way to reset this file so that the multiple videos layers can be viewed continuously as they should?
    Powerbook   Mac OS X (10.4.4)  

    If its an MPEG file, use MPEG Streamclip to "Fix timecode breaks" and then "Convert to MPEG" to save the video into a new MPEG file with continuous timecode for better playback in QuickTime Player. Or just play it with VLC or MPlayer which will play it regardless of timecode errors.
    http://www.squared5.com/

Maybe you are looking for

  • Title Tags not working with iWeb SEO Tool

    I created my website using iWeb and realizing iWeb is very controlling over title tags and such, I downloaded the iWeb SEO Tool.  I have recorded my title tags and codes but when I search my site on google, Home is still recorded as the title tag.  I

  • SAP HR Security_ Dump error after table maintenance (T77UA)

    Hi, In our project we have both general authorizations and structural authorizations. There are ESS, MSS and HR Roles maintained in PFCG transactions. Our approach of Role assignments (profiles) is for Users and not against positions. Hence table T77

  • How to Install XL Reporter in SAP B1

    Hi Experts, I want to Install XL Reporter in SAP B1 2007 pls tell me how to Install XL Reporter Regards, Sandip Kokate

  • Passing data from check FM

    Hi, Wanted to know how to pass data from check FM to workflow container? We are not able to add parameters for event container as it is standard event. Can we set attribute of object ? I could not find macro for setting property. Expecting urgent hel

  • How to Make Editable Pdf from Photoshop

    Hello I have more psd page design.  I want to make a editable pdf from Photoshop. Regards Gurpreet Chauhan