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.07k stars 2.15k forks source link

[Bug] Unable to import frames from video using ffmpeg #1165

Closed NormanMises closed 9 months ago

NormanMises commented 1 year ago

Describe the bug Unable to import frames from video using ffmpeg I have configured ffmpeg, it is the latest version of the build that I downloaded. But when I use ffmpeg to import video frames, it doesn't work and the progress bar stays at 0 without change.

To Reproduce Steps to reproduce the behavior: Just use ffmpeg to import video frames

Expected behavior Video frames can be successfully imported

Screenshots If applicable, add screenshots to help explain your problem. image

Desktop (please complete the following information): 版本 Windows 11 家庭中文版 版本 22H2 安装日期 ‎2022/‎05/‎12 操作系统版本 22623.1245 体验 Windows Feature Experience Pack 1000.22638.1000.0

Additional context might be the log ► Title - Purging cache ♦ [Version] Date/Hour - [2.37.1] 01/31/2023 17:55:40 ▬ Message - The process cannot access the file '0a207526-6eb8-4d6b-969a-5ca6aa0c8a53.tmp' because it is being used by another process. ○ Type - System.IO.IOException ▲ Source - System.Private.CoreLib ▼ TargetSite - Void RemoveDirectoryRecursive(System.String, WIN32_FIND_DATA ByRef, Boolean) ♠ StackTrace - at System.IO.FileSystem.RemoveDirectoryRecursive(String fullPath, WIN32_FIND_DATA& findData, Boolean topLevel) at System.IO.FileSystem.RemoveDirectory(String fullPath, Boolean recursive) at System.IO.Directory.Delete(String path, Boolean recursive) at ScreenToGif.Util.StorageUtils.PurgeCache() in C:\Users\nicke\source\ScreenToGif\ScreenToGif\Util\StorageUtils.cs:line 19


NormanMises commented 1 year ago

Even though I changed the cache location, it still doesn't work

7peanuts commented 1 year ago

Even though I changed the cache location, it still doesn't work

换一个 ffmpeg 版本,或者使用 STG 下载的 ffmpeg

cherinyy commented 10 months ago

I had the same problem with FFmpeg from gyan.dev.

FFmpeg version: 2023-08-30-git-7aa71ab5c0

cherinyy commented 10 months ago

FFmpeg 5.1.2 works fine.

NickeManarin commented 9 months ago

Fixed, it will be available with the next version of the app.