Not sure if i am using this mailing list properly but I want to share my modified mouseandkeyinput package with the user who was having issues.  It can be found here and I did make some "improvements" and maybe it will be helpful to you.

https://github.com/TonyStone31/lmakiproject1

I have been using it in my password manager to automate fillign out forms and it works pretty good so far on windows and linux.  I am unable to work on any MacOS system.



On 10/27/24 6:33 PM, lazarus-requ...@lists.lazarus-ide.org wrote:
Send lazarus mailing list submissions to
        lazarus@lists.lazarus-ide.org

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.lazarus-ide.org/listinfo/lazarus
or, via email, send a message with subject or body 'help' to
        lazarus-requ...@lists.lazarus-ide.org

You can reach the person managing the list at
        lazarus-ow...@lists.lazarus-ide.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of lazarus digest..."


Today's Topics:

    1. Using PasLibVLC to play video files - how to update duration?
       (Bo Berglund)
    2. Re: Using PasLibVLC to play video files - how to update
       duration? (Bo Berglund)
    3. automated testing code (duilio foschi)
    4. Re: Lazarus Release Candidate 1 of 4.0 (n7800)
    5. Re: automated testing code (Mattias Gaertner)


----------------------------------------------------------------------

Message: 1
Date: Sun, 27 Oct 2024 14:51:04 +0100
From: Bo Berglund <bo.bergl...@gmail.com>
To: lazarus@lists.lazarus-ide.org
Subject: [Lazarus] Using PasLibVLC to play video files - how to update
        duration?
Message-ID: <pgfshjdpueehor90k2vk7q75do36gd3...@4ax.com>
Content-Type: text/plain; charset=us-ascii

So several years ago I wrote a Video player/editor usng Lazarus/FPC with the
PasLibVLC library. ( https://prog.olsztyn.pl/paslibvlc/ )

The last build was done in end of 2023 with the then current
FPC/Lazarus/PasLibVLC (3.0.7). It was a cleanup to remove some un-needed fluff
on screen not related to the video handling.

The utility has worked just fine for the video editing tasks it was created for.

It works by playing a downloaded mp4 video file on screen where I can accurately
set cut points for section removals. Then it creates the call to a split-combine
command line utility I also wrote with Lazarus and built for both Windows and
Linux.
This utility uses ffmpeg in a command that results in a new video file where the
marked sections are removed.

I usually work on files located on a Linux server but occationally I also run
the splitcombine on Windows.

Recently I have found that if I want to use the editor just as a player it does
not work with mp4 to view files still being downloaded, so I tested by changing
my download script to produce a ts file rather than mp4.

This file type can be opened and played while the download is still being done,
so the file is being written at the end and played somewhere inside.

So far OK, but I have problems when doing jumps since the current version of my
editor reads the full length of the video at the time the video file is opened
and that stays put. This means that some positioning operations are not possible
if they target a time beyond the file length at the time the playback started.


Question:
---------
How should I proceed to update the video length while playing it in the player?

It affects both the length displayed on screen as well as the progress bar
showing where the current playback position is located.

Should I set up a timer and use that to constantly read the video length (if it
is being updated by the library) and set the limits and visuals accordingly?

Or is there some means of handling it using some internal callback, event or
similar?

Unfortunately it was a while since I worked on the code so I will need some
start time to get re-familiarized....


--
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to