Peek never finishes processing video
I've been recording my screen using the 'mp4' option, for > 10 minutes, and when I was finished, I clicked on 'Stop', then peek starts processing the file and never stops.
It only takes a couple of seconds for shorter videos, so I don't think it really takes that much time (waited 15 minutes) to process.
Peek never finishes, showing a rotating processing icon with the string 'Creating...' in the title bar.
I do not need to kill peek, can just close it via buttons. No error message when closing 'prematurely'. The timer in the task bar continues to run until the peek window is closed.
There is a temp mp4 peek file with random letters in my temp directory, which is 6.4 MB only, and which cannot be opened with Xine, whereas mplayer only shows funny colorful squares for a couple of seconds.
I'm running peek 1.3.1 from the launchpad ppa on Linux Mint 18.3 Xfce.
This has now happened for the second time in a row.
Shorter videos work without a problem (e.g. 5 minutes). I still have 12 GB of disk space, and lots of RAM, so that's not the cause.
There's no interesting output on the command line, either, see attached text.
I have exactly the same issue. Short videos of less than ~10 min are saved fine, but more than that and Peek gets stuck on "rendering" forever, (waited around half an hour for a 10 min video). In my case I am using the community repository on Manjaro (archlinux) I have plenty of free SSD space ~200Gb and 16GB RAM
This is what I see on the console
(peek:25030): Gtk-WARNING **: 11:50:55.889: Locale not supported by C library.
Using the fallback 'C' locale.
** (peek:25030): WARNING **: 11:50:55.912: Binding '<Ctrl><Alt>R' failed!
Using screen recorder backend ffmpeg
(peek:25030): Gtk-WARNING **: 11:50:55.917: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version
(peek:25030): Gtk-WARNING **: 11:50:55.917: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version
(peek:25030): Gtk-WARNING **: 11:50:55.917: Theme parsing error: gtk.css:70:34: The style property GtkCheckButton:indicator-size is deprecated and shouldn't be used anymore. It will be removed in a future version
(peek:25030): Gtk-WARNING **: 11:50:55.917: Theme parsing error: gtk.css:71:36: The style property GtkCheckMenuItem:indicator-size is deprecated and shouldn't be used anymore. It will be removed in a future version
(peek:25030): Gtk-WARNING **: 11:50:55.917: Theme parsing error: gtk.css:76:30: The style property GtkExpander:expander-size is deprecated and shouldn't be used anymore. It will be removed in a future version
ffmpeg version n4.2.4 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 10.1.0 (GCC)
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
Warning: libx264 compiled with 10bit support, baseline profile not available. The recorded MP4 might not be playable on all devices.
Also still happens for me. I've switched to OBS for longer recordings.
I have same issue for me it is only 4 minutes, beyond that it never finishes
As a workaround: Copy the webm file from the peek cache location and then convert it by myself.
Location of the cache file:
/home/<user>/.cache/peek/peekXXXXXX.webm
Source: https://askubuntu.com/a/1117290
Convert the webm to gif:
ffmpeg -y -i input.webm -vf palettegen palette.png
ffmpeg -y -i input.webm -i palette.png -filter_complex paletteuse -r 10 output.gif
Hints:
You can use ps to grep for the cache file name
ps -HA -o pid,user,group,args | grep ffmpeg
or you debugging on console before starting the application
G_MESSAGES_DEBUG=all peek
For anybody wondering. Peek's rendering seems just slow, not sure if depends on the recording format though.
I recorded a roughly 6 minute1920x1080 mp4 video at 30 fps, and the rendering has been taking 3 hours... When I opened system monitor, I can see it spawned an ffmpeg process to render the video and I can see the video size growing over time by ls -hs ~/.cache/peek/, however, I suspect due to not passing proper flags, ffmpeg only utilizes 2% of the cpu.
EDIT
After 5 hours, it still hasn't finished and I realized it's not just slow. It never stops recording while it says "Rendering...". I just closed Peek through the x button in the UI and was able to manually get the video from the cache folder.