mirror of
https://github.com/NickeManarin/ScreenToGif.git
synced 2026-04-25 15:15:51 +03:00
[GH-ISSUE #1399] [Bug] Unable to load a Video (Cannot mix synchronous...) #1031
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#1031
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 @diogotex on GitHub (Jul 7, 2025).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/1399
Originally assigned to: @NickeManarin on GitHub.
Describe the bug
When Im at editor mode and try to import a .mp4 video, the preview apears perfectly but I can only import using Media Player as importer, and not FFmpeg as before. Via Media Player the color get a bit darker.
And via FFmpeg I get the error message:
Unable to load video
Cannot mix synchronous and asynchronous operation on process stream.
To Reproduce
Expected behavior
Import the video on the editor mode
Screenshots

Desktop (please complete the following information):
Windows 10
V 2.41.3
@fz0000 commented on GitHub (Jul 11, 2025):
I can reproduce this issue on Windows 11 with v2.41.3, with some short videos.
I attached a sample .mp4 file. Error occurs when I import it in 10 fps:
https://github.com/user-attachments/assets/bca18886-4988-4ba0-8991-cc57521c2dc5
Sometimes this issue does not occur if:
In addition, I encountered several other errors when importing the .mp4 files, such as:
All exceptions are thrown in this function:
github.com/NickeManarin/ScreenToGif@3657cd5326/ScreenToGif/Windows/Other/VideoSource.xaml.cs (L899)@diogotex commented on GitHub (Jul 11, 2025):
Thanks for the tests. The idea of different frame rate didn't work for me. I tried the same framerate of the original video, 24fps, but had the same issue.
The others errors I never get.
@NickeManarin commented on GitHub (Jul 13, 2025):
Thanks for the help, I could not reproduce any of the issues.
But anyway, I'm currently rewriting the code of the importer.
@NickeManarin commented on GitHub (Jul 15, 2025):
Done, I fixed several issues with the frame loading, both for using FFmpeg and the system media foundation (MediaPlayer).
Also fixed some issues with the video scrubbing as well.
@NickeManarin commented on GitHub (Jul 15, 2025):
I should release the fixes this week, in 2-3 days.