mirror of
https://github.com/NickeManarin/ScreenToGif.git
synced 2026-04-25 15:15:51 +03:00
[GH-ISSUE #404] [Feature request] Invoke recording with CLI #332
Labels
No labels
copy cats
duplicated
future feature
pull-request
⬜ Accepted
⬜ Completed
⬜ Help Wanted 💪
⬜ In Progress
⬜ Missing Details
⬜ Pending
⬜ Waiting For Answer ⏳
🆕 feature preview
🔷 Bug 🐛
🔷 Out Of Scope
🔷 Out Of Scope
🔷 Question
🔷Enhancement
🔷Enhancement
🔷Invalid / External
🔷Knowledge Base
🔷Won't Fix
🕑 High
🕑 High
🕑 High
🕕 Medium
🕙 Low
🕛 Critical
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ScreenToGif#332
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @spyoungtech on GitHub (Dec 12, 2018).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/404
Hi there, thanks for providing this great tool.
I have a use case where I'd like to automate the capture of gifs in my CI builds.
Something that would be useful is a way to invoke ScreenToGif, specifying the recording area, output file path, and (optionally?) length of time to record.
This has a few applications, including recording selenium webdriver tests, and automatically generating gifs for project documentation.
CLI parameters for settings, or perhaps a way this can be provided with a prepared file, would be useful, too.
If there are existing methods I can use to achieve this, any pointers would be much appreciated.
@vatterspun commented on GitHub (Dec 15, 2018):
I think FFMPEG has some functionality to do CLI screen recording that outputs to GIF or APNG.
@spyoungtech commented on GitHub (Dec 15, 2018):
Good idea @vatterspun
I was able to accomplish this with the ffmpeg command from powershell specifying recording area (by x/y offsets and video size) for 10 seconds like so
Or to capture a window for 5 seconds
Only complaint is the output size, but I think I can tweak the parameters to get it optimal.
I also had to add
-async 1and-vsync 1to avoid some repeating warning message. YMMV@vatterspun commented on GitHub (Dec 16, 2018):
Glad that suggestion yielded fruit. Also, thanks for detailing your solution, that's very likely to solve the problem for someone in the future.
@vatterspun commented on GitHub (Feb 27, 2019):
Just a note that the also open source Captura screen recording software lists support for running from the command line: https://mathewsachin.github.io/Captura/changelog
@NickeManarin commented on GitHub (Jun 25, 2021):
Late to the party, but here is it: https://github.com/NickeManarin/ScreenToGif/wiki/Startup-parameters