Video file input
  • 21 Sep 2024
  • 3 Minutes to read
  • Dark
    Light
  • PDF

Video file input

  • Dark
    Light
  • PDF

Article summary

Media file input/ Movie/Audio file input

Movie/Audio file input supports playback of video clips as well as looping playback and automatic startup.

  • Media source - Use the Load button to load a clip into Composer. If a clip has been loaded, but the file has been modified, you can use the Reload button to refresh the clip in Composer. Use the Clear button to unload the clip.
    Note! Only movie clips can be loaded–no image files. Supported media format and codecs.
  • Playback state - current playback state
  • Commands
    • Play button - start playback
    • Pause button - pause playback
    • Stop button - Stop playback
  • Configuration
    • End of file behaviour - Determines the action to perform at the end of the file. The options are Loop/repeat playback, Hold the last frame and Stop.
    • Synchronize playback  - All Movie inputs with this checkbox active will start their playback in sync.
    • Start playing when loaded - check this option to automatically start playback when the file is loaded (Default).
    • Video decoder thread count - number of CPU threads used for decoding. 
    • Prefer hardware decoding - The GPU (NvEnc) will decode the file if enabled.  This will reduce the load on the CPU and is preferred for all h264 and h265 clips. (To enable this feature, the video file must be stopped first)
    • Hardware decoding active - If yes, the GPU is used to decode the file . The video file must have a resolution of a minimum of 48x48px. 
    • Cue points JSON - By adding a JSON array, it is possible to call a connector on a specific frame. This will trigger one or more events.
      In the example below, after 100 framesare played, it will trigger a connector called "TOP". After 200 frames, it will trigger the connector "FRONT".
      Example: [ { "100": "TOP" }, { "200": "FRONT" }]
  • Performance and properties
    • Message - Info message
    • Avg video decoding time (ms) - average time (in ms) for decoding a video frame
    • Video buffer memory used (MB) - used memory for buffer
    • Parsed video buffer length (ms) - video buffer
    • Parsed audio buffer length (ms) - audio buffer
    • Video buffer length (ms) - number of video frames decoded (buffered) but not rendered. Buffered video might occur depending on how the video is encoded. For example, if the video encoding utilizes b-frames, there will be a longer video buffer than a video encoded without b-frames.
    • Audio buffer length (ms) - audio buffer length (in ms)
    • Current time - current playback time (Time code) in hours:minutes:seconds:frames.
    • Number of loops played - Counting number of loops
    • VideoTrackInfo - detailed debug information on video track properties
    • AudioTrackInfo - detailed debug information on audio track properties
  • Optional TAGS (space separated)
    • TAGS - Add a "tag"  that can be used in the input smart search function. It is possible to add several tags by separating them by a SPACE char.
  • Resolution
    • Width -  Video width (pixels)
    • Height - Video height (pixels)

* Debug properties. Only visible if "Show debug properties" are enabled in Settings.

HINT
To copy the current frame (image), right-click on the input title and select Copy image.
IMPORTANT
For movie/audio files to loop, the files must be compressed using recommended settings.

Media format and codecs 

Video with audio:
The .mp4 container is preferred for movie files, with an h264/h265 (HEVC) video track and aac audio track. There are multiple compressors for encoding original content or transcoding existing content. Available settings will differ between compressors. The most important settings are: 

  • .mp4 container with h264/h265 video and aac audio
  • Bitrate depends on resolution, but reasonable bitrates are generally between 3 and 15 mbit/s
  • Keyframe (I-frame) distance set to double the move framerate
  • AAC 48 kHz stereo, Bitrate 128 kbps or above
  • If there are options for pooling or interleaving audio, interleaving should always be chosen

Video/audio with alpha channel:
It is possible to use a video containing an alpha channel. Save the video file as a .mov file with the video codec "Quicktime Animation", in colorspace RGBA (with alpha channel).

Handbrake

An excellent utility for transcoding media files is Handbrake. It is free and works for Windows, Mac, and Linux. These are the recommended key settings in Handbrake:

By default, Handbrake will use the suffix .m4v when saving a file, rename the suffix to .mp4 to make Composer recognize the file.

DaVinci Resolve

Another useful tool for converting video clips is Davinci Resolve: https://www.blackmagicdesign.com/products/davinciresolve

Clips exported from DaVinci Resolve is compatible with Composer. For efficient playback, we recommend the following settings:

  • Format: mp4
  • Codec: H.264 or H.265
  • Network optimization: ON 
  • Frame reordering: OFF




Was this article helpful?

What's Next