peek icon indicating copy to clipboard operation
peek copied to clipboard

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

Open kayaksan opened this issue 7 years ago • 20 comments

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.

kayaksan avatar Jun 11 '18 02:06 kayaksan

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?

phw avatar Jun 13 '18 18:06 phw

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.

o-alquimista avatar Jun 16 '18 21:06 o-alquimista

  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.

kayaksan avatar Jun 18 '18 18:06 kayaksan

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

Art-2 avatar Jun 28 '18 16:06 Art-2

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.

max-baz avatar Jul 09 '18 18:07 max-baz

Having the same exact issue on Elementary OS + Gala

matheuscorreia avatar Jul 10 '18 20:07 matheuscorreia

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

gogoprog avatar Jul 14 '18 08:07 gogoprog

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).

fsgreco avatar Jul 15 '18 17:07 fsgreco

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

solorvox avatar Jul 21 '18 09:07 solorvox

Any news on this?

gogoprog avatar Aug 14 '18 11:08 gogoprog

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

fsgreco avatar May 03 '19 12:05 fsgreco

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.

polyzium avatar Oct 13 '19 11:10 polyzium

I still have this issue with 1.4.0

gogoprog avatar Nov 03 '19 14:11 gogoprog

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.

sedyh avatar Aug 11 '21 18:08 sedyh

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

S-Riches avatar Oct 26 '22 15:10 S-Riches

nning ubuntu version 22. Did

Just adding I'm having the same issue Ubuntu 22.04

lufemas avatar Nov 09 '22 15:11 lufemas

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

magnush67 avatar Nov 17 '22 14:11 magnush67

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

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

adblair avatar Dec 09 '22 14:12 adblair

+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.

NielsRenard avatar Dec 09 '22 23:12 NielsRenard

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

ddm90 avatar Apr 21 '24 18:04 ddm90