MP4/FLV Video

From Director Online Wiki
Jump to: navigation, search

MP4 and FLV Video

New to 11.5 | MP4 Lingo By Category | MP4 Lingo (alphabetical)

Director 11.5 supports MP4, F4V, and FLV file formats, if the video is encoded using the H.264 codec.

Differences between MP4/FLV and QuickTime

  • MP4 and FLV members and sprites are set to be non-Direct To Stage by default
  • Sprites with #mp4 and #flv members can not display a built-in controller, where #quickTimeMedia sprites can.
  • The duration property of #mp4 and #flv sprites is measured in milliseconds. For QuickTime members, it is measured in ticks (1/60th of a second)
  • You have direct access to the .image property of both sprites and members
  • MP4 and FLV sprites support an [[mp4
  • You can use the play() method on both sprites and members. This means that you can play the video without placing a sprite on the Stage. You can then grab the image of the member and use it for (say) a 3D texture.
  • You have access to the sound track of both the sprite and the member, via its .mixer property.
  • You can set the movieTime property of a QuickTime sprite instantaneously. To jump to a particular section of an #mp4 or #flv sprite, you must use the asynchronous seek() method. The playback position of the sprite will not be updated until the Director playback engine has a moment between displaying frames. The update will take place sometime between #enterFrame and #stepFrame.

In Director 11.5.0, there is no provision for progressive playback of an MP4 or FLV file downloaded from a remote server. You can either download the entire video, or use the Flash Media Server to stream the file. A full licence for Flash Media Server 3.5 costs US $4500 at the time of writing.