These AVCore 2 demos all support auto-assembly - that is, you can specify multiple inputs and they will all be assembled together into a single video that will be played back in the browser (if the browser supports video playback.). These demos all use MediaRich's MRL system, so specify the inputs as URL request parameters.

The inputs should be paths to source material, and you will need to place them into the MediaRich VFS in order to read them. (They can also be URLs themselves in which case they will be downloaded and cached by MediaRich before being processed, however the URL strings will need to be properly escaped.)

The input parameter names can be anything that isn't reserved by the script itself as a parameter name. For example ?v1=video1.mp4&v2=video2.mov would work the same as ?something=video1.mp4&another=video2.mov as an example of specifying two input videos named video1.mp4 and video2.mov.

Refer to the comments in the code for the parameters the demos use to choose settings file, output movie, and so on.


AutoAssemblyDemo.ms

This is a basic auto-assembly demo where all inputs are appended together into an output video. No transitions are applied and the internal default callbacks are used so this demo will be the fastest of all the transcoding demos.


DissolveDemo.ms

This auto-assembly demo does a dissolve between inputs and demonstrates using AVProcess.addClip() to create overlapping clips and how to handle them in the frame callback. It also demonstrates the proper method of only using the Media object to apply the dissolve in a way that only slows the transcode down during the transitions.


FadeDemo.ms

This auto-assembly demo does a fade out and fade in between inputs and demonstrates using AVProcess.addBasicClip() to create appended clips and how to handle doing a transisition effect without needing overlapped clips. It also demonstrates the proper method of only using the Media object to apply the fade in a way that only slows the transcode down during the transitions.


OverlayDemo.ms

This auto-assembly demo shows how to overlay a logo and text over every frame of video. It uses a callback to convert the frame into a Media object, do the compositing, and send it back to the exporter.


MetadataDemo.ms

This auto-assembly demo shows how to extract all metadata from a primary input video (both at the container and track level) and embed it into the output video. The assembly is a simple append using the internal callbacks so it should run the same speed as AutoAssemblyDemo.ms


GIFDemo.ms

This auto-assembly demo shows how to convert all of the input videos into a GIF animation and display it in the browser. To keep the GIF small, the durations of all the inputs are limited to 12 seconds. The code in this demo can be reused to create a general method to extract frames from a video and use them in some way. This demo also shows how to process frames without using an AVProcess.