Skip navigation
NOAM1991
Currently Being Moderated

Moving Video with Keyframes

Apr 5, 2012 6:43 PM

Tags: #video #playback #component #stretch #keyframes

Hi,

 

I want to know if its possible to move or stretch out a video as it moves along the timeline. For example, I would like to remove black bars from being shown on the stage in one part of the video, so by stretching it out the black bars wont show, and then I can just revert it back as those frames end. Can I do this with the playback component or embedding?

 

 

thank you,

Daniel

 
Replies
  • Currently Being Moderated
    Apr 6, 2012 4:19 AM   in reply to NOAM1991

    You'll be better off if you use an actual video editing program to fix this... but if you must..

    It'll be pretty tough if the video is all one piece... so I'd suggest you slice out the black bar part as a separate video... which can have it's own display dimensions.

    Here is a good, free, very simple .flv editor that let's you slice a .flv without having to re-render the video:

    http://download.cnet.com/Moyea-FLV-Editor-Lite/3000-2168_4-10912717.ht ml

    So cut out the offending part and export it as a separate video.

    Now you have the first part, the bad part, the last part.

    Then set up your vid players to handle the different dimensions and play consecutively.

    Best wishes,

    Adninjastrator

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 6, 2012 6:40 AM   in reply to adninjastrator

    There's no way you're going to get a seamless change from one video to the next without preloading all 3 which isn't a great strategy.

     

    How are you playing the video? In a FLVPlayback component? Are you coding it yourself using the VideoPlayer or NetStream class? Are you just slapping it on the timeline?

     

    For instance here's a link to the FLVPlayback component AddASCuePoint method. You could manually add in a cue point where you know you need to stretch the video and when the cuepoint fires off you have a handler stretch the FLVPlayback component to any size and position you wish. Add a second cuepoint to tell the FLVPlayback component to return to its normal size. That's pretty easy.

     

    If you're just playing the video embedded on the timeline then you can give the video an instance name and add a frame script right above it where you want it to resize like myVideo.width = 1400;. Then just resize it back to normal where appropriate. What you CAN'T do is add a keyframe in the video at that point or the video will start over. So you can't add a keyframe to that and just set the width in the properties, you'll need to use code to do it.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 6, 2012 8:41 AM   in reply to sinious

    sinious,

    You offer some good options that NOAM should certainly take a look at. But the orignal post was talking about

    video as it moves along the timeline

    and changing the stage at some point along the way.

    Embedding 3 separate video clips into the timeline as mentioned would not require preloading anything, they would play seamless from the first to second to third part... since they are just part of the timeline... no pause as a progressive download would need. The entire timeline is just one big .swf.

    As always, there are many ways to skin a cat!

    Best wishes,

    Adninjastrator

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 6, 2012 8:56 AM   in reply to adninjastrator

    I'm merely saying downloading software, cutting the FLV, reimporting and relaying out the video is a lot more tedious than a frame script at the right position setting the width property *shrug*. No harm.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points