[GH-ISSUE #780] Importing a mp4 with FFmpeg crops the end of the video #627

Closed
opened 2026-02-26 09:32:06 +03:00 by kerem · 3 comments
Owner

Originally created by @Garfounkel on GitHub (Jan 18, 2021).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/780

Originally assigned to: @NickeManarin on GitHub.

Importing a mp4 by drag and drop in the editor deletes the end of the video when using FFmpeg as the importer. For instance, I have a 8 seconds clip where only the first 7.1 seconds can be imported in ScreenToGif (the preview window shows a total duration of 7.1 seconds and the last frame is clearly not the correct one).

Originally created by @Garfounkel on GitHub (Jan 18, 2021). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/780 Originally assigned to: @NickeManarin on GitHub. Importing a mp4 by drag and drop in the editor deletes the end of the video when using FFmpeg as the importer. For instance, I have a 8 seconds clip where only the first 7.1 seconds can be imported in ScreenToGif (the preview window shows a total duration of 7.1 seconds and the last frame is clearly not the correct one).
kerem 2026-02-26 09:32:06 +03:00
Author
Owner

@NickeManarin commented on GitHub (Jan 19, 2021):

Can you share your video? If not here, via any other method in here.

<!-- gh-comment-id:763047942 --> @NickeManarin commented on GitHub (Jan 19, 2021): Can you share your video? If not here, via any other method in [here.](www.screentogif.com/contact)
Author
Owner

@Garfounkel commented on GitHub (Jan 20, 2021):

I've attached the video here, thanks for your help!

<!-- gh-comment-id:763720465 --> @Garfounkel commented on GitHub (Jan 20, 2021): I've attached the [video here](https://user-images.githubusercontent.com/10576004/105198058-91ab7e00-5b3d-11eb-823e-420f603bb295.mp4 ), thanks for your help!
Author
Owner

@NickeManarin commented on GitHub (Jan 23, 2021):

Thanks for uploading the video.

I fixed the issue. It was caused by a workaround for some issue of FFmpeg not loading the last few milliseconds of the video.
I was reducing the duration of the video more than needed.

image

<!-- gh-comment-id:765831155 --> @NickeManarin commented on GitHub (Jan 23, 2021): Thanks for uploading the video. I fixed the issue. It was caused by a workaround for some issue of FFmpeg not loading the last few milliseconds of the video. I was reducing the duration of the video more than needed. ![image](https://user-images.githubusercontent.com/14798947/105566632-f74d6500-5d0b-11eb-9691-fc8e0ec3e64f.png)
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#627
No description provided.