Positioning media on a key frame

Hi,
I'm new to jmf, but I made a lot of things myself. I'm able to play video files (xvid, using jffmpeg), took the cut.java from the solutions and adopted to my needs. But I'm having a small annoyance with the cutting.
When I try to cut the video on a frame that is not a key frame I get audio/video desyncronization. The thing is that the cut.java program starts cutting the video from a key frame, that could be some 5-10 frames after the current (selected) frame.(I set my video files to have a key frame every 15 frames at most)
So an easy solution to my problem would be to set the starting point of the cutting on a key frame. And my question is: How to set the media time of my player/processor to a key frame?
I need something like processor.positionOnNextKeyFrame().
Thanks,
Bojan

Thanks for the reply,
I saw that one but somehow I cannot find out how to get the buffer from the processor? I tried the code from cut.java but I didn't like to go through every step when I have already loaded the file in a processor. Somehow I lost my self in that. Maybe it is the solution...
I was researching and found out that there might be a way if I could somehow get the Track from the processor. Track interface has a method:
readFrame(Buffer buffer) - Reads the next frame for this Track
So if I could get the track then I would be able to loop through the frames and do this check:
if ((buf.getFlags() & Buffer.FLAG_KEY_FRAME) != 0)
So how do I get the Track? Through the TrackControl somehow?
Thanks again

Similar Messages

  • Why is the position of key frame BEFORE scene changes not after?

    Why is the position of I frame BEFORE scene changes not after?
    And, why doesn't MovieVideoChart show any I frames other than those that correspond to periodic "key frames every X frames"? Is it reading meta data and not really showing where the real existing I frames are located? I.e. WYSIAL (what you see is a lie)? If so, where can I get an affordable tool that will let me examine my files in this regard?
    I have put compression and chapter marks at scene changes in FCP and have exported with markers for DVDSP (both chapter and compression).
    I have read on this forum (somewhere) that when insert key frames every X frames is selected, Compressor is still going to insert key frames automatically at key frames.
    When I last encoded with H.264 in Compressor, I selected option to insert I key frame every 90 frames (fps=29.97).
    When I jump to chapter in my encoded video, where I had place a key frame at a cut, I end up with a chapter at the frame BEFORE the cut.
    I will try moving my chapter/compression marks a frame ahead and see if that helps.
    Certainly, others must have been plagued by this problem.
    When encoding with MPEG2 for DVD, the same thing happens.
    It is a real problem. I get one frame appearing before the cut in chapter skips.
    Hope someone can illuminate this problem.

    Hi there
    As you have seen, RoboHelp doesn't understand how to create the layers you are wanting to achieve the effect in Word. It simply brings the images in as separate objects.
    Basically there are two approaches you might consider.
    You could insert Positioned Text Boxes and configure them to present the images as you want. If you take this approach, you will likely find yourself struggling to maintain the positioning consistently as well as noticing text flow issues. Personally, I'd avoid that approach.
    The other approach involves displaying the images in your Word document so that you see them as intended, then screen capture so you grab the combined image. Then save that combined image and use it instead of the separate images in RoboHelp. This is the approach I'd suggest and that I use myself.
    Cheers... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7, 8 or 9 within the day!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • How to make footage in between position key frames stay in a straight line?

    I used position keyframes to move the footage to the right, in different positions near the right side of the sequence frame (not all the same position), in preparation for a split frame crop effect. Between keyframes the footage jumps back to the original position. I selected all the key frames and did a rightclick and set Temporal and Spatial interpolation to Linear or Bezier - but that doesn't do anything at all. What am I missing?

    Thanks for trying to help me Ann. The temp. & spatial interpolation on all keyframes is Linear. There don't appear to be any hidden keyframes, but I don't see how to zoom more than the default shown here. Where the playhead in this screencap - between the 2 keyframes - is where the motion jumps back. All the position keyframes align the footage to the right. In between keyframes - and not every one - it jumps back to the center. The extra keyframes in the clip were an attempt to keep that from happening but it justs happens in shorter increments now.
    Just curious - is a person able to mark their own answer as correct?

  • Need Help Pasting Key Frames from one still image to others, and Changing the duration of multiple still images.

    I'm working on a stop motion project, and I have at least a thousand still images to work with.
    I have adjusted several Key Frame settings on the 1st still image in my project, such as
    Brightness
    Cropping
    Scale
    Position
    I now want to apply these exact settings to hundreds of still images at a time that make up one scene in the project (but not all still images in the entire project).. Is there a way to paste or easily transfer them?
    Also, there are scenes I'm working on in which I want to change the image duration of hundreds of photos at once, but not change to duration of all images in the project, is this possible?
    I've looked at several different web-links, but none of them have what I'm looking for. If you can please help me, I'd be willing to send you $10 through paypal. Knowledge is power; the solution to these problems would save me hours of time. If you don't fully understand my questions I can send you a pictures or a video, pointing out my needs.

    Stan,
    Thanks again for your input.
    When the project is created, I don't recall seeing the preference settings until after the project opens the first time.  In that case if certain media was imported into the project panel but not in the sequence, after the duration was changed, it would be necessary to remove the media from the project panel then re-import again.  If there is a workaround to this please let me know.  It also doesn't appear that creating a new sequence would prevent the re-importing.  Could you confirm?
    Thanks for the link on automating to sequence--I remember that from CS4.
    The application of identical effects to media on the timeline in a sequence was something I had learned back in CS3 or maybe earlier CS4 where the effected, in this case a transition between images was applied then copied then using the paste or (Control V) command, applied to all other stills.  That worked fine but with lots of images, it ends up being a lot of "point and clicks" since the CTI must be moved to each transition insertion point before the paste is applied. 
    I actually thought that I had seen someone select the remainder of the images in the sequence then apply the paste command but I was never able to make that work.  Have you heard of such a short-cut?
    Much thanks again!!

  • Effects and key-frames not working on some clips Premiere CC 2014

    Hi. I am having an issue where effects and key frames applied to both audio and video are not working, but only sometimes. Even after I render or export the video, the effects are not showing up. For example, trying to adjust volume using key-frames on some clips works fine, and not at all on others. The key-frames show up and I can see the volume changing in the effects panel, but it is not happening. Another example is changing the opacity on some video clips and it does not work sometimes. Same thing, I can see the key-frames and the values changing, but it's not actually happening. I have uninstalled and re-installed premiere pro and media encoder with no luck. I have uninstalled and re-installed the latest Nvidia drivers with no luck. Just to restate, this only happens on some clips and rendering or exporting the video does not help. My computer specs are:
    MSI GT60 Laptop:
    Intel Core i7 4800MQ (2.70GHz)
    16GB Memory 1TB HDD 128GB SSD
    NVIDIA GeForce GTX 880M 8GB
    2880 x 1620 16:9 3K Display
    Windows 8.1 64-Bit

    Here is the exact screenshot.  Now I'm also trying other effects as stated in my original post.  But this effect is just an example.  Is there really something that I'm doing wrong here?  Or am I forgetting something?  Is there some special "adobe doesn't let keyframes work on mpg's" rule or something silly like that?
    I wish that I could post a video, but I don't know how.
    Please let me know what I need to do to make this work properly.
    TEX

  • Question, Trouble with 1st key frame

    Let me thank anyone who is nice enough to answer my beginners questions in advance. I made my first very simple flash file yesterday and things went pretty well after I figured out that you had to insert "blank key frames" in the time line until you want something to come on after the beginning of the sequence. I have something that is good enough to go on my web site except for the very beginning of the movie. When my movie recycles everything comes on for 1/12 of a second because every layer has a darkened key frame in position one. From then on it works fine until it recycles again and of course, everything reappears for 1/12 of a second because we are back at the beginning. How do I stop the layers that are programmed to come on later in the movie from flashing on when the 1st frame is passed by on repeats? Something simple I'm sure because I don't see everyone else's movies doing this : < ) Vern

    I have my little Flash movie working pretty well and sent it to the forum where it has been posted as a banner ad. The new problem is that it does not send respondents to my web site when they click on the ad. The folks at the forum think I need to embed my web site address somewhere in the Flash file. I looked through the Publish Settings where I thought this would be covered and could not find anything that looks appropriate. Hoping someone can give me a clue : < )
    Vern

  • Easier Interpolation of Key Frames?

    Hey, me again.
    I'm animating a camera around with key frames and I was wondering if there is easier way to select Ease In and Ease Out for interpolation than using the Key Frame Editor and having to manually select each animated parameter and then clicking on the key frame and selecting the interpolation. I personally don't have a clue why right-clicking on the key frame in the timeline doesn't bring up an Ease In and Out option that applies to all parameters.
    Thank you for your time!!!
    Scot

    Normally if you have the selection tool (a) active
    all you do is click and drag. You might have better
    luck with the pen tool (p) itself, but enlarge your
    view in the Timeline so you don't add more keyframes
    by mistake. Another option is to do it numerically in
    the Viewer: position the playhead right on the
    keyframe and type the new value into the appropriate
    field. Working bigger has made adjusting keyframes
    alot easier for me. Not very prfound help...but it's
    what I know.
    Dual
    G5/2.5GHz/4.5 GB, internal ATA, G-SATA 500   Mac
    OS X (10.4.6)   Final Cut Studio
    Thanks a lot for your help.
    what you meant
    "Another option is to do it numerically in the Viewer: position the playhead right on the keyframe and type the new value into the appropriate field."
    only permits to position the new KF at the new place. Is that right ?
    not to erase the previous one.
    As a matter of fact I tried what you and Brian suggested and I could manage.
    Bernard

  • Extraction Key Frames from a video

    Hi all,
    I would like to know what is the best way to extract keyframe from a video.
    My Status (butr I can cahnge it)
    I'm Marco and I'm using JMF; I need for an help because I don't know how to extract keyframes from AVI and MPG files.
    I'm using the code posted in this forum for extracting all frame in a video with the adding of an if expression that in the accessFrame method that I report below:
    void accessFrame(Buffer frame) {
    BufferToImage stopBuffer = new BufferToImage((VideoFormat) frame.getFormat());
    Image stopImage = stopBuffer.createImage(frame);
    try {
    BufferedImage outImage = new BufferedImage(size.width, size.height, BufferedImage.TYPE_INT_RGB);
    Graphics og = outImage.getGraphics();
    og.drawImage(stopImage, 0, 0, size.width, size.height, null);
    Iterator writers = ImageIO.getImageWritersByFormatName("jpg");
    ImageWriter writer = (ImageWriter) writers.next();
    File f = new File(frame.getSequenceNumber() + ".jpg");
    if ((frame.getFlags() & Buffer.FLAG_KEY_FRAME) != 0){{color}
    {color:#ff9900}
    ImageOutputStream ios = ImageIO.createImageOutputStream(f);
    writer.setOutput(ios);
    {color:#ff9900}
    writer.write(outImage);
    ios.close();}
    } catch (IOException e) {{color}
    System.out.println("Error :" + e);
    So, I'm able to extract some keyframe, but i'm not sure it is the correct way and my dubt grows out of the fact that without the if expression highlighted in red, it seems that I have more keyframes (those ones with flag ==1040). Another problem is that it works only with AVI because MPG instead of 1040, they have alternate sequence of 32 and 1056.
    Cheers and thank u
    Marco

    >
    With the code yoodleyee posted, frames can be extracted and converted from the raw decoded format into images, but no guarantee that the frame extracted is a key frame, isnt it?Actually, there is such a guarantee...because the FrameGrabbingControl isn't implemented in any video format that uses keyframes. So, if it works, then every frame of the video is a keyframe, and it won't work otherwise.
    How can key frames be detected with JMF and then extracted with the code provided? Any tutorial or sample code about that?They can't be. You can write a custom codec that will give you access to every frame, regardless of the format, if you're wanting to get all of the frames.
    Example: [http://java.sun.com/javase/technologies/desktop/media/jmf/2.1.1/solutions/FrameAccess.html]
    But JMF doesn't have any way of dealing with key frames directly, at least that I am aware of.

  • Im trying to make a simple 360 rotation for a 3d logo in CC 2014 but when i tried to create the 1st key frame the image when out axis

    im trying to make a simple 360 rotation for a 3d logo in CC 2014 but when i tried to create the 1st key frame the image when out axis

    I find that if you have multiple 3d object  they must be merged into a single 3d layer their positions reset to align to the same axises then sized and positioned along them. The layer should then be able to be animated well around an axis like the y axis. Here a Sphere, Cylinder and ring. http://www.mouseprints.net/old/dpr/McAssey-CC.mp4

  • Problems with animations using key frames and other bugs

    To me, the current version of Acrobat 3D Toolkit (7.0.7) seems like a beta version -- unfortunately I payed the full price. Or maybe there are a few settings only set wrong on my system and someone can tell me how to correct this ...
    ++ Animations using key frames
    According to the manual page 86:
    <-----
    6. Ensure the time/frame line is positioned at frame 0, right-click over the time/frame line in the timeline, and then click Insert Key.
    ---->
    I cannot get this context menu option (see http://www.vornweg.de/acrobat3d/no-insert-key-option.gif )
    ++ Empty and hence almost useless Animations Options dialog
    The Animation Options dialog does not list any Sequence entries -- although there are sequences available, see http://www.vornweg.de/acrobat3d/empty-animation-options-dialog.gif.
    ++ Mixed up icon bars
    Moving icon bars around can result in a complete mix-up of unusable icons, see http://www.vornweg.de/acrobat3d/mixed-up-menus.gif
    ++ Functionless Object Position toolbar
    The object position cannot be set using the Object Position toolbar, the OK icon is deactivated all the time although the tick icon is darker green, i.e. supposedly active (see http://www.vornweg.de/acrobat3d/position-panel.gif
    ++ Missing things
    Why is there no properties panel visible all the time, displaying the properties of the selected object and allowing to change properties (e.g. positions, angles etc.)?
    Why is it impossible to view different trees at the same time (e.g. scene tree and animation tree)?
    Why is it impossible to have different models open simultaneously? (E.g. to compare settings or even to copy properties/objects from one model to the other.)
    Why is it impossible to create new folders in the scene tree? Imported folders are available, but for the scene management within Acrobat 3D I may have different requirements than the CAD designer had. (Also, I would like to put new objects in folders of my own.)
    Why is tabbing not supported more extensively? E.g. All the different trees (Folders, Scene Tree, ...) could all be put into a single tabbed panel saving valuable space on my screen but still giving easy access to all items.
    Why is there no Undo for camera position changes?
    Why is there no Undo for material edits (e.g. applying a new material to an object)?
    Why is it only possible to animate object movements, not the making visible/invisible of objects and changes of the camera position?
    Why is it impossible to save object selections? Within a larger model it always is a lot of clicking to get the view required for certain actions.
    Why are there a lot of different Display options available on-screen but when a scene is rendered into a file, Acrobat 3D uses the same display option all the time (i.e. Solid)?
    Probably this list could be extended quite heavily. And some of these missing things may be time intensive to realize (and saved for future versions), others are comparably basics now-a-days.

    I agree with the "beta" feel of the 3D Toolkit. I have been very frustrated getting animation to work well. Specifically, I made an animation that plays in Toolkit, imports and plays into Acrobat 3D, but does not play in Reader. It displays 3D and rotates, etc., but I cannot get the animaiton to play.
    The contextural menu issue you see I see also. The menu appears, but without the "add Key Frame" item. I find that if I select an object, move it a bit, move it back, then the menu will appear. (at least sometimes I think) Pretty frustrating.

  • Importance of Key Frame Interval in live streaming

    What is the significance of Key frame interval in live streaming. In VOD I know that media players seeks between these keyframes but what is use of it in live streaming. Any effect on quality ?
    Please help
    -Prem

    Sorry the recommendations didn't work. I tested two 1080p files – one 23.98 fps and a 29.97 fps – at those settings. No loss of sync whatsoever here.
    So perhaps there is something about your source file that's a problem. Try another file and see.
    On a different, but related topic, the MPEG4 encoding that Compressor 3.5 uses is kind of long in the tooth. You'll note in the user manual that all the discussion about features and settings seems to presume that the file will not be re-encoded. (Hence, my question about whether it was for your own Web Site.)
    All the video services take whatever we upload and re-encode them to their proprietary specs. So generally it's best to upload as much info as possible. (David Brewer, who frequently contributes to these boards, uploads very large Pro Res files with good results.)
    YT's advanced encoding guidelines recommend the MP4 container, but with the h.264 codec. That is the Part 10 MPEG standard, which Compressor 3.0 and 3.5 cannot do. (However, Compressor 4.0 can do that encode, which is one of benefits of having that version.)
    FWIW, all videos that I prepare for the Web are h.264 .mov files (not mp4) and I've not had any quality issues with video or audio. Just personal preference.
    Perhaps someone else will have some ideas why you lose sync other than sample rate and/or change in frame rate.
    Good luck.
    Russ

  • Key frames and motion -- I give up.  I'm just stupid.

    I've edited "real" film and tons of video but for some reason I just can't seem to wrap my brain around this motion and keyframe issue. It's completely counter intuitive and I've tried everything I can from common sense to just plain WAG and I cannot seem to understand the process of how to make motion happen in a piece of video. Am I alone in this? All I want to do is to slowly zoom out and tilt from a still image -- not that complicated except for FCP makes it so. How do I do this? Why doesn't it make sense? What's the process? Where's the logic?
    Here's what I want to do: I have a picture of something. I want to draw away from a zoomed in portion and tilt as I move back and away -- sort of like flying I guess. Where do I set my key frame(s)? I need a step by step hand-holding here because I just don't get it and I'm frustrated and have already pounded my keyboard once and I know it won't take much more before I have to go buy another one.
    Sheesh!
    Much appreciated.

    Go to the first frame of the clip in question. Double click it to open in the viewer. Go to the motion tab. Position it as you want it to be.
    Add a keyframe for position, one for scale and one for center. Open the triangle for the distort pane and add keyframes for each of the 4 coordinates and one for aspect ratio. Now play down the clip to the point where you want your move to end.
    Adjust each of the parameters to taste. FCP will automatically add keyframes where a change has taken place. Render if necessary and take a look. Tweak to taste.
    If you want it to hold at the head, do the above, move down the timeline to where you want it to move, add keyframes again to that point then go to the end and do as outlined above.

  • Changing the function of the Media Player Hot Key on the Laptop itself

    Hey everyone,
    I was wondering if anyone knew of a way to change what the Media Player Hot Key on the Laptop itself does? I've got the Power Button, Internet, Media Player, Play/Pause, Stop, Rewind & Fast Forward, but the Media Player Hot Key is pretty useless to me, and I'd like to change its function, to open Outlook instead, but does anyone know if that's even possible?
    I'm almost positive that there's a way, but I just can't seem to find it, if anyone can help me, then I would really appreciate it,
    Cheers.

    Hi
    I remember it was possible to assign different functions to the control buttons on several units.
    I dont know what unit your use but you should check the Toshiba control button application which could be installed on your notebook.
    You should find it in the control panel
    This application could allow you to configure the control buttons.
    But if this software will not provide this option you will be not able to change the functionality

  • Audio Key frames not staying set

    I have three pieces of Smartsound music in my video. I add keyframing (rubber banding) the audio to accomodate a voiceover. After I set the key frames ((about 20) I look back and they have all move positions. I've gone back a reset all the keyframes about three times and each time after I finish, the key frames are all in the wrong position. I have tried repairing permissions, as well as doing a "save as" in FCP...but the problem persists. Any suggestions?

    Forgive me for saying it, but it sounds like possible user error ... certainly keyframes do not usually move all by themselves. But hard to guess exactly how or why these keyframes are moving.

  • KEY FRAME TROUBLE IN THE GEOMETRY ROOM

    Hi,
    In the Secondary Room I have chosen User Shape - I am transferred to the Geometry Room. I select the Shapes tab, create a shape, press Attach, then set a Key Frame. The Key Frame is set but is not highlighted so it is not active. I can press Control "Zero" and it becomes highlighted - another press on Control "Zero" and it is deleted.
    I have closed Color, trashed the preferences and restarted the computer - no change.
    Any suggestions?
    David Cape

    Hi JPo,
    Thank you for the very interesting Post. The trouble began when I lost all my Key Frames. I restarted by selecting an existing shape from the Bin in the Geometry Room. I then set a Key Frame. The Key Frame appeared on the Time Line, but was not highlighted so it was not active. If instead, I pressed "New" to create a new shape all went well.
    With input from friends at Creative Cow I came up with a Work Flow for Key Framing User Shapes. It probably needs further fine tuning. Your Poat deals with using existing Shapes to Key Frame - a necessary addition to the Work Flow.
    USER SHAPES & KEY FRAMES WORK FLOW
    1) Go to the Secondary Room - choose User Shapes.
    2) In the Geometry Room create a new User Shape and press the Attach button, then set softening as required. Now set a Key Frame.
    3) Move the Play Head to a new position in the clip - set a Key Frame then make changes to the User Shape.
    4) Continue this precess until the desired effect has been attaned.
    5) The Shape can be revised by navigating from Key Frame to Key Frame. Changes to the User Shape can not be made between Key Frames - first set a new Key Frame, then make changes.
    6) If the Play Head is moved outside the clip, the User Shape will disappear in the Geometry Room. The Key Frames will not be affected. The User Shape can be reapplied. In the Shapes list (Geometry Room), click on the exact User Shape you started with. The Shape name, the Grade, and the Room in which the Shape originated are displayed. Do not at any time push the Attach or Detach buttons (Key Frames will be lost).
    7) If the User Shape is moved in the window for any reason, be certain the center point remains visible on the screen so that the Shape can be moved back to its original position.
    Again, many thanks,
    David Cape.

Maybe you are looking for

  • Streaming and Delivery using Quicktime Pro software.

    I was reading the tutorial about Streaming and Delivery with the Quicktime Pro software. I have questions around the steps that are listed to be taken in order to create a streaming video. Here are a list of the steps and the link to this website pag

  • Calling Synchronous RFC Function Module in Background

    Hi all, Currently we are working on some requirement where in we have to retrieve data from one system(CRM) and update the same into another system(ECC). We have developed a RFC Function in CRM system and it is being called from ECC system as in sync

  • Getting the Right Connections

    Lo and behold but what did I get from my daughter and son in law this AM but an Apple TV! I had a bad enough time putting together my AV receiver and HD TV (both made by Sony) and now I am a bit uncertain as to how to connect the Apple TV to my exist

  • Design View Problem

    I am having an issue in Design View for DW 8. http://www.sports-cals.com    is the live site. When I am working locally in design view it looks like this (index page): No background at all.   Im sure its a simple setting but i cant find it for the li

  • Can't download BB Link !

    Hallo, I'm just trying to transfer all my datas from my previous BB and the new Z10, but I'm not able to install Blackberry Link in my PC. When I try to start the download process I receive this error message: Downloads of this software are not yet a