Frame Exact Synchronisation in FlashVideo

Hi everyone,
after a rather lenghty post here a concise version ;-)
The Task:
I have to draw a couple of shapes (for highlighting purposes)
on a each frame of a Video (in this case a FLV).
The specification is to be frame exact - and if not, to at
least appear so to the human eye.
The Problem:
As of yet I have not found a way to access individual Frames
exactly. The whole Video decoding Process, as it seems, is
happening internally in the VideoPlayer Class.
My Question is:
How is the Video decoding process for FLVs happening
internally in the VideoPlayer/FLVPlayback Class?
Two possible answers I thought up:
1) Its done by using ActionScript internally. This implies
that there's a Timer object somewhere triggering the Class to draw
a frame, which in turn means, I should be able to capture it during
the capture Phase once the VideoPlayer (of FLVPlayback) is on the
Dispaly List.
Since I haven't been able to capture a Timer.TIMER_EVENT or
anything of the sort I'm not exactly sure (though I don't now if I
might have missed something)
2) Video decoding happens on a lower level using OS or lower
level functions/assembler routines/whatever and NO ActionScript is
invloved. This would imply its inherently impossible to get access
to the frames.
Can anyone confirm this in one way or another?

Thanks for your reply!
Unfortunately the prior encoding is not an option, since one
is supposed to dynamically show or hide multiple highlighting areas
during the movie.
I think no 2) is the most likely case - I have tried
emualting frames by adding cuePoints, but since they weren't meant
for that purpose the system "under the hood" is unable to deliver
them fast enough (fastest I got was 200ms, and I would need 40 ms
when using 24fps) from encountering them in the FLV video to
reaching the eventlistener that would draw the shape.
Now I'm using cuePoints every 200 ms and in between those
cuePoints I draw frames "blindly" using a Timer Object.
Dynamically added cuepoints weren't very precisely triggered
(3 at once and then none, etc..) which led to a lot of jerky or
wobbly drawing. I've now tried using static Cuepoints, encoding
them during FLV encoding, and that works much better now.
Still its only a workaround - but I guess it won't get better
than that.
Anybody else who could prove me wrong? ;-)

Similar Messages

  • It is possible synchronize sound and frame exactly at the same time?

    I need to change a frame in relation to a sound, and I need to do this more exactly possible.
    I try something like this:
    on changeFrame
    if sound(1).mostRecentCuePoint = 1 then
        go to frame "1"
    end if
    if sound(1).mostRecentCuePoint = 2 then
        go to frame "2"
    end if
    ..... and so on
    I try also this:
    on changeFrame
        if member("Tempo1").cuePointTimes[2]  then
         go to frame "2"   
       end if
    With this method sometime the sincronization  between soud and frame is not exact.
    Is there a way to synchronize sound and frame exactly at the same time?
    Thank you.

    I need to change a frame in relation to a sound, and I need to do this more exactly possible.
    I try something like this:
    on changeFrame
    if sound(1).mostRecentCuePoint = 1 then
        go to frame "1"
    end if
    if sound(1).mostRecentCuePoint = 2 then
        go to frame "2"
    end if
    ..... and so on
    I try also this:
    on changeFrame
        if member("Tempo1").cuePointTimes[2]  then
         go to frame "2"   
       end if
    With this method sometime the sincronization  between soud and frame is not exact.
    Is there a way to synchronize sound and frame exactly at the same time?
    Thank you.

  • I have a problem with Farmville on facebook,the game doesn't fit in its frame (I don't have this prblem when using Linux) so I can't game properly

    I have a problem with the game Farmville on facebook.
    When I go to the game ,the game doesn't fit in the frame (of Adobe flasplayer) ,so I can't game properly ,because features fall outside the frame.
    I don't have this problem when I game on a notebook with Linux,there ,the game fits the frame exactly,so the problem is not with Adobe flashplayer,but with Windos 7 in combination with Firefox?

    Reset the page zoom on pages that cause problems: <b>View > Zoom > Reset</b> (Ctrl+0 (zero); Cmd+0 on Mac)
    * http://kb.mozillazine.org/Zoom_text_of_web_pages

  • Why SDK always generates non-drop-frame clips?

    I've created a sequence in Premiere: NTSC DV, Codec: DV NTSC, 29.97fps, 720x480, Drop-Frame Timecode.
    When I try to render a clip with MXF OP1a preset file (DV25 NTSC) by SDK, it always generates non-drop-frame clip.
    If I use 'File->Export->Media...' with same preset file, it's drop-frame exactely.
    'Drop-frame' seems to be an option from sequence and there is no place to config it in preset settings dialog.
    How can I generate drop-frame clip by SDK (exporter controller)?

    I also meet the same problem.
    I have created a 'Export Controller' plug-in. when export media using this plug-in, and choose the preset 'DV 25 NTSC', MXF OP1a.
    Confirm that sequence setting is 29.97 drop-frame.
    But export mxf file is always NDF.
    However, using Export->Media, and choose MXF OP1a  +  DV 25 NTSC, will export DF mxf file.
    Could you help to double check it?
    I have check from code,  it will get correct result (DF or NDF) after call function 'GetTimecodeDropFrame' in 'Sequence Info Suite' , so what's the problem would be?
    Thanks,
    Iris

  • Problems with XFL import from AE CS4 limited to 1000 frames

    I'm currently working on a JibJab style project where a third party agency have done an animation. Now we have tracked the head motions in AE CS4 and done an export to Flash using XFL, and the motion does not work.
    Before this we have done several tests to see if this method would work, so we know it actually does work, but the tests where only a couple of 100 frames long, now the project is over 1500 frames.
    The final animation is 60 sec, 25f/s, and after importing the motion into FLASH using XFL nothing happens. The motion is there if we look in the motion editor, the image is there, but nothing happens when i scrub back and forth. This all worked like a charm with the test projects. AND if i try and rightclick the picture or motion editor FLASH freezes, so i know something is REALLY wrong here.
    After four hours of bug hunting i have isolated the problem to the number of frames you try to import into FLASH. If the end sequence is more than 1000 frames (exactly!) a extra keyframe is added on the first frame in the motion editor, so there is TWO keyframes on the first frame, where there should only be possible to have one. This happens only if the sequence is more then 1000 frames. If i take the same sequence and export if from AE so its less then 1000 frames everything is fine.
    I have attached a screenshot of the extra keyframe that apears in the motion editor. It's allso noteworthy that this extra keyframe can't be changed or adjusted as it does not actualy "excist".
    I would like to have this bug confirmed by someone and if someone has a solution? Right now im looking at cutting up the export into "999 frames" sections and then patch it together again in Flash. 
    Oh, i almost forgot, i work in an OSX enviroment. All feedback is welcome!

    it turns out this was a AE issue.
    read more here:
    http://forums.adobe.com/message/2131807#2131807

  • Premiere cc 2014 renders not frame accurate?

    I'm rendering some sequences from cc 2014 (the latest October release) all are exactly 20:00:00 long, with out set on that frame exactly. However if I bring the exports into after effects, some of them are a frame longer or shorter than they should be.
    Any suggestions what might be going on? All sequences are progressive and 25 fps.

    Hi w00lf!
    A common issue is that many people do not know to use caution when marking an Out with the Premiere Pro playhead. The physical makeup of the playhead includes both the head and tail of a single frame. Placing the playhead on a desired out point and then marking Out will have the effect of marking Out one frame too late. To get the proper duration you are expecting, always move left one frame - then mark Out.
    If you zoom in to the playhead, you can see what I mean. In the screenshot, you can see the front edge of the playhead is on the cut. Marking In here is no problem. If you mark Out with the playhead (as shown), you are marking Out at the back end of the playhead, one frame too late and one frame in to the adjacent clip. When marking durations, you have to be very mindful of this behavior.
    Many editors make this mistake for quite some time before realizing the issue at hand. When I taught editing in various trade schools here in CA, I made sure all my students knew about this quirk.
    Thanks,
    Kevin

  • 29.97 Drop Frame Broken?

    Hey all,
    I'm trying to lock Pro Tools up to Logic 8, like I've been doing in Logic 7 for years.
    Strangely, it only works if I put PT into 29.97 (non drop). Whether or not I put Logic into 29.97df or not, PT locks up if it's in 29.97 non drop.
    This suggests that Logic 8 is putting out 29.97nd when i set it to 29.97df.
    Am I missing something? Can anyone confirm this?
    Thanks for help!

    It is the same old story with the same old confusion. and I don't even know where to start:
    * If you are setting the sample rate on your DAW or any digital device, you are setting the CLOCK FREQUENCY, or CLOCK SPEED, i.e. 44kHz, 48kHz. You determine a speed on how fast the ADC cuts the analog wave form into discrete samples or how fast the DAC puts each sample back together.
    * If you look at SMPTE timecode you see number like 24fps, 30fps, 29.97fps. This is called the Frame Rate. However here is the big difference. *The Frame Rate tells you TWO things*. Yes 2TWO ! If you are not aware of that, then you might have difficulties understanding frame rates like 29.97df or 23.976
    _The two informations are:_
    1) The SPEED or FREQUENCY or RATE. How fast do you take samples (in this case picture frames), or how often you take a picture snapshot: 24 times per second, 30 times per second or an uneven number 29.97 times per second. This is called the "FRAME RATE" measured in "fps" frames per second. Again just a clocking information. How fast the frames where taken and therefore how fast (at what speed) do you have to put the frames back together to get everything back into sync.
    2) The second information in the Frame Rate number deals with LABELING. Now this is important. It tells you how to label each frame, or how you count them. "0 to 29 and start again" or "0 to 29 and start again, but at specific minutes you start counting from 2 to 29". You see these are just rules how you label each frame. The reason for some of the rules have to do with history and how some not so smart engineers came up with bad compromises.
    _One Example;_
    The Frame Rate 29.97df tells you that the clock rate is 29.97 frames per second and the numbering of the frames follows the "drop frame" rules. If you sync two devices, you only send the clock speed. In order that the slave counts the frames exactly the same way, you have to make sure to to set the Frame Rate on the slave to the correct number. Now it counts the frames in the same way as the master.
    Everybody outside the USA who doesn't have to deal with NTSC video standard is lucky and might not even be aware of that dual information in the Frame Rate setting because with 24f (film standard) or 25f (PAL standard the clock speed and label convention is the same, i.e. sampling the picture 25 times per second and labeling the frames 0 to 24.
    One major feature addition to L8 was the 23.976 frame rate. Whoever had to work in the past with animation, feature film output from an Avid or HD production was faced with 24f picture clocked to 29.97 fps. And selecting that new Frame Rate in the Synchronization Setting lets you do that. I clocks Logic with 29.97 fps but counts the frames from 0 to 23.
    _My little rant:_
    With the transition to HDTV, engineers had the chance to get rid of that 29.97 nonsense clock speed. But guess what, they carried it over. Of course they saved money by keeping their house clock in their facility at 29.97 but if you think of all the continuing errors based on those clock speed mismatches for all the future projects you will see that the monetary damage will be much bigger, it will just be equally spread to everybody involved in the project. If you work with film, just think on how many hours of troubleshooting you are wasted just to deal with video sync issues (most likely 29.97fps related)

  • Having problems... finding theoretical 0,0 in a Frame...

    Okay, whenever I initialize a frame and try to draw on it, I encounter the same problem. 0,0 is actually the upper left corner of the Frame, <B>including the titlebar and menu!</B> I want to know how to detect the settings for a computer so that the internal portion of the window is a certain height.
    For example, my "theme" settings for my windows are a lot smaller than most peoples' my scrollbars are 8 pixels, and my font for most everything is size 8. Thus, a default setup for the size of the frame isn't going to make the internal portion of it the same size of someone with 40 pixel scrollbars, and a 10 pixel border. How do I detect changes to appearance settings, and how do I make the internal (drawable) portion of a frame exactly 640x480, no matter the personal settings of a particular user?
    I've actually had to resort to using a window with no title or scrollbar, and draw my own minimize and close buttons... titlebar too...

    Well, that was helpful, thank you. And actually, I am assuming that people aren'y running in 800x600. I WANT people to run in 640x480, so that I can simulate fullscreen. Every time I lose or regain focus on the window, I have it check it's position, and the screen resoultion, if it is 640x480 and the fram was originally in a larger resoultion, it puts the window at getinsets.left()*-1,getinsets.top*-1.if it has to resize, it sticks the frame at the center of the screen (scrwidth/2-frame.getwidth()).

  • Content of Scrolling text won't start at the top of the frame

    Despite making the frame exactly the same size as the content the Scrolling text won't start at the top of the frame. It drops down the equivalent of a line of text. Any ideas?

    Hi Ali
    No to Baseline Grid
    Yes to Text Wrap but its a small graphic (to indicate scrolling text) inset into text halfway down.
    The first line of text has a 4 line drop cap with Align to Left Edge checked. The DC is also defined as a Chara Style and doesn't exend above the top of the text.

  • [CS4 Win] Weird 'Bug' giving overset text in duplicate object - stumped!

    Hi all,
    I am experiencing a perculiar 'bug' in InDesign CS4 (Windows).
    I have a triangular text frame rotated by 45° with a 0.2mm inset.
    This frame contains two words who's point size is just big enough to fit the text in the frame without it oversetting.
    The leading is set to 100% of the point size.
    When I duplicate the text frame either with the Duplicate command, cut 'n' paste or alt dragging, the new text frame is overset!
    I cannot find any difference between the two objects what so ever.
    If, in the original text frame, I change the text frame options inset to 0 and then back to the original 0.2 mm, I get overset!
    Scaling the original up by any amount also causes overset, as does increasing the height of the frame and then returning it to its original height.
    I have tried exporting as a snippet but the new placed text frame oversets.
    Does anyone have any idea might be causing this behaviour.
    It doesn't do it in CS3 or in CS5.
    I have included a link to an example file, you will need to have the same font (HelveticaNeueLTPro-BlkCn) to see the problem.
    I can't upload this for obvious copyright reasons - sorry.
    http://dl.dropbox.com/u/7307068/flashes.indd
    Thanks for ANY input.
    Simon Kemp.

    Hi Simon.
    My initial reaction was it might have to do with the third party plugins, but I exported to .inx to strip them out, and then NONE of the frames had both words. I also thought it might be that the the frame isn't a right triangle and the slight angles on the vertical and horizontal might be a problem, but I made a new frame with the same hypotenuse but the correct legs, and that didn't make a difference, either. (I made it by drawing a rectangular frame exactly half as high as it was wide, adding a point at the center of the top path segment with the pen, then deleted the two upper corner points).
    I have to say my conclusion is that the problem here is there really isn't enough room in the frame for both words with that inset. Adding 3% to the size of the frame (by clicking the chainlink to link changes to height and width, then typing +3% after the height [adding in the scale fields scales the type, too, so don't do it there] and pressing Enter) brings both words into view.
    Curiously, When I opened the file in CS5, the words fit without messing around. Cutting and pasting the frames with overset made both words appear. This could be due to the new way ID deals with text in non-rectangular shapes. When I opened the .inx file without the plugin information in CS5 all the text was visible in all frames. I think the only reason the text ever fit in the original CS4 file might have to do with one of the plugins, but that's pure speculation. I don't think there's any sort of bug here.

  • Merged clips in iMovie 6 HD

    Currently I am working on creating an iMovie for my nephew's soccer tournament. It is being done in a Star Wars theme. In the original movie the Star Wars logo appears with the theme music and then zooms backward into infinity before the scrolling paragraphs. I have created the same type of effect, except it says Soccer Wars. I could not achieve this in iMovie using the titles because of the limitations. I did however create the title in photoshop 6 and import 3 size versions of this title. I need to create 3 because I discovered that the Ken burns effect would only zoom back just so far. I then used the sebsoft Join Clips plugin to tie all 3 clips together into one clip.
    Here is my problem: When the first clip reaches zooms back to the point the second clip begins, there is a small "jump" or "jerk" between the first and second clip. The same happens between the second and third even though I have combined all three clips.
    Here is my question: Is there a way to "smooth" this out so that it flows seemlessly?
    Any suggestions are appreciated.
    Greg Gertz

    Hi
    To join clips - most often not necessary but in Your case most probably.
    There are no join clip tool in iMovie but can be achieved in several ways
    1. I would test this first.
    • add together duration of clip 1 and 2 and 3 - Frame exact ! !
    • Now when they are in TimeLine and in a cont. select TEXT-tool
    • select any eg Centered Text, here apply the very invisably letter "Space"
    • now set the duration exactly
    • drop the text-tool line ge Centered Text on the first clip in TimeLine
    Now they should be joined (whit an invisably space as text
    2. If this doesn't work - use Export Back to Camera
    • Export the clips back to a new tape
    • SET in iMovie pref - not to import as individual clips
    • import back
    And it will be just one new clip
    3. This can as I get it also be done in QuickTime - But I do not know how
    You'll have to investigate.
    Use the search function and You'll find more.
    Yours Bengt W

  • How can I get a clip in a fixed position?

    Dear people,
    i have a question for you. I am making a video clip. In the clip I use a lot of short clips of 10 seconds
    or less after one another. Transitions, effects, everything is working great. But how do fix a clip on the timeline.
    Everytime I change the lenght of one of the short clips, all the other clips are moving out of their position.
    I hope there is a solution, otherwise i have a huge problem. Heeelp!

    Hi
    Here You meet the border of Amateurism and Professionalism.
    This can not be done (with any form of ease) in any version of iMovie.
    BUT - this is a standard way of working in FinalCut up to version Express 4 or pro 7
    (What can or can't be done in FCP-X still is a mystery to me)
    So either - document every clip on a number of frame basis in iMovie up to HD6 and do this very carefully and tedious labor.
    Or try to find a second hand version of any previous version of FinalCut.
    iMovie'08 or 09 or 11 - I'm not sure that one can document each clip at frame exact notification. May be ?
    And of course one can do this in QuickTime Pro - BUT then at a need of an even higher level of carefulness and skill.
    Yours Bengt W

  • Dynamic casting

    hello all (happy new year!),
    i am trying to dynamically cast a class that is only known at runtime from the configuration file that is parsed during startup.
    the code is as follows:
    ArrayList classes = new ArrayList();
    ... (parsing)
    classes = JAFSaxParserInstance.getClasses();
    Iterator it = classes.iterator();
    while (it.hasNext())
      Object next = it.next();
      Class appToLoad = Class.forName(next.toString());
      Method instanceMethod = getInstanceMethod(appToLoad);
      Object frame = instanceMethod.invoke(null,null);
      Component[] components = new Component[MAX];
      components = ((UNKNOWN_CLASS) frame).getContentPane().getComponents();
    }without the ability to discover the class from which i have just called a getInstance() method, i seem unable to retrieve all the components of the JFrame subclass (i get a ClassCastException). for my purposes, all of the UNKNOWN_CLASSes will be subclasses of JFrame, but without explicitly being able to cast it (frame) exactly, i cannot extract the components.
    is there any way to dynamically cast such objects at runtime? by this i mean i cannot use switch statements b/c the classes are unknown prior to runtime.
    thanks!

    point well taken. i've probably designed my application wrong if it's this difficult, but let me try to explain what it is i'm trying to do.
    i had previously created a swing application whose central class (bootstrap initialized by a separate class with a main method) is a subclass of JFrame using the GridBagLayout manager. now, since more related gui applications are to be built, i thought it would be nice to build an application framework into which i could insert each standalone application into a JTabbedPane pane of the framework application.
    the application framework has the same structure as my previous application. a bootstrap main method class initializes the main application frame which builds a contentPane which contains a JTabbedPane. as this application framework frame is initializing, it parses an xml file which contains the data pertaining to each class and my DynamicLoader class attempts to load/initialize and add each class into a separate tab in the main application frame. that's where the problem arises since i don't know the exact class that will be loaded--only the xml file contains that information.
    i've read a few things about implementing interfaces in order to get around the inability to cast types at runtime, but am not too sure of how that might work.
    let me know if seeing some more of the code would help or if there's anything i should clarify.
    thanks!

  • Data replication and synchronization in Oracle 10g XE.

    We are trying to do data replication and synchronization sort of thing for all our servers. We are using Oracle 10g. XE. I guess there are some features in oracle already for replication but I am not very sure about them.
    To explain it more clearly - we will have individual database servers in our sub-divisions and then divisions and centers and then main server. We need to synchronize at various levels. So If any body is aware of any techniques, please let me know.

    Hi,
    Could you tell me what exactly synchronisation your talking about..?
    we will have individual database servers in our sub-divisions and then divisions >>and centers and then main serverIf you have mulitple DB servers then you can connect it by DB links. also if you are talking DB synchronisation then you can have Triggers,Materialized views.
    we also have two independent severs which are synchronised(atleast schema levels).
    Regards!

  • Photos get auto-cropped and ken burns. stop it.

    Trying to do a stop motion. don't need the photos to movie. Cant get imovie to stop auto cropping and ken burns-ing the photos on import from iphoto. Would be fine, but i can't bulk adjust them either, tired of going through frame by frame and putting it back to fit. help.

    When you start a new project, or to change a project you are currently working on, go to FILE/PROJECT PROPERTIES, and you can change the default behaviour for initial photo placement from Ken Burns to either FIT or CROP. Crop will make the photo fit the frame exactly by cropping off the top abd bottom. FIT will make the entire photo fit by letterboxing.
    If you make your photos have the same aspect ratio as your project (either 16:9 or 4:3), then FIT and CROP produce the same result, and nothing is lost from the photo.
    The FILE/PROJECT PROPERTIES will only change photos that you add going forward.
    To change a bunch of photos that are already there, change one photo using the Rotate, Crop, Ken Burns Tool. Then, with the photo still selected, EDIT/COPY.
    Now, select all the photos you want to change by holding down the Command Key as you click, so you can select multiple photos.
    Now, click EDIT/PASTE ADJUSTMENTS.../CROP ADJUSTMENTS.

Maybe you are looking for

  • Insert in text file

    Hello,  I have an application that generates a measurement files (text) of several hundred Mo.  How can I insert text in the file without having to read all the contents (I know the position where to insert a text in this file).  Thank you in advance

  • Information in Bi Publisher PDF Properties

    Is is possible to have audit information in the properties of the pdf that specifies the authenticity of the document (date of creation, no modifications, date of modifications ...) for legal requirements? Regards Sarah

  • Can someone explain the attached Finder screenshot

    Hi, I have a Macbook Pro, just for home use. I noticed this 'Shared' access in Finder recently. It could have appeared after linking a new GPS device I got via a USB cable although it still appears without this being connected and after re-booting. I

  • How to view form in the Help Corner

    Hello, In Quality Portal, in the home page-> Help Corner -> right click We can see New option and in that we can create folder, link and as well as form. But in Production Portal in the same way we can create folder, link but I cannot view the form.

  • Canadian CPP and QPP create claims situation

    Hi SAP expert  ; Is there any way that we can stop having CPP and QPP calculating for an employee when they have no earning ? Some of our Withdrawn EE still eligible for Taxable benefit and these are CPP and QPP taxable so when running payroll these