Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error When Saving GIFs: "Error initializing complex filters: Invalid argument" #7420

Open
Foadsf opened this issue Apr 30, 2024 · 0 comments

Comments

@Foadsf
Copy link

Foadsf commented Apr 30, 2024

Following this question on Discord, I've encountered an issue with ShareX on Windows 10 when attempting to save screen recordings as GIFs. Each attempt results in an FFmpeg-related error, preventing the GIF from being saved correctly. The problem might be linked to the configuration of the complex filters in FFmpeg, particularly around audio stream mixing. Below is the error message received:

ffmpeg version n6.1.1-20240114 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 13.2.0 (crosstool-NG 1.25.0.232_c175b21)
  configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libharfbuzz --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-chromaprint --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-libaribcaption --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libvpl --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --enable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --disable-doc --disable-ffplay --disable-ffprobe --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags= --extra-libs=-lgomp --extra-version=20240114
  libavutil      58. 29.100 / 58. 29.100
  libavcodec     60. 31.102 / 60. 31.102
  libavformat    60. 16.100 / 60. 16.100
  libavdevice    60.  3.100 / 60.  3.100
  libavfilter     9. 12.100 /  9. 12.100
  libswscale      7.  5.100 /  7.  5.100
  libswresample   4. 12.100 /  4. 12.100
  libpostproc    57.  3.100 / 57.  3.100
Input #0, dshow, from 'video=screen-capture-recorder':
  Duration: N/A, start: 6933.149000, bitrate: N/A
  Stream #0:0: Video: rawvideo, bgr0, 691x655, 15 fps, 15 tbr, 10000k tbn
[aist#1:0/pcm_s16le @ 000001fd8559c100] Guessed Channel Layout: stereo
Input #1, dshow, from 'audio=Headset Microphone (Jabra Evolve2 40)':
  Duration: N/A, start: 6933.487000, bitrate: 1411 kb/s
  Stream #1:0: Audio: pcm_s16le, 44100 Hz, 2 channels, s16, 1411 kb/s
[fc#0 @ 000001fd83536b00] Cannot find a matching stream for unlabeled input pad amix
Error initializing complex filters: Invalid argument
leaving aero on

Expected Behavior:
The screen recording should be saved as a GIF without errors.

Actual Behavior:
The recording process fails, and the aforementioned error message is displayed.

System Information:

  • ShareX Version: 16.0.1
  • Operating System: Windows 10
  • FFmpeg Version: Included with ShareX

I have tried searching the existing tickets for similar issues but have not found any that address this specific problem. Any insights or recommendations on how to resolve this would be greatly appreciated.

Thank you so much for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant