MediaComposition cannot do crossfade transitions, so a custom frame pipeline is needed
A developer on Windows 11 found that the built-in MediaComposition API cannot produce a simple crossfade between two photos, since it handles clips only in strict sequence. Video effects operate on single streams, and overlay opacity is a fixed value rather than an animated keyframe, so the limitation is structural rather than temporary. Rendering each transition separately with MediaComposition is technically possible but produces many small encodes that scale poorly for long slideshows. The author instead proposes rendering every frame directly with Win2D from a timeline model and encoding via MediaStreamSource and MediaTranscoder. This approach keeps preview and export identical and makes new transitions simple to add, at the cost of one extra MIT-licensed Microsoft dependency.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in