Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Monday, May 16, 2022 4:02:23 AM(UTC)

aroig  
aroig

Groups: Registered
Posts: 10


We need to navigate frame-by-frame of mp4 vídeos (back and forward) with VB.NET and LEAD MM v20
Thank you
 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, May 16, 2022 12:05:21 PM(UTC)
Christopher

Groups: Registered, Tech Support, Administrators
Posts: 89

Was thanked: 4 time(s) in 4 post(s)

To navigate the LEADTOOLS frames from your MP4 files, you can use the PlayCtrl's - NextFrame and PreviousFrame methods.

The LEAD Online Documentation for each of these methods has an example snippet of how to set this programmatically in VB.NET.

Code:
         If _playctrl.State = PlayState.Running Then 
            _playctrl.Pause() 
         End If 
 
         _playctrl.NextFrame() 

         If _playctrl.State = PlayState.Running Then 
            _playctrl.Pause() 
         End If 
 
         _playctrl.PreviousFrame()


Additionally, an example of this being implemented can be found in the LEAD Multimedia Player demo included with the LEADTOOLS v20 installation file folder as well.

precompiled demo
C:\LEADTOOLS 20\Shortcuts\Multimedia\Playback\DirectShow\Dotnet Class Library\Multimedia Player 64-bit.lnk

project source files
C:\LEADTOOLS 20\Examples\Multimedia\ltmm\Dotnet\VB\Player

MainFrm.vb line 2954

nextFrameCode.png

To test this in the demo itself please do the following:

>> Run the LEAD Player demo
>> File >> Open Media File...
>> Navigate to the example MP4 file included with the LEADTOOLS v20 installation here:
C:\LEADTOOLS 20\Media\DaDa_H264.mp4
>> While the video is playing select pause [ || ]
>> While paused choose to either go forward or backward by frames with these buttons

navButtons.png


Chris Thompson
Developer Support Engineer
LEAD Technologies, Inc.

LEAD Logo
 
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.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.063 seconds.