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:\LEADTOOLS22\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/x64>\capture_Original.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/x64>\CNVMEM_Original.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/x64>\convert_Original.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/x64>\convertToMobile_Original.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/x64>\GenAVI_Original.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/x64>\H264Transcoder_Original.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/x64>\player_Original.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/x64>\AudCalBk_Original.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/x64>\AudioReplace_Original.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/x64>\AVDetection_Original.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/x64>\callback_Original.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/x64>\CallbackOpenGLRender_Original.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/x64>\CallbackRender_Original.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/x64>\cCapture_Original.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/x64>\CaptureDicom_Original.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/x64>\cnvdv_Original.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/x64>\cnvFlash_Original.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/x64>\cCnvmem_Original.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/x64>\cnvwm_Original.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/x64>\ConcatAndResize_Original.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/x64>\ConcatSameSize_Original.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/x64>\cConvert_Original.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/x64>\convertKLV_Original.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/x64>\ConvertLTES_Original.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/x64>\convertMMS_Original.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/x64>\convertSSF_Original.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/x64>\ConvertToMediaServer_Original.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/x64>\cConvertToMobile_Original.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/x64>\convertWMS_Original.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/x64>\DVDAuthor_Original.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/x64>\DVDBurner_Original.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/x64>\DVR_Original.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/x64>\cGenAVI_Original.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/x64>\GenAVIDX_Original.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/x64>\cH264Transcoder_Original.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/x64>\LiveRTSPServer_Original.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/x64>\MediaInfo_Original.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/x64>\MPEG2Transport_Original.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/x64>\NetClient_Original.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/x64>\NetServer_Original.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/x64>\cPlayer_Original.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/x64>\publish_Original.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/x64>\Restreamer_Original.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/x64>\RTSPServer_Original.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/x64>\tvviewer_Original.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/x64>\VOverlay_Original.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/x64>\ltmmNetClient_Original.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/x64>\ltmmNetServer_Original.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 22.0.2023.2.15
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Filters C API Help

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