DirectShow Example Programs and Demos

The following demo programs are in separate EXAMPLES subdirectories of the path where you installed your product (such as C:\LEADTOOLS23\Examples\).

The executable files for these examples were compiled with all LEADTOOLS capabilities unlocked. However, for redeployment, some of these capabilities require product-specific unlock keys. Otherwise, if you recompile the examples, the resulting executable files will not have the locked capabilities.

To unlock and redeploy these capabilities, you must purchase an appropriate product license, such as that included with a LEADTOOLS Document/Medical toolkit.

The following demos are available:

C
C++
C#.NET
Multimedia Activation Utilities

C

Demo Name Source Code Path Pre-Compiled Executable Path Description
Capture \Examples\Multimedia\DirectShow\C\Capture \Bin\CDLL\<Win32/Win32/x64/x64>\capture.exe

Capture video from the a selected source e.g(screen, webcam, etc).

  • Choose the type of encoder
  • Edit Capture Size
  • Use one of our filters
Demo Name Source Code Path Pre-Compiled Executable Path Description
cnvmem \Examples\Multimedia\DirectShow\C\CnvMem \Bin\CDLL\<Win32/Win32/x64/x64>\CNVMEM.exe

Convert one video memory stream to another format

  • Add Filters
  • Adjust format specific settings
  • Add recompression
  • Save settings to use again
Demo Name Source Code Path Pre-Compiled Executable Path Description
Convert \Examples\Multimedia\DirectShow\C\Convert \Bin\CDLL\<Win32/Win32/x64/x64>\convert.exe

Convert one video format to another

  • Add Filters
  • Adjust format specific settings
  • Add recompression
  • Save settings to use again
Demo Name Source Code Path Pre-Compiled Executable Path Description
ConvertToMobile \Examples\Multimedia\DirectShow\C\ConvertToMobile \Bin\CDLL\<Win32/Win32/x64/x64>\convertToMobile.exe

Convert a video to a mobile format, such as ipod(MPEG4+AAC)

  • Select Resolution
Demo Name Source Code Path Pre-Compiled Executable Path Description
GenAvi \Examples\Multimedia\DirectShow\C\GenAVI \Bin\CDLL\<Win32/Win32/x64/x64>\GenAVI.exe

Create an avi based on 30 bitmaps

Demo Name Source Code Path Pre-Compiled Executable Path Description
H264Transcoder \Examples\Multimedia\DirectShow\C\H264Transcoder \Bin\CDLL\<Win32/Win32/x64/x64>\H264Transcoder.exe

This example demonstrates how to transcode an h.264 stream to an ISO (MP4) format,
without performing decoding and re-encoding, providing a faster method of conversion
for the following formats:

  • AVI - with H.264 video stream
  • MPEG2 Transport - with H.264 video stream.
  • OGG with H.264.

Note that for this demo to work, audio must be encoded as AAC.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Player \Examples\Multimedia\DirectShow\C\Player \Bin\CDLL\<Win32/Win32/x64/x64>\player.exe

Play a video from various sources, such as : file, stream, tcp/ip

  • Choose demultiplexer to use
  • add various video and audio processors
  • OGG with H.264.

C++

Demo Name Source Code Path Pre-Compiled Executable Path Description
Callbacka \Examples\Multimedia\DirectShow\CPP\AudCalBk \Bin\CDLL\<Win32/Win32/x64/x64>\AudCalBk.exe

Demonstrates the use of the callback filter by letting you skip through the video frame by frame.

Demo Name Source Code Path Pre-Compiled Executable Path Description
AudoReplace \Examples\Multimedia\DirectShow\CPP\AudioReplace \Bin\CDLL\<Win32/Win32/x64/x64>\AudioReplace.exe

A simple one task demo that combines the video from one file and the audio from another.

Demo Name Source Code Path Pre-Compiled Executable Path Description
AVDetection \Examples\Multimedia\DirectShow\CPP\AVDetection \Bin\CDLL\<Win32/Win32/x64/x64>\AVDetection.exe

A capture demo with motion and audio detection

  • Capture from various inputs
  • Use motion detection
  • Use audio detection
Demo Name Source Code Path Pre-Compiled Executable Path Description
Callback \Examples\Multimedia\DirectShow\CPP\Callback \Bin\CDLL\<Win32/Win32/x64/x64>\callback.exe

Demonstrates the use of the callback filter by letting you do lots of different
effects to the video by manipulating the captured frame data.

Demo Name Source Code Path Pre-Compiled Executable Path Description
CallbackOpenGLRender \Examples\Multimedia\DirectShow\CPP\CallbackOpenGLRender \Bin\CDLL\<Win32/Win32/x64/x64>\CallbackOpenGLRender.exe

Demonstrates the use of the callback filter grabbing each frame and then using
OpenGL to render them.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Callback Render \Examples\Multimedia\DirectShow\CPP\CallbackRender \Bin\CDLL\<Win32/Win32/x64/x64>\CallbackRender.exe

This demo demonstrates how to use the Callback filter to access the video frame as a rendered image bitmap during video playback.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Capture \Examples\Multimedia\DirectShow\CPP\Capture \Bin\CDLL\<Win32/Win32/x64/x64>\cCapture.exe

Capture video from the a selected source e.g(screen, webcam, etc).

  • Choose the type of encoder
  • Edit Capture Size
  • Use one of our filters
Demo Name Source Code Path Pre-Compiled Executable Path Description
CaptureDicom \Examples\Multimedia\DirectShow\CPP\CaptureDICOM \Bin\CDLL\<Win32/Win32/x64/x64>\CaptureDicom.exe

A capture demo that allows you to play existiing dicom files and capture new ones

Demo Name Source Code Path Pre-Compiled Executable Path Description
DV Converter \Examples\Multimedia\DirectShow\CPP\CnvDV \Bin\CDLL\<Win32/Win32/x64/x64>\cnvdv.exe

This demo demonstrates how to convert a video and output it to Digital Video (DV) device.

Demo Name Source Code Path Pre-Compiled Executable Path Description
CnvFlash \Examples\Multimedia\DirectShow\CPP\CnvFlash \Bin\CDLL\<Win32/Win32/x64/x64>\cnvFlash.exe

Convert a video to flash video format using h.264 or h.263 encoder, add video and audio processors.

Demo Name Source Code Path Pre-Compiled Executable Path Description
cnvmem \Examples\Multimedia\DirectShow\CPP\CnvMem \Bin\CDLL\<Win32/Win32/x64/x64>\cCnvmem.exe

Convert a video to a variety of formats in memory. You can add audio and video recompression.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Windows Media Converter \Examples\Multimedia\DirectShow\CPP\CnvWM \Bin\CDLL\<Win32/Win32/x64/x64>\cnvwm.exe

This demo demonstrates how to convert a video to a Windows Media (WMV) format.

Demo Name Source Code Path Pre-Compiled Executable Path Description
ConcatAndResize \Examples\Multimedia\DirectShow\CPP\ConcatAndResize \Bin\CDLL\<Win32/Win32/x64/x64>\ConcatAndResize.exe

This demo allows you to concatenate video files and resize them.

Demo Name Source Code Path Pre-Compiled Executable Path Description
ConcatSameSize \Examples\Multimedia\DirectShow\CPP\ConcatSameSize \Bin\CDLL\<Win32/Win32/x64/x64>\ConcatSameSize.exe

This demo allows you to concatenate video files

Demo Name Source Code Path Pre-Compiled Executable Path Description
Convert \Examples\Multimedia\DirectShow\CPP\Convert \Bin\CDLL\<Win32/Win32/x64/x64>\cConvert.exe

Convert to any of our supported formats

  • Add video/audio recompression
  • Add video/audio processors and filters
Demo Name Source Code Path Pre-Compiled Executable Path Description
ConvertKLV \Examples\Multimedia\DirectShow\CPP\ConvertKLV \Bin\CDLL\<Win32/Win32/x64/x64>\convertKLV.exe

Allows for metadata from UAV's using the KLV parsing standards.

Convert a video using one of the following recompressions:

    Video:
  • LEAD Mpeg2 Encoder
  • LEAD Mpeg4 Encoder
  • LEAD H.264 Encoder
  • LEAD H.265 Encoder
    Audio:
  • LEAD AC3 Encoder
  • LEAD MPEG Audio Encoder
  • LEAD AAC Encoder
  • PCM
  • Mpeg Layer-3
Demo Name Source Code Path Pre-Compiled Executable Path Description
ConvertLTES \Examples\Multimedia\DirectShow\CPP\ConvertLTES \Bin\CDLL\<Win32/Win32/x64/x64>\ConvertLTES.exe

Demonstrates optimizing conversion by splitting it up into pieces that can be
converted parallel on a single machine or multiple machines, the demo does it sequentially for simplicity.

Convert a video to one of the following formats:

    Video:
  • WMV
  • WMV - LEAD Mux
  • ASF - LEAD Mux
  • AVI
  • DVSD-AVI
  • DICOM
  • MPEG-2-DICOM
  • MP3
  • Still Image
  • WAVE
  • Raw Stream
  • OGG
  • DVSD-OGG
  • MPEG-1 System
  • MPEG-2 Program
  • MPEG-2 Transport
  • DVD Image
  • ISO(MP4)
  • Flash(H263
  • Flash(H264)
  • MXF
  • DVSD-MXF
Demo Name Source Code Path Pre-Compiled Executable Path Description
Convert to MMS \Examples\Multimedia\DirectShow\CPP\ConvertMMS \Bin\CDLL\<Win32/Win32/x64/x64>\convertMMS.exe

This demo demonstrates how to convert a video to a Windows Media Server supported MMS format.

Demo Name Source Code Path Pre-Compiled Executable Path Description
ConvertSSF \Examples\Multimedia\DirectShow\CPP\ConvertSSF \Bin\CDLL\<Win32/Win32/x64/x64>\convertSSF.exe

Convert to SSF our IIS smooth streaming format, it alternates formats
based on your connection speed to maximize streaming performance

Demo Name Source Code Path Pre-Compiled Executable Path Description
Convert to Media Server \Examples\Multimedia\DirectShow\CPP\ConvertToMediaServer \Bin\CDLL\<Win32/Win32/x64/x64>\ConvertToMediaServer.exe

This demo demonstrates how to convert multiple multimedia files for use with the media server demo.

Demo Name Source Code Path Pre-Compiled Executable Path Description
ConvertToMobile \Examples\Multimedia\DirectShow\CPP\ConvertToMobile \Bin\CDLL\<Win32/Win32/x64/x64>\cConvertToMobile.exe

Convert to a format compatible with one of the following mobile devices:

  • iPod
  • iPad
  • iPhone
  • PSP
  • Zen
  • Zune
  • Smartphone
  • Android
  • Windows Phone
Demo Name Source Code Path Pre-Compiled Executable Path Description
ConvertWMS \Examples\Multimedia\DirectShow\CPP\ConvertWMS \Bin\CDLL\<Win32/Win32/x64/x64>\convertWMS.exe

Convert to WMV or ASF with a LEAD mux and store a script in the header or the stream.

Demo Name Source Code Path Pre-Compiled Executable Path Description
DVDAuthor \Examples\Multimedia\DirectShow\CPP\DVDAuthor \Bin\CDLL\<Win32/Win32/x64/x64>\DVDAuthor.exe

Use this demo to create a DVD image with titles, and chapters.

Adjust the DVD settings, format, menu, compression, and encoders.

Demo Name Source Code Path Pre-Compiled Executable Path Description
DVDBurner \Examples\Multimedia\DirectShow\CPP\DVDBurner \Bin\CDLL\<Win32/Win32/x64/x64>\DVDBurner.exe

Use this demo to burn a DVD

Demo Name Source Code Path Pre-Compiled Executable Path Description
DVR \Examples\Multimedia\DirectShow\CPP\DVR \Bin\CDLL\<Win32/Win32/x64/x64>\DVR.exe

Use this demo to capture video from a live source and then do a buffered playback.
Using our proprietary LBL file format you can read/write to the same file simultaneously.

Demo Name Source Code Path Pre-Compiled Executable Path Description
GenAvi \Examples\Multimedia\DirectShow\CPP\GenAVI \Bin\CDLL\<Win32/Win32/x64/x64>\cGenAVI.exe

Create an avi based on 30 bitmaps

Demo Name Source Code Path Pre-Compiled Executable Path Description
GenAVIDX \Examples\Multimedia\DirectShow\CPP\GenAVIDX \Bin\CDLL\<Win32/Win32/x64/x64>\GenAVIDX.exe

Creates an AVI file composed of frames of a rotating 3D generated cube.

Demo Name Source Code Path Pre-Compiled Executable Path Description
H264Transcoder \Examples\Multimedia\DirectShow\CPP\H264Transcoder \Bin\CDLL\<Win32/Win32/x64/x64>\cH264Transcoder.exe

This example demonstrates how to transcode an h.264 stream to an ISO (MP4) format,
without performing decoding and re-encoding, providing a faster method of conversion
for the following formats:

  • AVI - with H.264 video stream
  • MPEG2 Transport - with H.264 video stream.
  • OGG with H.264.

Note that for this demo to work, audio must be encoded as AAC.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Live RTSP Server \Examples\Multimedia\DirectShow\CPP\LiveRTSPServer \Bin\CDLL\<Win32/Win32/x64/x64>\LiveRTSPServer.exe

This demo demonstrates how to live stream the multimedia capture from a video/audio device using RTSP.

Demo Name Source Code Path Pre-Compiled Executable Path Description
MedaInfo \Examples\Multimedia\DirectShow\CPP\MediaInfo \Bin\CDLL\<Win32/Win32/x64/x64>\MediaInfo.exe

Allows you to get info about a media file, general meta info
and video/audio information such as fps.

Demo Name Source Code Path Pre-Compiled Executable Path Description
MPEG2 Transport \Examples\Multimedia\DirectShow\CPP\Mpeg2Transport \Bin\CDLL\<Win32/Win32/x64/x64>\MPEG2Transport.exe

Play a mpeg2 file or open a tcp/udp stream

Also demonstrates use of the callback filter allowing you to go frame by frame

Demo Name Source Code Path Pre-Compiled Executable Path Description
NetClient \Examples\Multimedia\DirectShow\CPP\NetClient \Bin\CDLL\<Win32/Win32/x64/x64>\NetClient.exe

Connect with a stream from the NetServer and playback a live stream from a capture device.

Demo Name Source Code Path Pre-Compiled Executable Path Description
NetServer \Examples\Multimedia\DirectShow\CPP\NetServer \Bin\CDLL\<Win32/Win32/x64/x64>\NetServer.exe

Capture video from a capture device and host it to be streamed to a connection(try the NetClient).

Demo Name Source Code Path Pre-Compiled Executable Path Description
Player \Examples\Multimedia\DirectShow\CPP\Player \Bin\CDLL\<Win32/Win32/x64/x64>\cPlayer.exe

Player demo demonstrates our main player using any one of our supported video formats or opening a stream.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Publish \Examples\Multimedia\DirectShow\CPP\Publish \Bin\CDLL\<Win32/Win32/x64/x64>\publish.exe

This demo demonstrates how to publish a video to a Windows Media Services (WMS) Server.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Restreamer \Examples\Multimedia\DirectShow\CPP\Restreamer \Bin\CDLL\<Win32/Win32/x64/x64>\Restreamer.exe

Demonstrates how to stream an MPEG2 compatible file.

Demo Name Source Code Path Pre-Compiled Executable Path Description
RTSPServer \Examples\Multimedia\DirectShow\CPP\RTSPServer \Bin\CDLL\<Win32/Win32/x64/x64>\RTSPServer.exe

This demo demonstrates how to host a RTSP stream.

Demo Name Source Code Path Pre-Compiled Executable Path Description
TV Viewer \Examples\Multimedia\DirectShow\CPP\TvViewer \Bin\CDLL\<Win32/Win32/x64/x64>\tvviewer.exe

Demonstrates the use of the TVTuner Class with the PlayCtrl control to view multimedia from a TV Tuner device.

Demo Name Source Code Path Pre-Compiled Executable Path Description
VOverlay \Examples\Multimedia\DirectShow\CPP\VOverlay \Bin\CDLL\<Win32/Win32/x64/x64>\VOverlay.exe

This demo demonstrates the video overlay, allowing you to overlay an image onto a video and control it's position and opacity.

Demo Name Source Code Path Pre-Compiled Executable Path Description
LTMM Net Client \Examples\Multimedia\DirectShow\CPP\ltmmNetClient \Bin\CDLL\<Win32/Win32/x64/x64>\ltmmNetClient.exe

This demo demonstrates how to create a video conferencing client.

Demo Name Source Code Path Pre-Compiled Executable Path Description
LTMM Net Server \Examples\Multimedia\DirectShow\CPP\ltmmNetServer \Bin\CDLL\<Win32/Win32/x64/x64>\ltmmNetServer.exe

Demonstrates how to host a video conferencing server.

  • Manage video and audio sources and compression
  • Send and receive messages from connected clients
  • Monitor and control client connections and users

C#.NET

For the demos complete list, refer to Leadtools.Multimedia Sample Programs section.

Multimedia Activation Utilities

Demo Name Pre-Compiled Executable Path Description
LEADTOOLS Multimedia Filter Manager \Bin\CDLL\<Win32/x64>\ltmmFMgr.exe

The "LEADTOOLS Multimedia Filter Manager" utility that allows you to add 3rd party processor filters to the LEADTOOLS Video and Audio Processor categories.

Demo Name Pre-Compiled Executable Path Description
DirectShow Filter List \Bin\CDLL\<Win32/x64>\LtMMListFilters.exe

The "DirectShow Filter List" utility that allows you to list DirectShow filters, change their merit and obtain information like a filter's CLSID or display name strings. These strings can then be used to programmatically access these filters in your applications.

Demo Name Pre-Compiled Executable Path Description
LEADTOOLS Directshow Filters Merits \Bin\CDLL\<Win32/x64>\LTMMFiltersMerits.exe

The "LEADTOOLS Directshow Filters Merits" utility that allows you to change various decoder and splitter merits. The utility will let you control all filters found in your system.

Demo Name Pre-Compiled Executable Path Description
ltmmFilterMerit \Bin\CDLL\<Win32/x64>\ltmmFilterMerit.exe

The "ltmmFilterMerit" is a command line utility for changing the merit of DirectShow filters such as decoders and splitters. This utility can be used to control all filters found in the system.


Demo Name Pre-Compiled Executable Path Description
ltmmWin7PlaybackUtil \Bin\CDLL\<Win32/x64>\ltmmWin7PlaybackUtil.exe

The "ltmmWin7PlaybackUtil" can be used to disable/enable the default Media Foundation Decoders and Demultiplexers on Windows 7. Use it to force Microsoft Windows Media Player and Media Center to use the LEAD DirectShow Decoders and Demultiplexers.

Demo Name Pre-Compiled Executable Path Description
LEADTOOLS MeritSPDIF \Bin\CDLL\<Win32/x64>\MeritSPDIF.exe

The "LEADTOOLS MeritSPDIF" utility allows you to enable and disable the LEAD SPDIF Audio Passthru filter in your system.

See Also

Introduction

LEADTOOLS Support Forums

LEADTOOLS Documentation

Getting Started with LEADTOOLS Multimedia

LEAD Technical Support

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Multimedia C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.