Page 2 of 6

Re: Record Window

Posted: Fri Dec 21, 2018 9:05 pm
by JHPJHP
Updated:
- added multiple instances
- added a SysTrayIcon when the status window is hidden
- fixed the 64 bit problem reported by Kwai chang caine

Multiple Instances were added so that I could make a video of making a video.

Re: Record Window

Posted: Fri Dec 21, 2018 9:48 pm
by Kwai chang caine
I'm really sorry to never can do like the others :oops:

Have you downloaded and installed the XVID codec; this is a necessary step for high quality videos. YES
- disable the encoding status window from XVID > Encoder Config > Other Options...YES

1. Open RecordWindow_x86.pb from the PureBasic (x86) IDE. YES
2. Execute the program directly from the IDE. YES
3. A small window should open with a blue dot. YES
4. Press the Home key to begin capturing snapshots. when i press the HOME key nothing happened :|

Re: Record Window

Posted: Fri Dec 21, 2018 9:56 pm
by JHPJHP
Hi Kwai chang caine,

Please confirm the following:
- line 418 = ImageFolder = "../../images_" : nDate = Date()

If the Home key doesn't work, try double-clicking the small window with the blue dot.
- first toggle the Hide Window button off in case the End key doesn't work
- double-click the window a second time to encode the captured images
- window will auto-close when the encoding is complete

Thank you.

Re: Record Window

Posted: Fri Dec 21, 2018 10:03 pm
by Kwai chang caine
Please confirm the following:
- line 418 = ImageFolder = "../../images_" : nDate = Date()
Exactely that :wink:
If the Home key doesn't work, does double-clicking the small window with the blue dot?
Exactely the same effect, nothing move when i double click on your little windows with the blue DOT
I have try on the titlebar and also in the middle of the window
The title is "Waiting ..." and the button "Hide window" have no effect to, just XML Builder button works :|

PS:I don't know why, but after do several try to click etc ...your window go effectively to the Systray and record
But the video is not readable :|

Re: Record Window

Posted: Fri Dec 21, 2018 10:12 pm
by JHPJHP
Hi Kwai chang caine,

Thank you for trying.

Sorry it's not working for you. Maybe if other forum members have some time to provide feedback, I'll be able to fix the issues more quickly...

… I'll do some more testing; installing previous versions of PureBasic, Window OS, etc.

Please don't waste anymore time on this; you have been helpful in letting me know that additional work still needs to be done.

Cheers!

Re: Record Window

Posted: Fri Dec 21, 2018 10:15 pm
by Kwai chang caine
I have try a last time,
I run in the IDE the X86 code
If the windows i have enter in the XML exist your code say to me i must to close it
I close it and run another time
The blue DOT is in the corner
I open my application "FOXMAIL" and immedatelly your blue DOT become red and PANIC and vibrate very very quickly :shock:
The home key, or END not do something
And when i close "FOXMAIL" your windows disappears all alone with it
I found a video on the root with the good name i have enter in the XML
But this video is unreadable :|

Ok, say to me when you want to help you :wink:
For one time little KCC can help a MASTER :oops: , it's the world upside down and not all the days :lol:
Have a good day and again thanks for all your splendids works, all the year

PS: I don't remember if i have already say that to you
But your site is SPLENDID :shock: i love it 8)

Re: Record Window

Posted: Sun Dec 23, 2018 11:04 pm
by JHPJHP
Hi Kwai chang caine,
Kwai chang caine wrote:PS: I don't remember if i have already say that to you
But your site is SPLENDID...
Thank you, I am glad you like it.

Please download and try the latest release. I might have figured out what the problem was, but at this point it is only conjecture.

The DPI test function was failing under some conditions, with the capture window opening outside the visual area. I believe multiple instances of the program were running, causing a conflict due to a locked file. This explains why pressing the Home and End keys seemed like nothing was happening.

Thank you.

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

Updated:
- included a couple mutex to stop/warn of multiple instances
- squashed a couple bugs
- added additional error checking
- optimized the PureBasic to OpenCV image conversion

This latest version should provide more stability and an obvious performance boost; XML defaults updated to support the new enhancements.

Re: Record Window

Posted: Sun Dec 23, 2018 11:15 pm
by Kwai chang caine
Hello JHPJHP :D
This time that works :wink: , the double click is detected, and also the HOME key
After the video of the desktop are created and automaticaly open and reading
I have tested the X86 and X64.exe and both do the same thing 8)
Thanks a lot for your sharing 8)

Re: Record Window

Posted: Mon Dec 24, 2018 5:20 am
by JHPJHP
Hi Kwai chang caine,

Thank you very much for your time and patience testing the application, you were a great help.

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

Updated:
- added a more reliable method for checking the bit version of PureBasic

Re: Record Window

Posted: Mon Dec 24, 2018 1:19 pm
by Kwai chang caine
I'm so happy to can help a little bit :oops:
Continues to amaze us with all your splendid codes, with you and numerous members of this family forum, it's christmas all the year 8)

Re: Record Window

Posted: Wed Dec 26, 2018 4:17 am
by JHPJHP
Hi Kwai chang caine,

Thank you for your kind words. Happy Holidays!

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

Updated:
- added Offsets (Left Top Right Bottom)
- numerous improvements to XML Builder
- fixed a couple small bugs

Offsets: Enabled in Windows Mode (settings available from XML Builder); this was needed for an overlapping context menu, etc.

NB*: Removed the default XML files from the latest release; created from XML Builder.

Re: Record Window

Posted: Fri Dec 28, 2018 12:07 am
by JHPJHP
Updated:
- enhanced performance
- improved XML Builder
- closed a memory leak
- fixed resizing
- added additional error checking

This is a complete rewrite of the original build; writing to the hard drive has been removed, with capturing and encoding completed in a single process.

Start Capturing and Encoding:
- Manual Mode: CTRL + [ user defined ] Key (set from XML Builder)
- Auto Mode: open the program window that matches Window Title (set from XML Builder)

Stop Capturing and Encoding:
- Manual Mode: ESC Key
- Auto Mode: ESC Key, or close the program window that matches Window Title (set from XML Builder)

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)

Change Video FPS from XML Builder to increase / decrease video frame rate.

Hidden window can be restored by left-clicking the systray icon (flashing red / blue dot).

If a video does not play from the default Windows player, try using VLC Media Player; supports a larger variety of codecs.

NB*: See the first and second posts for additional (updated) information.

Re: Record Window

Posted: Fri Dec 28, 2018 5:48 pm
by Lunasole
Well I've tried it and there are few noticeable problems as for me:
- CPU load is extensive, this can be a problem if foreground programs also loading it a lot (and anyway is a problem itself)
- idea to write a lot of PNG files to a disk is not good, you're killing SSDs this way, for example (if I'm not wrong and those PNG are temporary files)
- UI lacks of usability and is not much obvious

(that's about some older version, I've downloaded it before)

Re: Record Window

Posted: Sat Dec 29, 2018 11:06 pm
by JHPJHP
Hi Lunasole,
Lunasole wrote:Well I've tried it and there are few noticeable problems as for me...
Yes, that was the first test version; proof of concept. Thank you anyways for providing feedback.

With the latest release there is no writing to disk and CPU usage should be minimal; see my previous post for more details.

With the new version XML Builder is more intuitive, and Gadgets are better organized.

Re: Record Window

Posted: Thu Jan 03, 2019 1:56 am
by JHPJHP
Updated:
- added Output AVI to MP4
- added Help (title bar)
- added Test FPS mode
- improved capture speed

Output AVI to MP4
This was added so I could play my recorded video from the web. If this feature is not needed, the folder /binaries/ffmpeg/ can be deleted.
- download size has increase due to the included FFMPEG binaries

Title Bar Help
Help in the form of ToolTips, showing only when the title bar help icon is clicked (help cursor) followed by clicking a gadget.

Test FPS Mode
Setting Video FPS to zero will enter Test FPS mode; full test takes 45 seconds.