NickeManarin / ScreenToGif

🎬 ScreenToGif allows you to record a selected area of your screen, edit and save it as a gif or video.

Home Page:http://www.screentogif.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug] MP4 import with FFmpeg or MediaPlayer cuts the end of the video

GregariousJB opened this issue · comments

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

Untitled.mp4

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

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)

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)