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

show_region option is not recognized + possible solution #1341

Open
AlessandroAnnini opened this issue Nov 20, 2024 · 0 comments
Open

show_region option is not recognized + possible solution #1341

AlessandroAnnini opened this issue Nov 20, 2024 · 0 comments

Comments

@AlessandroAnnini
Copy link

Peek: 1.5.1
GTK: 3.24.43
GLib: 2.80.4
Desktop: KDE
Display server: X
FFmpeg version:

ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 11.2.0 (Anaconda gcc)
configuration: --prefix=/home/alan/miniconda3 --cc=/croot/ffmpeg_1722024521393/_build_env/bin/x86_64-conda-linux-gnu-cc --ar=/croot/ffmpeg_1722024521393/_build_env/bin/x86_64-conda-linux-gnu-ar --nm=/croot/ffmpeg_1722024521393/_build_env/bin/x86_64-conda-linux-gnu-nm --ranlib=/croot/ffmpeg_1722024521393/_build_env/bin/x86_64-conda-linux-gnu-ranlib --strip=/croot/ffmpeg_1722024521393/_build_env/bin/x86_64-conda-linux-gnu-strip --disable-doc --enable-swresample --enable-swscale --enable-openssl --enable-libxml2 --enable-libtheora --enable-demuxer=dash --enable-postproc --enable-hardcoded-tables --enable-libfreetype --enable-libharfbuzz --enable-libfontconfig --enable-libdav1d --enable-zlib --enable-libaom --enable-pic --enable-shared --disable-static --disable-gpl --enable-version3 --disable-sdl2 --enable-libopenh264 --enable-libopus --enable-libmp3lame --enable-libopenjpeg --enable-libvorbis --enable-pthreads --enable-libtesseract --enable-libvpx
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

Output format: mp4
gifski enabled: false

Error details:

Command "ffmpeg -f x11grab -show_region 0 -framerate 25 -video_size 1649x1036 -i :0+2071,296 -filter:v scale=iw/1:-1, crop=iw-mod(iw\,2):ih-mod(ih\,2) -codec:v libx264 -preset:v fast -profile:v baseline -pix_fmt yuv420p -r 25 -y /home/alan/.cache/peek/peekEBFFX2.mp4" failed with status 2048 (received signal 0).

Output:
ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers  built with gcc 11.2.0 (Anaconda gcc)  configuration: --prefix=/home/alan/miniconda3 --cc=/croot/ffmpeg_1722024521393/_build_env/bin/x86_64-conda-linux-gnu-cc --ar=/croot/ffmpeg_1722024521393/_build_env/bin/x86_64-conda-linux-gnu-ar --nm=/croot/ffmpeg_1722024521393/_build_env/bin/x86_64-conda-linux-gnu-nm --ranlib=/croot/ffmpeg_1722024521393/_build_env/bin/x86_64-conda-linux-gnu-ranlib --strip=/croot/ffmpeg_1722024521393/_build_env/bin/x86_64-conda-linux-gnu-strip --disable-doc --enable-swresample --enable-swscale --enable-openssl --enable-libxml2 --enable-libtheora --enable-demuxer=dash --enable-postproc --enable-hardcoded-tables --enable-libfreetype --enable-libharfbuzz --enable-libfontconfig --enable-libdav1d --enable-zlib --enable-libaom --enable-pic --enable-shared --disable-static --disable-gpl --enable-version3 --disable-sdl2 --enable-libopenh264 --enable-libopus --enable-libmp3lame --enable-libopenjpeg --enable-libvorbis --enable-pthreads --enable-libtesseract --enable-libvpx  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.100Unrecognized option 'show_region'.Error splitting the argument list: Option not found

Here is what Claude says about this:

The error occurs because the -show_region option is not recognized by ffmpeg. Here's the corrected command:

ffmpeg -f x11grab -framerate 25 -video_size 1649x1036 -i :0+2124,188 -filter:v "scale=iw/1:-1,crop=iw-mod(iw\,2):ih-mod(ih\,2)" -c:v libx264 -preset fast -profile:v baseline -pix_fmt yuv420p -r 25 -y /home/alan/.cache/peek/peekZAOFX2.mp4

Key changes:

  1. Removed invalid -show_region 0 option
  2. Fixed filter syntax by adding quotes
  3. Simplified codec option from -codec:v to -c:v
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