phw / peek

Simple animated GIF screen recorder with an easy to use interface
GNU General Public License v3.0
10.15k stars 317 forks source link

GIF records are freezing/cutting, but work if the resolution is down sampled. #331

Open kayaksan opened 6 years ago

kayaksan commented 6 years ago

After recording a GIF, the file is played correctly for about 2 seconds before freezing, then it continues with a lot of cuts. Downsampling solves this; changing the framerate does not (no effect, it still has this problem); changing the size of the window that records the GIF also has no effect, only increasing downsampling does. However, many times, it isn't an option to have the GIF at a smaller image size.

phw commented 6 years ago

A few questions to narrow this down:

  1. Did you record on Gnome or some other DE?
  2. Wayland or X?
  3. Does recording a WebM have the same effect?
  4. If on Gnome, does using the built-in Gnome Shell screen recorder work (start / stop with Ctrl + Alt + Shift + R by default, results are placed in your videos folder)?
  5. If on Gnome X11 session, does starting Peek with peek -b ffmpeg make any difference?
o-alquimista commented 6 years ago

1 & 2: Installed the flatpak package on Debian 9 with GNOME on X, but it also happens under Wayland; I can reproduce this on Fedora Workstation as well.

  1. The recorded WebM has the same freezing and glitching the GIF has.

  2. Videos recorded with the built-in screen recorder are perfect. Yes, they appear at ~/Videos

  3. I tested with both gnome-shell and ffmpeg backends by specifying them in the command. One backend records the video just fine: gnome-shell. But ffmpeg doesn't. This made me realize I was only having this problem with other DEs, because here with GNOME the gnome-shell backend is the default, so it works out-of-the-box.

By choosing ffmpeg or using a different DE, the videos end up corrupted, freezing and jumping scenes in a predictable way. I mean, it freezes always at the same time of playback, jumps through a lot of scenes and then resumes when it's almost ending. It's not random, it happens in the same way every time.

kayaksan commented 6 years ago
  1. Did you record on Gnome or some other DE?

I am using XFCE. More specifically, the version from Linux Mint 18.3.

  1. Wayland or X?

X.

  1. Does recording a WebM have the same effect?

Yes. The same freezing effect.

  1. If on Gnome X11 session, does starting Peek with peek -b ffmpeg make any difference?

Even though I'm not on Gnome, I tried the command; the backend doesn't record the GIF just fine. No success.

Art-2 commented 6 years ago

I have the same problem on Xubuntu 18.04 recording Gifs and Webms with relative high fps

Gif @ 24 fps using Peek (installed) peek 28-06-2018 10-47

Gif @ 24 fps using Peek (Appimage) peek 28-06-2018 10-48

maximbaz commented 5 years ago

I also have the same issue on Arch Linux + lightdm + i3wm. Thanks for the tip with downsampling, this is the only way to record smooth gifs currently.

For reference, here is what happens when I record the same actions with downsampling of 2 and 1. I'm doing exactly the same actions on both gifs, but notice how half of my steps are simply gone from the high-quality gif, e.g. it froze and skipped opening of the menu.

vertical-selection-d1

vertical-selection-2

I'm attaching the original gif.zip in case you want to analyze them, because I think Github might tamper with pictures after uploading.

matheuscorreia commented 5 years ago

Having the same exact issue on Elementary OS + Gala

gogoprog commented 5 years ago

Same issue here: peek 1.3.1 Archlinux AwesomeWM 4.2 xorg-server 1.20.0 nvidia 396.24

fsgreco commented 5 years ago

Exactly the same issue either under Archlinux (KDE 5.13; xorg-server 1.20.0-9; xf86-video-intel) and under Antergos (with an NVIDIA driver).

solorvox commented 5 years ago

Same issue as well in both Webm and Gif formats. Even using high-res gifs.

Peek (flatpack) 1.3.1 Linux Mint 18.3 kernel 4.15.0-24-generic Cinnamon: 3.6.7+sylvia Xserver-xorg-core: 1.18.4-0ubuntu0.7 Nvidia drivers: 384.130

gogoprog commented 5 years ago

Any news on this?

fsgreco commented 5 years ago

Are there any improves on this? I still have this problem :/

polyzium commented 4 years ago

I have the same problem (Antergos/Arch user here on X), but even with downsampling, and it's present on all file types. I think it has to do with the way Peek captures windows.

gogoprog commented 4 years ago

I still have this issue with 1.4.0

sedyh commented 2 years ago

Same issue.

System:    Kernel: 5.4.0-80-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Cinnamon 5.0.5 
           wm: muffin dm: LightDM Distro: Linux Mint 20.2 Uma base: Ubuntu 20.04 focal 
Machine:   Type: Desktop Mobo: ASRock model: B450 Pro4 serial: <filter> 
           UEFI [Legacy]: American Megatrends v: P3.60 date: 07/31/2019 
CPU:       Topology: 6-Core model: AMD Ryzen 5 3600 bits: 64 type: MT MCP arch: Zen 
           L2 cache: 3072 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 86233 
           Speed: 2196 MHz min/max: 2200/3600 MHz Core speeds (MHz): 1: 2076 2: 1894 3: 2195 
           4: 2196 5: 2563 6: 2195 7: 2195 8: 2195 9: 1966 10: 1912 11: 2479 12: 2195 
Graphics:  Device-1: AMD Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] driver: amdgpu 
           v: kernel bus ID: 0c:00.0 chip ID: 1002:731f 
           Display: x11 server: X.Org 1.20.11 driver: amdgpu,ati 
           unloaded: fbdev,modesetting,radeon,vesa resolution: 2560x1440~60Hz 
           OpenGL: 
           renderer: AMD Radeon RX 5700 XT (NAVI10 DRM 3.35.0 5.4.0-80-generic LLVM 12.0.1) 
           v: 4.6 Mesa 21.2.0-devel direct render: Yes

I can not use the program because of this.

S-Riches commented 1 year ago

Peek still having freezing issues, running ubuntu version 22. Did anyone find a work around for this? type

lufemas commented 1 year ago

nning ubuntu version 22. Did

Just adding I'm having the same issue Ubuntu 22.04

magnush67 commented 1 year ago

Problem for me also on Ubuntu 22 and latest stable peek I have tried uninstall and reinstall etc bu no joy Only by only increasing downsampling to 4 does it stop jumping, but then the image is too small and pixelated to see what is happening

adblair commented 1 year ago

I also have this problem on Ubuntu 22.04 using either Wayland or Xorg.

However, running with peek -b ffmpeg under Xorg does work.

NielsRenard commented 1 year ago

+1

Same issue, using version available on ubuntu 22.04 apt

peek: 1.5.1+git20211214-1 500

And also solved when running it with peek -b ffmpeg.

ddm90 commented 2 months ago

-b ffmpeg doesn't fix it for me in Linux Mint 21.3 Cinnamon , neither Flatpak nor System Package versions.