LEADTOOLS Support
Multimedia
Multimedia SDK Examples
HOW TO: Parse KLV Metadata Without Decoding the Video Stream
#1
Posted
:
Wednesday, February 26, 2020 12:12:30 PM(UTC)
Groups: Registered, Manager, Tech Support, Administrators
Posts: 107
Was thanked: 9 time(s) in 9 post(s)
LEADTOOLS offers the ability to parse KLV data through the use of
LEAD MPEG-2 Transport Demultiplexer. For an example which demonstrates this functionality, please look at the MPEG-2 Transport (player) demo which you can find at the following default installation location: C:\LEADTOOLS 20\Shortcuts\Multimedia\MPEG2 Transport\DirectShow\Dotnet Class Library.
If you don't want video feed to be displayed and decoded, and you're only interested in the data received from parsing, you'll want to add the following code in your application
Code:playCtrl.AllowedStreams = StreamFormatType.Video;
playCtrl.PreferredVideoRenderer = VideoRendererType.NULL;
playCtrl.StillTap = PlayStillTap.None;
With this code, you are first enabling the video feed, piping it to a null render, and then ensuring that there is no capture filter inserted which will allow the avoidance of the video decompression. This will build a simple graph, and also significantly decrease CPU load.
The documentation on the properties used in this code can be found here.
https://www.leadtools.co...ctrl-allowedstreams.htmlhttps://www.leadtools.co...ferredvideorenderer.htmlhttps://www.leadtools.co...m/playctrl-stilltap.htmlFor more information on how you can parse KLV data, and how it can be beneficial in your application look here:
https://www.leadtools.co...port/forum/posts/t12156-https://www.leadtools.co...klv-key-information.htmlhttps://www.leadtools.co...klvparser-interface.htmlIf you have any questions about the LEADTOOLS SDK not covered in this post please email us at
support@leadtools.comEdited by moderator Wednesday, March 4, 2020 2:17:38 PM(UTC)
| Reason: Not specified
Marcus Andra
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Multimedia
Multimedia SDK Examples
HOW TO: Parse KLV Metadata Without Decoding the Video Stream
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.