Video Snipping Tool

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
JHPJHP
Addict
Addict
Posts: 1851
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Video Snipping Tool

Post by JHPJHP »

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

Download Video Snipping Tool from My PureBasic Stuff

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

A standalone OpenCV application (PureBasic Interface to OpenCV not required).
- record a users window actions, encoded to an AVI video file
- can be configured as a PureBasic Tool

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

Announcements
PureBasic Interface to OpenCV
PureBasic Interface to WinDivert
PureBasic Interface to WinRAR
PureBasic Interface to 7-Zip
PureBasic Interface to ImDisk
Windows Services & Other Stuff
Invading Space Aliens
Death Star vs Asteroids
GIF Toolkit
LSB Image Steganography
Spider Web Drawing
Deform Image: MLS
Video Snipping Tool
Chromium Edge WebGadget
IAccessible Interface
Stitch Images: SIFT
OldSkool Fire Effect
Image Waves: LUT
YouTube Player & Downloader
MP4 Player & Downloader
Large Image Viewer
Barcode Generator
Google Translate Service
Embed JS into PureBasic
Geolocation: Google Maps
Book & Viewer & Magnify
Video for Windows: VfW
Alternate Console
Network Share Management

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

SNIPPING MODES:
- Bullseye Snipping
- Rectangular Snipping
- Desktop Mode
- Program Mode

Download the following XVID codec for fast encoding and small video sizes; works in both PureBasic x86/x64 (single install).
- no other options are required
- START > XVID > Encoder Config > Other Options... > Display encoding status (remove checkbox)

PureBasic Tool Settings
1. IDE Menu: Tools > Configure Tools...
2. Click [ New ] button
- x86 Settings
-- Commandline: [ Root Folder... ]\Video_Snipping_Tool_WIN_SRC\binaries\x86\Video Snipping.exe
-- Arguments: "%PATH" "%HOME"
-- Working Directory: [ Root Folder... ]\Video_Snipping_Tool_WIN_SRC\binaries\x86\
-- Name: Video Snipping (x86)
- x64 Settings
-- Commandline: [ Root Folder... ]\Video_Snipping_Tool_WIN_SRC\binaries\x64\Video Snipping.exe
-- Arguments: "%PATH" "%HOME"
-- Working Directory: [ Root Folder... ]\Video_Snipping_Tool_WIN_SRC\binaries\x64\
-- Name: Video Snipping (x64)
Last edited by JHPJHP on Sat Oct 16, 2021 8:55 pm, edited 114 times in total.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
JHPJHP
Addict
Addict
Posts: 1851
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Record Window

Post by JHPJHP »

This program allows users to record demonstration videos directly from the PureBasic IDE; it can also be used as a standalone window recorder.
Last edited by JHPJHP on Thu Jan 24, 2019 4:39 pm, edited 36 times in total.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Record Window

Post by Dude »

Thanks, will have to play with this later. :)
User avatar
JHPJHP
Addict
Addict
Posts: 1851
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Record Window

Post by JHPJHP »

Hi Dude,

Let me know if you find any problems.

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

Updated:
- added a 64 bit version
- added a couple enhancements
- can be configured as a PureBasic Tool

PureBasic Tool Settings
1. IDE Menu: Tools > Configure Tools...
2. Click [ New ] button
- x86 Settings
-- Commandline: [ Root Folder... ]\Video_Snipping_Tool_WIN_SRC\binaries\x86\Video Snipping.exe
-- Arguments: "%PATH" "%HOME"
-- Working Directory: [ Root Folder... ]\Video_Snipping_Tool_WIN_SRC\binaries\x86\
-- Name: Video Snipping (x86)
- x64 Settings
-- Commandline: [ Root Folder... ]\Video_Snipping_Tool_WIN_SRC\binaries\x64\Video Snipping.exe
-- Arguments: "%PATH" "%HOME"
-- Working Directory: [ Root Folder... ]\Video_Snipping_Tool_WIN_SRC\binaries\x64\
-- Name: Video Snipping (x64)
Last edited by JHPJHP on Fri Aug 16, 2019 5:21 pm, edited 6 times in total.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
JHPJHP
Addict
Addict
Posts: 1851
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Record Window

Post by JHPJHP »

Updated:
- added some minor error checking
- added some small improvements

Download the following XVID codec for fast encoding and small video sizes; works in both PureBasic x86/x64 (single install).
- no other options are required
- START > XVID > Encoder Config > Other Options... > Display encoding status (remove checkbox)

NB*: See the first post for instructions and the second post for additional information.
Last edited by JHPJHP on Wed Feb 12, 2020 6:14 pm, edited 10 times in total.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
JHPJHP
Addict
Addict
Posts: 1851
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Record Window

Post by JHPJHP »

Updated:
- added XML Builder (source code included)

When using the program as a standalone application or from the IDE and the required XML files are missing, XML Builder will auto-open to assist you in creating them.

NB*: See the previous post for required Tool Settings changes; first post updated.

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

Updated:
- fixed a bug that would stop the encoding process
- added Record Window enhancements
- added XML Builder enhancements
- added additional error checking

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
Lunasole
Addict
Addict
Posts: 984
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

Re: Record Window

Post by Lunasole »

Description looks promising. I don't like most of existing soft in this category, will try your stuff next time.
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"
User avatar
JHPJHP
Addict
Addict
Posts: 1851
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Record Window

Post by JHPJHP »

Hi Lunasole,

Let me know if you find any problems.

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

Updated:
- added manual mode
- squashed a small bug

Manual Mode: Either as a standalone application or a PureBasic IDE tool, the recording process can now be started manually.
- see the first post for instructions

NB*: I noticed that some windows (command console) were not triggering the Windows Hook, so I added manual mode.
Last edited by JHPJHP on Fri Dec 21, 2018 3:21 am, edited 2 times in total.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
Kwai chang caine
Addict
Addict
Posts: 4968
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Record Window

Post by Kwai chang caine »

Hello JHPJHP :D

Thanks a lot for your another great job 8)

I have download the last version, and run it in W7 X86 / v5.62 x86 and i have an error at the compilation
I don't understand anything, and be sad to can't help you anymore, because this time no line red, just MsgBox :oops:
ImageThe happiness is a road...
Not a destination
User avatar
JHPJHP
Addict
Addict
Posts: 1851
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Record Window

Post by JHPJHP »

Hi Kwai chang caine,

Thank you for trying the application and reporting your findings.

What was the error you received from the MsgBox?

You should not have to compile the source code... will it execute directly from the IDE?.. have you tried executing the prebuilt binaries from /binaries/x86/?

NB*: Awhile back I removed all the Microsoft Visual C++ Runtime Libraries from my OpenCV downloads; should already be included in the latest Windows OS.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
Kwai chang caine
Addict
Addict
Posts: 4968
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Record Window

Post by Kwai chang caine »

Hello JHPJHP
JhpJhp wrote:You should not have to compile the source code
Ahhh !!! excuse me i don't know i don't try to run the source code :oops:

So i have running directly the EXE in "Record_Window_WIN_SRC_BIN\binaries\x86\Record Window.exe" and i have exactely the same MsgBox :|

Image

Surely KCC, like usually, not have what is needed in his bad PC :oops:

Image
ImageThe happiness is a road...
Not a destination
User avatar
JHPJHP
Addict
Addict
Posts: 1851
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Record Window

Post by JHPJHP »

Hi Kwai chang caine,

Please try adding the following Microsoft Visual C++ Runtime Libraries to the matching binaries subfolder.
- execute Record Window.exe from the binaries folder or run the example RecordWindow_x86.pb from the IDE to see if the problem has been resolved

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

Updated:
- added a Hide Window button
-- Waiting: the button can be toggled and will hide the window when capturing starts (defaulted in Desktop mode)
-- Capturing: the button can be clicked to hide the window immediately
- press the End key to stop capturing, unhide the window, and begin encoding images

Manual-mode: double clicking the window will begin the capture process, alternately pressing the Home key will also work.
Auto-mode: closing your program window will end capturing and begin encoding, alternately the End Key will also work.

The XML Builder and default settings have been updated to reflect the high performance provided by the XVID encoder.

NB*: The first two posts have been updated to reflect the current changes.
Last edited by JHPJHP on Tue Dec 25, 2018 4:31 am, edited 1 time in total.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
User avatar
Kwai chang caine
Addict
Addict
Posts: 4968
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Record Window

Post by Kwai chang caine »

I'm not with the same machine than yesterday, now i'm with W10 X64 / v5.62 x86
And the two EXE works, X64 and X86
Furthermore i can compile without problem in X86 :wink:
Thanks again for your help, now i can test your nice program 8)
ImageThe happiness is a road...
Not a destination
User avatar
Kwai chang caine
Addict
Addict
Posts: 4968
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: Record Window

Post by Kwai chang caine »

Like promises, i have tested your tools :wink:

W10 x86 version
First i have activing the desktop capture, and that works
The definition is less than the original, but it's surely normal
After, i have disable the desktop capture, and here the red circle move really quickly, that appear not normal :shock:
And the video cannot be readed :|

W10 x64 version
With this version, my windows are not detected, with or not desktop capture actived :|
ImageThe happiness is a road...
Not a destination
User avatar
JHPJHP
Addict
Addict
Posts: 1851
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Record Window

Post by JHPJHP »

Hi Kwai chang caine,

Thank you again for your time testing the application.

I think you might be using an old version of the program, can you download the latest release to see if it makes a difference.
- for this test the XML files do not need to be modified, and should already be located in the root folder of the download

Have you downloaded and installed the XVID codec; this is a necessary step for high quality videos.
- no other options are required
- START > XVID > Encoder Config > Other Options... > Display encoding status (remove checkbox)

INSTRUCTIONS:
1. Open RecordWindow_x86.pb from the PureBasic (x86) IDE.
2. Execute the program directly from the IDE.
3. A small window should open with a blue dot.
4. Press the Home key to begin capturing snapshots.
5. The window should hide itself (flashing SysTrayIcon).
6. Wait no longer then 20 seconds, moving your mouse pointer around the screen.
7. Press the End key to stop capturing.
8. The small window should return with a green cycling circle (removed SysTrayIcon).
9. The small window will close when encoding is complete.

The video Desktop Manual Mode.avi should be located at the root of the download folder.

Please let me know the quality and size of the video, and the approx. time it took to create it.
Last edited by JHPJHP on Wed Feb 12, 2020 6:15 pm, edited 3 times in total.

STATUS: Mostly Unavailable :: Downloads moved to My PureBasic Stuff; free executables, access key required for source code.
_________________
Post Reply