share a story with impact build and share a complete story stronger than its parts. share just the...
TRANSCRIPT
John SernaPrincipal Program ManagerVideo Editing
Welcome to Windows.Media.Editing
2-555
Jeff McGlynnDeveloperVideo Editing
• Editing Makes Video and Video Apps Better
• Features and Frameworks• Basic Architecture • Editing in Action• Editing Trimmer App
Walkthrough
Agenda
Creates more compelling contentand encourages sharing.
Puts innovation and creativity in the hands of the customer.
An Application That Edits Video
Share a story
with impact
Build and share a complete story stronger than its parts.
When you let customers edit video they can…
Share just the right moment
Windows.Media.Editing gives you the toolsIn Windows Phone 8.1 we are delivering a new API with support for:
Quickly building basic video trimming into any app.
Hardware smart remux for single clip edits
Support complex tasks such as stitching clips.
UI support for timelines with thumbnail generation
Add Background Soundtracks.
Enable 3rd parties to add Audio and Video Effects via MFTs (Media Foundation Transforms.)
Simple Clip Trimming withSmart Remux
Real time preview via Media Stream Source to MediaElementMultiple Clip combine Thumbnail Generation for UIBackground soundtracksAdding still imagesAdding effects using Media Foundation Transforms (MFTs)
Feature Summary and Framework Support
Windows Phone Silverlight 8.1Windows XAML and JS 8.1
Windows XAML and JS8.1
Basic Editing Architecture
MediaComposition: stitched
MediaClip: main MediaClip: insert MediaClip: maintwo
Source File: main
Source File: insert
BackgroundAudio: music
Source File: music
API Trimming and Stitching Example:// Assume we already loaded 2 MediaClips, |main| and |insert|, eg. from a picker.MediaClip maintwo = main.Clone(); // Trim from main everything after the seek positionmain.TrimTimeFromEnd = main.OriginalDuration - seekPosition;
// Trim from maintwo everything before seek positionmaintwo.TrimTimeFromStart = seekPosition;
// Create composition to stitch clips.MediaComposition stitched = new MediaComposition();stitched.Clips.Add(main);stitched.Clips.Add(insert);stitched.Clips.Add(maintwo);
// Preview the result using MediaElement.MyMediaElement.SetSource(stitched.GeneratePreviewMediaStreamSource(640,480));
Example in C#
Demo
Full featured editing appEffects demo
Demo
Visual Studio Walkthrough: Basic Video Trimmer
In Windows Phone 8.1 Media Foundation is open.
You can create and call your own Media Foundation Transform (MFT) from the Editing APIs
This allows: Custom Filters Audio Transforms
Adding custom MFT Effects
Questions?FYI: Expert 1:1 Office Hours5:30PM–6:30PM
Your Feedback is Important
Fill out an evaluation of this session and help shape future events.
Scan the QR code to evaluate this session on your mobile device.
You’ll also be entered into a daily prize drawing!
© 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
API Example: Adding an Effect
// Assume we already loaded MediaClip |clip|. clip.VideoEffects.Add(new VideoEffectDefinition("MyEffects.MyGrayScale"));
// Add the clip with effect to compositionMediaComposition composition = new MediaComposition();composition.Clips.Add(clip);
Example in C#