my viedo that i am trying to edit only plays for a short duration how do i make it longer?
IT's not clear what you mean. The comp? The layer? RAM preview? You need to explain better and provide proper system and version information.
As Mylenium says, we don't know what you're asking.
However, from your question, it sounds like you would greatly benefit from this resource: Getting started with After Effects
Retrieving data ...