banner



How To Play An Mp4 In Animate

Breathing provides several methods by which you can incorporate video into your Breathing document and play information technology back for users.

Before you lot begin

Earlier you start working with video in Animate, it is of import to understand the following information:

  • Breathing tin only play specific video formats.

    These include FLV, F4V, and MPEG video. For instructions on converting video in other formats, see Create video for employ in Breathing.

  • Utilise the divide Adobe Media Encoder application (included with Animate) to convert other video formats to F4V. For instructions, come across Create video for apply in Animate.

  • In that location are unlike ways of calculation video to Animate, each with advantages in different situations. See below for a list of these methods.

  • Animate includes a Video Import Wizard that opens when you choose File > Import > Import Video.

  • Using the FLVPlayback component is the simplest way to quickly get video playing in a Animate file.

    For instructions, see Progressively download video using a web server.

Methods for using video in Animate

You can use video in Animate in different ways:

  • Progressive download from a web server

    This method keeps the video file external to the Breathing file and the resulting SWF file. This keeps the SWF file size small. This is the virtually mutual method of using video in Breathing.

  • Stream video using Adobe Media Server.

    This method besides keeps the video file external to your Breathing file. Adobe Media Streaming Server gives you secure protection of your video content in addition to a shine streaming playback experience.

  • Embed video data directly inside a Animate file

    This method results in very large Animate files, and is only recommended for short video clips. For instructions, see Embed video within an Breathing file.

Progressively download video using a spider web server

Progressive downloading lets you utilise either the FLVPlayback component or ActionScript that you write to load and play dorsum external FLV or F4V files in a SWF file at runtime.

Because the video file is kept external to the other Animate content, it'southward relatively easy to update video content without republishing the SWF file.

Progressive downloading provides the following advantages over embedding video in the Timeline:

  • During authoring, you can publish merely your SWF file to preview or examination office or all of your Breathing content. This results in faster preview times and quicker turnaround on iterative experimentation.

  • During playback, video begins playing as soon as the first segment of video is downloaded and cached to the local estimator's deejay bulldoze.

  • At runtime, video files are loaded by Flash Player from the computer's disk bulldoze into the SWF file, with no limitation on video file size or duration. No audio synchronization issues or retentivity restrictions exist.

  • The frame charge per unit of the video file can be different from the frame rate of the SWF file, assuasive for greater flexibility in authoring Breathing content.

Import video for progressive download

You lot tin can import a video file that is stored locally on your computer, and then upload the video file to a server after importing it to your FLA file. In Animate, when you import video for progressive download, you are actually adding simply a reference to the video file. Animate uses the reference to observe the video file on your local computer or on a web server.

You tin can also import a video file that is already uploaded to a standard web server, an Adobe Media Server (AMS), or Flash Video Streaming Service (FVSS).

  1. Select File > Import > Import Video to import the video clip into the current Animate document.

    Select video window

    Select video window
  2. Select the video prune to import. You can select either a video clip located on your local computer, or enter the URL of a video already uploaded to a web server or Adobe Media Server.

    • To import video located on your local figurer, select Load external video with playback component.

    • To import video already deployed to a web server, Adobe Media Server, or Wink Video Streaming Service, select Already deployed to a web server, Flash Video Streaming Service, or Stream From Adobe Media Server, and enter the URL of the video clip.

     The URL for a video clip located on a spider web server will use the http advice protocol. The URL for a video clip located on a Adobe Media Server or Flash Streaming Service will employ the RTMP communication protocol.

  3. Select a skin for your video clip.

    Select the skin for video clip

    Select the skin for video prune

    You can choose to:

    • Not use a peel with the FLVPlayback component by selecting None.
    • Select one of the predefined FLVPlayback component skins. Animate copies the skin into the same folder as the FLA file.

     FLVPlayback component skins are slightly different depending on whether you are creating an AS2- or AS3-based Breathing document.

    • Select a custom skin of your own design by entering the URL of the pare on the web server.

     If you choose to use a custom peel invoked from a remote location, and then alive preview will non exist available for the video on Stage.

  4. The Video Import Magician creates an FLVPlayback video component on the Stage that you can use to test video playback locally. When y'all stop creating your Animate document and desire to deploy the SWF file and video clip, upload the post-obit assets to the web server or Adobe Media Server hosting your video:

    • If you are using a local copy of the video clip, upload the video clip (which is located in the same folder as the source video prune yous selected with a .flv extension).

     Animate uses a relative path to point to the FLV or F4V file (relative to the SWF file), letting you use the same directory structure locally that yous utilize on the server. If the video was previously deployed to your FMS or the FVSS hosting your video, yous tin skip this step.

    • The video skin (if y'all chose to employ a skin)

      To apply a predefined peel, Breathing copies the pare into the same folder as the FLA file.

    • The FLVPlayback component

      To edit the FLVPlayback component's URL field to that of the spider web server or Adobe Media Server that yous are uploading the video to, apply the Component inspector (Windows > Component inspector) to edit the contentPath parameter.

Adobe Media Server streams media in real-time to Wink Actor and AIR. Adobe Media Server uses bandwidth detection to deliver video or audio content based on the user'south available bandwidth.

Streaming video with Adobe Media Server provides the following advantages over embedded and progressively downloaded video:

  • Video playback starts sooner than information technology does using other methods of incorporating video.

  • Streaming uses less of the client's memory and disk space, considering the clients don't need to download the entire file.

  • Network resource are used more efficiently, because only the parts of the video that are viewed are sent to the client.

  • Delivery of media is more secure, because media is not saved to the client's enshroud when streamed.

  • Streaming video provides better tracking, reporting, and logging ability.

  • Streaming lets y'all evangelize live video and audio presentations, or capture video from a spider web cam or digital video camera.

  • Adobe Media Server enables multiway and multiuser streaming for video chat, video messaging, and video conferencing applications.

  • Past using server-side scripting to command video and sound streams, you can create server-side play lists, synchronized streams, and more than intelligent delivery options based on the client's connection speed.

To learn more near Adobe Media Server, run into www.adobe.com/get/flash_media_server.

To acquire more about Flash Video Streaming Service, see www.adobe.com/go/learn_fvss_en.

Embed a video file inside a Animate file

When you embed a video file, all of the video file information is added to the Animate file. This results in a much larger Breathing file and subsequent SWF file. The video is placed in the Timeline where you tin see the individual video frames represented in the Timeline frames. Because each video frame is represented by a frame in the Timeline, the frame rate of the video clip and the SWF file must be set to the same rate. If you utilise different frame rates for the SWF file and the embedded video clip, video playback is inconsistent.

Note: To use variable frame rates, stream the video using either progressive downloading or Adobe Media Server. When you import video files using either of these methods, the FLV or F4V files are self-contained and run at a frame charge per unit carve up from that of all other timeline frame rates included in the SWF file.

Embedded video works all-time for smaller video clips, with a playback time of less than ten seconds. If y'all are using video clips with longer playback times, consider using progressively downloaded video, or streaming video using Adobe Media Server.

The limitations of embedded video include:

  • You might encounter problems if the resulting SWF files become excessively big. Flash Thespian reserves a lot of memory when downloading and attempting to play big SWF files with embedded video, which can cause Flash Player to fail.

  • Longer video files (over 10 seconds long) often have synchronization issues between the video and audio portions of a video prune. Over time, the audio runway begins playing out of sequence with the video, causing a less than desirable viewing experience.

  • To play a video embedded in a SWF file, the entire video file must be downloaded before the video starts to play. If you embed an excessively big video file, it might take a long time for the SWF file to download in its entirety and for playback to start.

  • After a video prune is imported, it cannot be edited. Instead, you must re-edit and re-import the video file.

  • When publishing your SWF file via the spider web, the entire video must be downloaded to the viewer'southward computer before video playback tin begin.

  • At runtime, the entire video must fit into the local retention of the playback computer.

  • The length of an imported video file cannot exceed 16000 frames.

  • The video frame rate and Animate Timeline frame charge per unit must be the same. Set the frame charge per unit of your Animate file to friction match the frame rate of the embedded video.

Yous tin can preview frames of an embedded video by dragging the playhead along the Timeline (scrubbing). Note that the video sound track does not play back during scrubbing. To preview the video with sound, use the Test Movie control.

Embedding a video within a Animate file

  1. Select File > Import > Import Video to import the video prune into the current Animate document.

  2. Select one of the following options:

    Load external video with playback component: Imports the video and creates an example of the FLVPlayback component to control video playback.

    Embed FLV in SWF and play in timeline : Embeds the FLV into the Breathing document and places it in the timeline.

    Embed H.264 videos in timeline : Embeds H.264 videos into the Animate certificate. When you lot import a video using this option, it is placed on the stage to be used as a guide for your animation at design fourth dimension. Frames from the video are rendered on the stage every bit yous scrub through or play the timeline. The audio for the relevant frames is likewise played back.

    When you effort to publish your FLA file with H264 video content on a layer that is neither a guide layer nor a hidden layer, a warning is shown if the platform you are publishing to does not support embedded H.264 videos.

  3. Click Scan and select the video file from your computer and click Next.

    Optional: If you lot take Adobe Media Encoder installed on your reckoner and you lot want to convert the video to another format using AME, click Catechumen video.

  4. Choose the symbol type with which to embed the video.

    Choose the symbol type

    Choose the symbol type

    Embedded Video

    If you're using the video clip for linear playback in the Timeline, importing the video into the Timeline is the most advisable method.

    Movie Clip

    A best do is to identify video inside a movie clip instance, considering you have the most control over the content. The video's Timeline plays independently from the main Timeline. You practise not accept to extend your main Timeline by many frames to accommodate the video, which can make working with your FLA file difficult.

    Graphic

    When yous embed a video prune as a graphic symbol, you lot cannot interact with the video using ActionScript (typically y'all use graphic symbols for static images and to create reusable pieces of animation that are tied to the main Timeline).

  5. Import the video clip direct onto the Stage (and the Timeline) or as a library detail.

    By default, Animate places the video you import on the Phase. To import into the library only, deselect Place Instance on Phase.

    If you're creating a simple video presentation with linear narration and little to no interaction, accept the default setting and import the video to the Stage. To create a more than dynamic presentation, work with multiple video clips, or add dynamic transitions or other elements using ActionScript, import the video into the library. Afterwards a video clip is in the library, customize it past converting it into a MovieClip object that yous can more hands command with ActionScript.

    Past default, Animate expands the Timeline to accommodate the playback length of the video prune you are embedding.

    If the video file contains audio that y'all don't want to import, deselect Include audio.

  6. Click Next. Review the confirmation messages and click Stop.

    The Video Import wizard embeds the video into the SWF file. The video appears either on the Stage or in the library depending on the embedding options y'all chose.

    Finish video import dialog

    End video import dialog
  7. In the Property inspector (Window > Properties), requite the video prune an instance name, and make whatever modifications to the video prune's properties.

    Video clip instance name

    Video clip example name

Import video files into the library

To import FLV, F4V, or H.264 videos, utilize the Import > Import Video or Import to Library commands.

To create your ain video histrion, which dynamically loads FLV or F4V files from an external source, place your video inside a movie clip symbol. When you load FLV or F4V files dynamically, accommodate the dimensions of the picture show clip to match the actual dimension of the video file and calibration the video past scaling the film clip.

 A best practise is to place video inside a movie clip example, which gives you the well-nigh control over the content. The video's Timeline plays independently from the main Timeline. You lot exercise not have to extend your main Timeline past many frames to accommodate the video, which can make working with your FLA file difficult.

  1. To import an FLV, SWF, or H.264 video file into the library, do one of the following:

    • Select File > Import > Import To Library.

    • Select whatsoever existing video clip in the Library Panel, and select Properties from the Library Console menu. You tin can also rght-click on the video file and choose Backdrop in the popular-up menu. Click Import. Locate the file to import, and click Open up.

    Import to library option

    Import to library option

Change the properties of a video prune

You can alter properties for an instance of an embedded video clip on the Stage, assign the instance an instance proper noun, and modify its width, elevation, and position on the Stage using the Belongings inspector. You lot can too swap an instance of a video clip—assign a different symbol to an instance of a video clip. Assigning a different symbol to an instance displays a dissimilar instance on the Phase just leaves all the other instance properties (such as dimensions and registration signal) intact.

In the Video Properties dialog box, you lot can do the following:

  • View information about an imported video prune, including its name, path, creation date, pixel dimensions, length, and file size

  • Change the video prune name

  • Update the video clip if yous modify it in an external editor

  • Import an FLV or F4V file to replace the selected clip

  • Export a video prune every bit an FLV or F4V file

Change video instance backdrop in the Property inspector

  1. Select an instance of an embedded or linked video clip on the Stage.

  2. Select Window > Properties, and do any of the post-obit:

    • Enter an instance name in the Name text field on the left side of the Holding inspector.

    • Enter values for W and H to change the dimensions of the video instance.

    • Enter values for Ten and Y to change the position of the upper-left corner of the example on the Phase.

    • Click Bandy. Select a video clip to replace the clip currently assigned to the example.

    Yous can swap an embedded video prune but with another embedded video clip, and you lot can swap a linked video clip merely with another linked video clip.

View video prune backdrop in the Video Properties dialog box

  1. Select a video clip in the Library Panel.

  2. Select Backdrop from the Library Console carte du jour, or click the Properties push located at the bottom of the Library Panel. The Video Properties dialog box is displayed.

Assign a new proper name to, update, or replace a video

  1. Select the video clip in the Library Console and select Properties from the Library Panel menu.

    • To assign a new name, enter the name in the Proper noun text field.

    • To update a video, navigate to the updated video file and click Open.

    • To replace a video, click Import, navigate to the FLV, F4V, or H.264 file to replace the current clip, and click Open.

Command video playback using the Timeline

To control playback of an embedded video file, command the Timeline that contains the video. For example, to pause a video playing on the main Timeline, yous would call a terminate() action that targets that Timeline. Similarly, you lot can control a video object in a film clip symbol past controlling the playback of that symbol'due south Timeline.

You tin apply the following actions to imported video objects in pic clips: goTo, play, cease, toggleHighQuality, stopAllSounds, getURL, FScommand, loadMovie, unloadMovie, ifFrameLoaded, and onMouseEvent. To use deportment to a Video object, first convert the Video object to a movie clip.

To show a live video stream from a camera, apply ActionScript. Starting time, place a Video object on the Phase, select New Video from the Library Panel menu. To adhere the video stream to the Video object, utilize Video.attachVideo.

Run into as well Video and attachVideo (Video.attachVideo method) in the ActionScript 2.0 Language Reference, and fl.video in the ActionScript three.0 Linguistic communication Reference.

Update an embedded video after editing its source file

  1. Select the video clip in the Library Panel.

  2. Select Properties and click Update.

    The embedded video clip is updated with the edited file. The pinch settings you selected when you lot first imported the video are reapplied to the updated clip.

Source: https://helpx.adobe.com/animate/using/add-video.html

Posted by: davidsonofeautioull.blogspot.com

0 Response to "How To Play An Mp4 In Animate"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel