leafo / gifine

Quickly record and edit gifs and videos of your desktop

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

After selecting area to record: Invalid argument

Migacz85 opened this issue · comments

After selecting the recording area using slop
I got this error:
:0+0,0: Invalid argument
I experience this problem in 50% cases after selecting area to ### record.

What is strange is that after closing the program and reopening it again its works again

Full trace when working:
Recording with x: 0, 0, w: 961, h: 1054
Working in dir /tmp/gifine_putjybyefn
ffmpeg version n4.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 8.2.1 (GCC) 20180831
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --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. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
:0+0,0: Invalid argument

commented

the error is saying that invalid arguments are being passed into ffmpeg. here's where that happens: https://github.com/leafo/gifine/blob/master/gifine/commands.moon#L94

If you have access to the code to edit then you can try printing out the full command before it is run to see if anything looks strange.