[GH-ISSUE #1256] [Bug] MP4 import with FFmpeg or MediaPlayer cuts the end of the video #925

Open
opened 2026-02-26 09:33:03 +03:00 by kerem · 2 comments
Owner

Originally created by @GregariousJB on GitHub (Dec 4, 2023).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/1256

Originally assigned to: @NickeManarin on GitHub.

To Reproduce
Steps to reproduce the behavior:

  1. File > Load
  2. Open MP4
  3. Click "OK" to select all frames
  4. Playback > Play
  5. End of video is cut/cropped out

Video

https://github.com/NickeManarin/ScreenToGif/assets/540857/37ae37a4-ee6e-44f1-bab5-2dad88aff97b

In the video, he completes his sentence by saying "valid". However, ScreenToGif cuts this word off. As you can see in the video above, he ends the sentence with his eyes looking back up. In ScreenToGif (MediaPlayer), the final frame shows his eyes looking down. In FFmpeg mode, his eyes are up but it looks like it cuts off at, "find my opinion v-".

Seems to be a duplicate of previously closed issue #780

Desktop (please complete the following information):

  • OS: Windows 10 LTSC 21H2
  • Version: 2.39
Originally created by @GregariousJB on GitHub (Dec 4, 2023). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/1256 Originally assigned to: @NickeManarin on GitHub. **To Reproduce** Steps to reproduce the behavior: 1. File > Load 2. Open MP4 3. Click "OK" to select all frames 4. Playback > Play 5. End of video is cut/cropped out **Video** https://github.com/NickeManarin/ScreenToGif/assets/540857/37ae37a4-ee6e-44f1-bab5-2dad88aff97b In the video, he completes his sentence by saying "valid". However, ScreenToGif cuts this word off. As you can see in the video above, he ends the sentence with his eyes looking back up. In ScreenToGif (MediaPlayer), the final frame shows his eyes looking down. In FFmpeg mode, his eyes are up but it looks like it cuts off at, "find my opinion v-". Seems to be a duplicate of previously closed issue #780 **Desktop (please complete the following information):** - OS: Windows 10 LTSC 21H2 - Version: 2.39
Author
Owner

@GregariousJB commented on GitHub (Dec 4, 2023):

I don't know if this is helpful, but I edited this video using DaVinci Resolve 18.6.3 with the following settings: https://i.imgur.com/emHGHPB.png

(My plan was to crop out the black bars from the video using ScreenToGif because I can't figure out how to do it using DaVinci)

<!-- gh-comment-id:1839426072 --> @GregariousJB commented on GitHub (Dec 4, 2023): I don't know if this is helpful, but I edited this video using DaVinci Resolve 18.6.3 with the following settings: https://i.imgur.com/emHGHPB.png (My plan was to crop out the black bars from the video using ScreenToGif because I can't figure out how to do it using DaVinci)
Author
Owner

@NickeManarin commented on GitHub (Dec 5, 2023):

Let's check:

MediaInfo says that the video is 3.337s and the audio is 3.349s.
FFmpeg says that the video 00:00:03.35 which I interpret as 3.350s.
MediaPlayer says the video is 3s which is useless in this case.

I do a 100ms trim while using FFmpeg, because for some reason it fails to grab any frames past that mark:

frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
<!-- gh-comment-id:1839853858 --> @NickeManarin commented on GitHub (Dec 5, 2023): Let's check: MediaInfo says that the video is `3.337s` and the audio is `3.349s`. FFmpeg says that the video `00:00:03.35` which I interpret as `3.350s`. MediaPlayer says the video is `3s` which is useless in this case. I do a 100ms trim while using FFmpeg, because for some reason it fails to grab any frames past that mark: ``` frame= 0 fps=0.0 q=0.0 size= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A frame= 0 fps=0.0 q=0.0 Lsize= 0kB time=-577014:32:22.77 bitrate= -0.0kbits/s speed=N/A video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used) ```
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#925
No description provided.