Tag Archives: video

Set video position with a scroll bar with WPF in C#

The example Control a video with the WPF MediaElement in C# lets you set video position in several ways. You can use the Next or Previous buttons to adjust the video’s current position by 10 seconds. You can also enter … Continue reading

Posted in controls, graphics, multimedia, wpf, XAML | Tagged , , , , , , , , , , , , , , , , , , , , | Leave a comment

Make a XAML button library in C#

This example shows how you can build an easily reusable XAML button library in WPF. The example Make a WPF button template in C# uses a WPF button template to make nice round buttons that change their appearance appropriately when … Continue reading

Posted in controls, graphics, wpf, XAML | Tagged , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Make a WPF button template in C#

The example Control a video with the WPF MediaElement in C# uses attractive button images, but those images still sit on top of rectangular buttons. The images were generated by the example Make video control buttons in WPF and C#. … Continue reading

Posted in controls, graphics, multimedia, wpf | Tagged , , , , , , , , , , , , , , , , , , , , | Leave a comment

Control a video with the WPF MediaElement in C#

This example shows how you can control an MP4 video with WPF’s MediaElement control. The control provides a surprisingly nice assortment of features that let you play, pause, position, and otherwise control a video. The following XAML code defines the … Continue reading

Posted in controls, graphics, multimedia, wpf | Tagged , , , , , , , , , , , , , , , , , , | 2 Comments

Change audio gain in C#

Note: This example was written in Visual Studio 2010. This example shows how you can re-encode a video to change its audio gain. Earlier examples such as Change video quality in C# show how to use Microsoft Expression Encoder to … Continue reading

Posted in animation, multimedia | Tagged , , , , , , , , , , , , , , , , , , , | Leave a comment

Merge splash screens and videos in a directory in C#

(Note that this example was written in Visual Studio 2010.) This example shows how you can merge splash screens and videos in a directory. The example Merge videos in C# shows how you can concatenate two videos. Because I had … Continue reading

Posted in animation, files, multimedia | Tagged , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Merge videos in C#

(Note that this example was written in Visual Studio 2010.) My original problem was that I had created a bunch of videos and needed to add a splash screen at the beginning of each. This example merges videos so it … Continue reading

Posted in animation, multimedia | Tagged , , , , , , , , , , , , , , , , , , | 10 Comments

Change video quality in C#

(Note that this example was written in Visual Studio 2010.) This post shows how you can load and save a video with a given video quality. Lately I’ve been recording screencast videos for my next book. Unfortunately I recorded several … Continue reading

Posted in animation, API, multimedia | Tagged , , , , , , , , , , , , , , , , , , | 2 Comments