NickeManarin / ScreenToGif

🎬 ScreenToGif allows you to record a selected area of your screen, edit and save it as a gif or video.
http://www.screentogif.com
Microsoft Public License
23.03k stars 2.15k forks source link

[Feature Request] Smarter default export location & smarter filename #848

Open Garfounkel opened 3 years ago

Garfounkel commented 3 years ago
  1. The editor always defaults the exported file location to the last exported folder, which makes sense when using ScreenToGif as a recorder, but I find myself often importing mp4 files directly into the editor instead. In that case, it would make more sense to default the export folder to the location of the imported mp4. This would remove the unnecessary back and forth when working on multiple projects at the same time.

  2. With the same idea in mind, the name of the output file could also be made smarter by allowing the use of the imported file as a special symbol similar to #282. Maybe %i% for input file.

For instance if I import Somefolder/my_video.mp4 into the editor, %i%.gif would output a file named my_video.gif located in Somefolder by default.

If the template name use %i% while no file was imported (for instance when using the Screen recorder directly), just give a warning that %i% will be blank in that case.

hced commented 3 years ago

Adding to this, I (humbly) wish there could be a date/time symbol for filenames, so you don't have to mind your saved filenames at all. filename_yyyymmddhhmmss.gif for example.

NickeManarin commented 3 years ago

Adding to this, I (humbly) wish there could be a date/time symbol for filenames, so you don't have to mind your saved filenames at all. filename_yyyymmddhhmmss.gif for example.

This is already implemented, just type the date/time format between ??, like ?yyy-MM-dd?.gif.

hced commented 3 years ago

@NickeManarin You’re a god! I’m very thankful for this beautiful piece of app. Thanks, the missing piece was not even missing.

hced commented 3 years ago

@NickeManarin Just a quick question: I'm using this format: filename_?yyyMMdd_HH_MM_ss? and every digit works except for the minutes, which would always generate a 5, like gif_20210515_21_05_17.gif, gif_20210515_21_05_04.gif, etc. Is something wrong with my format? Five minutes past nine was actually correct the first time I saved a file, but as it went past that time, the minutes would not change. Probably same for hours.

NickeManarin commented 3 years ago

MM = Month mm = Minutes

Search for c# date/time format.