Thanks for feedback!
Fixed Frame resize and other quirks!
Image Sequence Recorder
Re: Image Sequence Recorder
@rommmcek, if You run my code without adding coordinates will it work for You?
What NVIDIA videocard do You have?
I suppose that some NVIDIA videocards do not support GPU hardware acceleration in ID3D11DeviceContext::CopySubresourceRegion method and therefore You capture with CPU hardware acceleration that does not support MFVideoFormat_ARGB32 format.
What NVIDIA videocard do You have?
I suppose that some NVIDIA videocards do not support GPU hardware acceleration in ID3D11DeviceContext::CopySubresourceRegion method and therefore You capture with CPU hardware acceleration that does not support MFVideoFormat_ARGB32 format.
Re: Image Sequence Recorder
You can review some of my equipment.
If run without adding coordinats or with them, works the same, i.e. if hardware_encoding:= true (reintroduced by me) I get upside down video.
P.s.: Don't know which "version" of holydays you celebrate, nevertheless: Marry Christmas and Happy New Year!!!
My NVIDIA Sys Info:
Your code yields: hardware-encoder - NVIDIA H.264 Encoder MFTIf run without adding coordinats or with them, works the same, i.e. if hardware_encoding:= true (reintroduced by me) I get upside down video.
P.s.: Don't know which "version" of holydays you celebrate, nevertheless: Marry Christmas and Happy New Year!!!
Re: Image Sequence Recorder
Thank you for the instructive question: Mistery Solved!
After answering to you, I've got flash of wit, so I specified: hardware_encoder:= "GeForce MX 660M" and I got correct output, however CPU usage during recording was ~6% (that is 1% more then with hardware_encoding := false)
A few iteration later I tried:hardware_encoder:= "H.264 Encoder GeForce MX 660M", with marginal CPU usage (0.1%-0.4%)!
Conclusion: It seems that your code does not identify my hardware encoder correctly.
A few iteration later I tried:
Conclusion: It seems that your code does not identify my hardware encoder correctly.
Last edited by rommmcek on 28 Dec 2019, 17:08, edited 1 time in total.
Re: Image Sequence Recorder
rommmcek, Thank You! Marry Christmas and Happy New Year!!!
If we talking about this code
https://www.autohotkey.com/boards/viewtopic.php?p=306894#p306894
then You do not need to add this line - hardware_encoder:= "H.264 Encoder GeForce MX 660M", because it does nothing.
Script just enumerates all Your hardware codecs and shows friendly name of the first one, because Microsoft Media Foundation does not let You which codec to choose - it chooses codec by their merit.
You can only indicate "MF_READWRITE_ENABLE_HARDWARE_TRANSFORMS", and then Microsoft Media Foundation will try to use hardware codec.
Also You can change merit of encoders-decoders by editing Your registry. (Do not recommend to do it without making copy of registry before editing).
Please try this code with coordinates and without.
https://www.autohotkey.com/boards/viewtopic.php?p=306894#p306894
Conclusion - May be some software sometimes does not let You to use GPU?
If we talking about this code
https://www.autohotkey.com/boards/viewtopic.php?p=306894#p306894
then You do not need to add this line - hardware_encoder:= "H.264 Encoder GeForce MX 660M", because it does nothing.
Script just enumerates all Your hardware codecs and shows friendly name of the first one, because Microsoft Media Foundation does not let You which codec to choose - it chooses codec by their merit.
You can only indicate "MF_READWRITE_ENABLE_HARDWARE_TRANSFORMS", and then Microsoft Media Foundation will try to use hardware codec.
Also You can change merit of encoders-decoders by editing Your registry. (Do not recommend to do it without making copy of registry before editing).
Please try this code with coordinates and without.
https://www.autohotkey.com/boards/viewtopic.php?p=306894#p306894
Conclusion - May be some software sometimes does not let You to use GPU?
Re: Image Sequence Recorder
- thanks to have patience with me!
- since 22 Dec 2019, 21:07 I use only code with audio (don't be misled by hardware_encoding:= false which I added to get correct output. It only prevents hardware_encoder:= MFTEnumEx(...) to execute). So this is true:
If run without adding coordinats or with them, works the same, i.e. if hardware_encoding:= true (reintroduced by me) I get upside down video.
- my statements about CPU usage are wrong. CPU usage is depending of the frame size and even of the dynamic of the recorded aria. Besides my unprecedented low CPU usage result came due to mistakenly changing: video_fps:= 5!!!
- you're basically right, assigning hardware_encoder:= "H.264 Encoder GeForce MX 660M" or whatever does nothing, however if the string contains "NVIDIA" (case insensitive) then I get inverted upside down output (again: w/ or w/o assigned coordinats).
Updated the code to allow recording the whole screen through only one hotkey F2 (long press) and rearranging some of the hotkeys.
- since 22 Dec 2019, 21:07 I use only code with audio (don't be misled by hardware_encoding:= false which I added to get correct output. It only prevents hardware_encoder:= MFTEnumEx(...) to execute). So this is true:
If run without adding coordinats or with them, works the same, i.e. if hardware_encoding:= true (reintroduced by me) I get upside down video.
- my statements about CPU usage are wrong. CPU usage is depending of the frame size and even of the dynamic of the recorded aria. Besides my unprecedented low CPU usage result came due to mistakenly changing: video_fps:= 5!!!
- you're basically right, assigning hardware_encoder:= "H.264 Encoder GeForce MX 660M" or whatever does nothing, however if the string contains "NVIDIA" (case insensitive) then I get inverted upside down output (again: w/ or w/o assigned coordinats).
Updated the code to allow recording the whole screen through only one hotkey F2 (long press) and rearranging some of the hotkeys.
Re: Image Sequence Recorder
I update code
Now position of cursor is calculated with hotspot.
Try to uncomment "Rotate".
Now position of cursor is calculated with hotspot.
Try to uncomment "Rotate".
Re: Image Sequence Recorder
First tests are very good! Using Rotate := true yields correct output.
P.s.: I noticed a difference: capture_cursor := true yields now less offset as before. (in this case Rotate was commented to be comparable with previous code)
Edit: Made one more test: Rotate := true uncommented vs hardware_encoder := MFTEnumEx(…) commented: The latter has ~3% less CPU usage (whole screen - no coordinats, static picture).
P.s.: I noticed a difference: capture_cursor := true yields now less offset as before. (in this case Rotate was commented to be comparable with previous code)
Edit: Made one more test: Rotate := true uncommented vs hardware_encoder := MFTEnumEx(…) commented: The latter has ~3% less CPU usage (whole screen - no coordinats, static picture).
- Attachments
-
- Cursors.zip
- (2.58 KiB) Downloaded 95 times
Re: Image Sequence Recorder
Hi Hellbent,
Do you have an updated version of this script?
Do you have an updated version of this script?
Re: Image Sequence Recorder
No I don't. This does exactly what I had needed it to do so I didn't do anymore work on it once it checked the boxes I needed checked. I didn't really want to make this script but I needed something that did what this did so I made it rather than searching endlessly for something that sort of does what I wanted.
What is it you are looking to do?
Re: Image Sequence Recorder
Its great as is, just wondering if you modified it like your other work. Keep the Sistine Chapel as is.
Return to “Scripts and Functions (v1)”
Who is online
Users browsing this forum: No registered users and 308 guests