Video Snipping Tool

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

Re: Video Snipping Tool

Post by JHPJHP »

Hi Lord,

The new version supports multiple monitors enabled from the Snipping Options window.

Updated:
- added support for multiple monitors
- optimized and enhanced various parts of the code

Multiple Monitors
Snipping Options window :: [ CTRL + O ] or [ Context Menu > Snipping Options ] > Enable multiple monitor snipping.
Last edited by JHPJHP on Sun Feb 16, 2020 9:22 pm, edited 1 time in total.
m4u
New User
New User
Posts: 5
Joined: Mon Dec 31, 2018 8:47 am

Re: Video Snipping Tool

Post by m4u »

Thank you. Runs smoothly on Win10 18334 64b.
Anything to test?
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Video Snipping Tool

Post by JHPJHP »

Hi m4u,

Thank you for your post and the offer to test the code.

The latest release seems stable, but if you find any problems please let me know.

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

Updated:
- added Marquee Image

Marquee Image
Instead of overlaying text an image can be selected; image will be resized to a user-defined Max Height between 100 - 300 pixels.
Last edited by JHPJHP on Fri Mar 01, 2019 6:29 pm, edited 2 times in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Video Snipping Tool

Post by JHPJHP »

Updated:
- added Display Keystrokes
- added separate x86 and x64 binary only downloads
- applied some minor changes
- squashed a couple bugs

Binary Download
Included with the download is a simple VBScript for creating a shortcut; static folder and file locations.

Image
Last edited by JHPJHP on Sat Feb 08, 2020 5:59 pm, edited 3 times in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Video Snipping Tool

Post by JHPJHP »

Updated:
- improved GIF quality
- added keystroke history
- added left mouse button capture
- added a second layer to Marquee Text

Keystroke History / Left Mouse Button Capture
- Enhanced Cursor must be selected from XML Builder (default)

NB: GIF quality has also been improved in Deform Image: MLS.

Image
Last edited by JHPJHP on Wed Feb 12, 2020 12:52 am, edited 2 times in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Video Snipping Tool

Post by JHPJHP »

Updated:
- added Express Setup
- improved FPS Test Mode
- improved video quality
- improved audio feature
- improved notifications
- squashed a couple bugs

Express Setup / FPS Test Mode
If there are no XML files in the root folder (default) the user is prompted to continue with Express Setup.
Express Setup will test FPS performance and create the required XML files without opening XML Builder.
- test uses the entire desktop as a capture area to determine an optimal FPS

There are various methods to start the process in FPS Test Mode.
- use the shortcut key (capture entire desktop)
- drag the bullseye over any window or window area (capture window area)
- switch to rectangular snipping from Snipping Options (capture user-defined rectangular area)

NB*: The size of the area being captured can effect the results returned from FPS Test Mode; smaller area = higher FPS.

Image
Last edited by JHPJHP on Sun Feb 16, 2020 10:52 pm, edited 1 time in total.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Video Snipping Tool

Post by JHPJHP »

Updated:
- improved support for multiple monitors
- enhanced various parts of the code
- squashed a couple bugs

Multiple Monitors
Snipping should now support different DPI between monitors.

NB*: Snipping Options window :: [ CTRL + O ] or [ Context Menu > Snipping Options ] > Enable multiple monitor snipping.

Used my iPad (portrait mode) as a second monitor.
Image
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 664
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

Re: Video Snipping Tool

Post by Kurzer »

JHPJHP,

I want to have a look at your great tool. The screenrecordings are looking really promising.
But at first one question: Does your tool or the ffmpg addons write any data to a windows system directory or does it create registry entries?

Thanks in advance.

Kurzer
PB 6.02 x64, OS: Win 7 Pro x64 & Win 11 x64, Desktopscaling: 125%, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520, User age in 2023: 56y
"Happiness is a pet." | "Never run a changing system!"
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Video Snipping Tool

Post by JHPJHP »

Hi kurzer,
kurzer wrote:Does your tool or the ffmpg addons write any data to a windows system directory or does it create registry entries
The Video Snipping Tool does not write anything to disk (besides a few temp files) or registry; it uses ADS (Alternate Data Streams) to save setting data, and all image captures are done in memory.

I am fairly confident, but not 100% sure that FFmpeg does not write anything to disk or registry.

NB*: The FFmpeg folder can be deleted and the Video Snipping Tool would work just fine, but conversion between formats and adding an audio stream would not be available.
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Video Snipping Tool

Post by JHPJHP »

Updated:
- improved scaling
- improved enhanced cursor

Snipping Size Scaled ( % )
Previously scaling was either hard-coded or done at the capture level.
When the Output option is checked scaling is handled by FFmpeg, otherwise it's still done at the capture level.

Enhanced Cursor
Previously the cursor was behind the enhanced highlight.

NOTE:
When scaling is done through FFmpeg the original AVI size remains intact.
This can be useful if you want to output the same video to multiple formats and/or sizes.
After making the appropriate changes in XML Builder, use the drag & drop feature (main window) to output the new format/size.
Last edited by JHPJHP on Wed Feb 19, 2020 8:46 pm, edited 2 times in total.
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 664
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

Re: Video Snipping Tool

Post by Kurzer »

Hello JHPJHP,

thanks for the info.
As I noticed in my test today, the tool needs an installed Xvid codec (I should have read your first post ;-) ). So I will try the tool later in a VM, where I will install the Xvid codec.

Kurzer
PB 6.02 x64, OS: Win 7 Pro x64 & Win 11 x64, Desktopscaling: 125%, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520, User age in 2023: 56y
"Happiness is a pet." | "Never run a changing system!"
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Video Snipping Tool

Post by JHPJHP »

Hi kurzer,

Thank you for posting back.

Make sure to download the latest VST version, it has a few important optimizations and bug fixes.

The XVID codec is not mandatory, the option can be changed from XML Builder.
1. PROMPT: Open a dialog window of installed codecs; may open behind other windows.
2. DEFAULT: Use the default Windows codec; no compression resulting in large video sizes.
3. FOURCC: Predefined code used to identify a compression format; must be installed.

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*: I performed my own test in VMWare and was only able to acheive 12 FPS, where in a regular environment I averaged 30+ FPS.
- test was conducted capturing the entire desktop
- a smaller capture area would increase the FPS
- Write Buffer option was not supported in my VM environment
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 664
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

Re: Video Snipping Tool

Post by Kurzer »

Hello JHPJHP,

thanks for the information. I was been able to use your tool in a VM with the codec setting "Default". It was sufficient for 21 fps.

The snipping worked well in the VM and your program is very solidly programmed. Congratulations.

But I can't get used to the workflow and the appearance. But how does it say (in a german proverb) ? About personal preferences you can not argue ;-) So I will probably stay with my current Screenrecorder, even if I would have liked to use a PB program for it.

Nevertheless my full respect for your programming skills!

Greetings
Kurzer
PB 6.02 x64, OS: Win 7 Pro x64 & Win 11 x64, Desktopscaling: 125%, CPU: I7 6500, RAM: 16 GB, GPU: Intel Graphics HD 520, User age in 2023: 56y
"Happiness is a pet." | "Never run a changing system!"
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Video Snipping Tool

Post by JHPJHP »

Hi kurzer,

Thank you for your feedback, your comments were very much appreciated.
kurzer wrote:But I can't get used to the workflow and the appearance.
I agree. While I spent time on performance and features, improving workflow and appearance was mostly ignored.

By the time I realized this project might have some potential, forum interest and feedback was waning.
In turn I could only muster enough motivation to add a couple key features and improve stability.

NB*: The DEFAULT codec option should rarely be used as it creates an extremely large video file.

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

Updated:
- small changes to Express Setup
- various subtle improvements
JHPJHP
Addict
Addict
Posts: 2129
Joined: Sat Oct 09, 2010 3:47 am
Contact:

Re: Video Snipping Tool

Post by JHPJHP »

Updated:
- included Xvid installation executable
- added Filter button (XML Builder)
- added Smart Zoom
- numerous enhancements, optimizations, and bug fixes

Xvid Installation
On first execution and before FPS Test Mode, if Xvid is not already installed, you will be prompted to install the codec.

Filter Button
Image

Smart Zoom
Zoom-area is based on the location of the mouse pointer and is activated using the Ctrl + Z key.

Image
Last edited by JHPJHP on Wed Jul 15, 2020 8:39 pm, edited 1 time in total.
Locked