[GH-ISSUE #574] Launch ScreenToGif recording from command line? e.g. screentogif.exe -boxcorners=0,0,800,600 -duration=60s #474

Closed
opened 2026-02-26 09:31:33 +03:00 by kerem · 8 comments
Owner

Originally created by @josephernest on GitHub (Jan 5, 2020).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/574

Originally assigned to: @NickeManarin on GitHub.

Is it possible to launch a record directly from command line?
Something like:

screentogif -boxcorners=0,0,800,600 -duration=60s -savefile=test.gif

?
Thanks!

Originally created by @josephernest on GitHub (Jan 5, 2020). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/574 Originally assigned to: @NickeManarin on GitHub. Is it possible to launch a record directly from command line? Something like: screentogif -boxcorners=0,0,800,600 -duration=60s -savefile=test.gif ? Thanks!
kerem 2026-02-26 09:31:33 +03:00
Author
Owner

@NickeManarin commented on GitHub (Jan 7, 2020):

It's currently not possible to do that.

<!-- gh-comment-id:571615946 --> @NickeManarin commented on GitHub (Jan 7, 2020): It's currently not possible to do that.
Author
Owner

@josephernest commented on GitHub (Jan 7, 2020):

Thank you for your answer @NickeManarin.

Do you think a simpler feature like:

screentogif -boxcorners=0,0,800,600 -startrecordingnow

(i.e. no stopping, no saving from command-line)

would be possible?

<!-- gh-comment-id:571617546 --> @josephernest commented on GitHub (Jan 7, 2020): Thank you for your answer @NickeManarin. Do you think a simpler feature like: screentogif -boxcorners=0,0,800,600 -startrecordingnow (i.e. no stopping, no saving from command-line) would be possible?
Author
Owner

@NickeManarin commented on GitHub (Jan 20, 2020):

Yes, I'll implement that feature in a future release. But the user would have to pause/stop the recording manually.

<!-- gh-comment-id:576275541 --> @NickeManarin commented on GitHub (Jan 20, 2020): Yes, I'll implement that feature in a future release. But the user would have to pause/stop the recording manually.
Author
Owner

@Sironas commented on GitHub (Jan 21, 2020):

Hello,

This feature is really interesting for me too but stopping it manually would break the purpose of launching it in command line.

Is it possible to find a way when the program is closed/killed to save the gif ?
Maybe another command to the exe file ?

Thank you

<!-- gh-comment-id:576732754 --> @Sironas commented on GitHub (Jan 21, 2020): Hello, This feature is really interesting for me too but stopping it manually would break the purpose of launching it in command line. Is it possible to find a way when the program is closed/killed to save the gif ? Maybe another command to the exe file ? Thank you
Author
Owner

@tankorsmash commented on GitHub (Jun 1, 2021):

Looking forward to this feature; it would be nice to be able to bind S2Gif to a hotkey (outside of S2G), and have it start up ready to record a specific part of my screen.

<!-- gh-comment-id:851794504 --> @tankorsmash commented on GitHub (Jun 1, 2021): Looking forward to this feature; it would be nice to be able to bind S2Gif to a hotkey (outside of S2G), and have it start up ready to record a specific part of my screen.
Author
Owner

@NickeManarin commented on GitHub (Jun 7, 2021):

Done. This feature will be available with the next release (v2.32).

I'm going to update the wiki with the details about the switches/command parameters.
But the usage is like this (all parameters were shortened):

.\ScreenToGif.exe -n -o s -r 300,300,400,250 -f 15fps -l 00:00:06 -c

-n = new instance
-o =open
s = screen recorder
-r = region (Rect)
-f = capture frequency
-l = time limit (TimeSpan as HH:MM:SS.FFF)
-c = start capture

<!-- gh-comment-id:855533723 --> @NickeManarin commented on GitHub (Jun 7, 2021): Done. This feature will be available with the next release (v2.32). I'm going to update the wiki with the details about the switches/command parameters. But the usage is like this (all parameters were shortened): `.\ScreenToGif.exe -n -o s -r 300,300,400,250 -f 15fps -l 00:00:06 -c` -n = new instance -o =open s = screen recorder -r = region (`Rect`) -f = capture frequency -l = time limit (`TimeSpan` as **HH:MM:SS.FFF**) -c = start capture
Author
Owner

@NickeManarin commented on GitHub (Jun 7, 2021):

https://github.com/NickeManarin/ScreenToGif/wiki/Startup-parameters

<!-- gh-comment-id:855545330 --> @NickeManarin commented on GitHub (Jun 7, 2021): https://github.com/NickeManarin/ScreenToGif/wiki/Startup-parameters
Author
Owner

@tankorsmash commented on GitHub (Jun 7, 2021):

Awesome, thank you @NickeManarin!

<!-- gh-comment-id:855551057 --> @tankorsmash commented on GitHub (Jun 7, 2021): Awesome, thank you @NickeManarin!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#474
No description provided.