Opened 11 years ago
Closed 11 years ago
#4575 closed defect (duplicate)
x11grab Capture area outside the screen size
| Reported by: | mark | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | undetermined |
| Version: | unspecified | Keywords: | |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | no | |
| Analyzed by developer: | no |
Description
Summary of the bug:
I used ffmpeg for Linux screen capturing and had it working until I upgraded to ffmpeg 2.6.3 (it works with 2.6.2 and previous versions).
I record the screen in 1920x1080 resolution from (0,0) but ffmpeg 2.6.3 creates the error that 1920x1080 from 0,0 is outside the size of 1920x1080 (which obviously is not true).
How to reproduce:
ffmpeg started on 2015-05-25 at 08:27:58
Report written to "ffmpeg-20150525-082758.log"
Command line:
ffmpeg -report -v 9 -loglevel 99 -f pulse -ac 2 -i alsa_output.pci-0000_04_00.1.hdmi-stereo.monitor -f x11grab -r 30 -s 1920x1080 -i :0.0 -vcodec libx264 -preset ultrafast -crf 22 -acodec libvorbis -aq 10 -threads 1 /mnt/ramdisk/Videos/2015-05-25_08:21:26.mkv
ffmpeg version 2.6.3 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.9.2 (Gentoo 4.9.2 p1.3, pie-0.6.2)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --enable-shared --cc=x86_64-pc-linux-gnu-gcc --cxx=x86_64-pc-linux-gnu-g++ --ar=x86_64-pc-linux-gnu-ar --optflags='-march=haswell -O2 -pipe' --extra-cflags='-march=haswell -O2 -pipe' --extra-cxxflags='-march=haswell -O2 -pipe' --disable-static --enable-avfilter --enable-avresample --disable-stripping --enable-nonfree --enable-version3 --enable-nonfree --disable-indev=v4l2 --disable-outdev=v4l2 --disable-indev=oss --disable-indev=jack --disable-outdev=oss --enable-bzlib --disable-runtime-cpudetect --disable-debug --disable-doc --disable-gnutls --enable-gpl --enable-hardcoded-tables --enable-iconv --enable-lzma --enable-network --enable-openssl --enable-postproc --disable-libsmbclient --enable-ffplay --enable-vaapi --enable-vdpau --enable-xlib --enable-libxcb --enable-libxcb-shm --enable-libxcb-xfixes --enable-zlib --disable-libcdio --disable-libiec61883 --disable-libdc1394 --disable-libcaca --disable-openal --enab libavutil 54. 20.100 / 54. 20.100
libavcodec 56. 26.100 / 56. 26.100
libavformat 56. 25.101 / 56. 25.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 11.102 / 5. 11.102
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Splitting the commandline.
Reading option '-report' ... matched as option 'report' (generate a report) with argument '1'.
Reading option '-v' ... matched as option 'v' (set logging level) with argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument '99'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'pulse'.
Reading option '-ac' ... matched as option 'ac' (set number of audio channels) with argument '2'.
Reading option '-i' ... matched as input file with argument 'alsa_output.pci-0000_04_00.1.hdmi-stereo.monitor'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'x11grab'.
Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with argument '30'.
Reading option '-s' ... matched as option 's' (set frame size (WxH or abbreviation)) with argument '1920x1080'.
Reading option '-i' ... matched as input file with argument ':0.0'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'libx264'.
Reading option '-preset' ... matched as AVOption 'preset' with argument 'ultrafast'.
Reading option '-crf' ... matched as AVOption 'crf' with argument '22'.
Reading option '-acodec' ... matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'libvorbis'.
Reading option '-aq' ... matched as option 'aq' (set audio quality (codec-specific)) with argument '10'.
Reading option '-threads' ... matched as AVOption 'threads' with argument '1'.
Reading option '/mnt/ramdisk/Videos/2015-05-25_08:21:26.mkv' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option report (generate a report) with argument 1.
Applying option v (set logging level) with argument 9.
Applying option loglevel (set logging level) with argument 99.
Successfully parsed a group of options.
Parsing a group of options: input file alsa_output.pci-0000_04_00.1.hdmi-stereo.monitor.
Applying option f (force format) with argument pulse.
Applying option ac (set number of audio channels) with argument 2.
Successfully parsed a group of options.
Opening an input file: alsa_output.pci-0000_04_00.1.hdmi-stereo.monitor.
[pulse @ 0xb8f380] All info found
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, pulse, from 'alsa_output.pci-0000_04_00.1.hdmi-stereo.monitor':
Duration: N/A, start: 1432535278.783670, bitrate: 1536 kb/s
Stream #0:0, 1, 1/1000000: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
Successfully opened the file.
Parsing a group of options: input file :0.0.
Applying option f (force format) with argument x11grab.
Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 30.
Applying option s (set frame size (WxH or abbreviation)) with argument 1920x1080.
Successfully parsed a group of options.
Opening an input file: :0.0.
[x11grab @ 0xb981c0] Capture area 1920x1080 at position 0.0 outside the screen size 1920x1080
:0.0: Invalid argument
Here is a snippet from the -report of version 2.6.2:
Successfully parsed a group of options.
Opening an input file: :0.0.
[x11grab @ 0xaa0a40] All info found
Input #1, x11grab, from ':0.0':
Duration: N/A, start: 1432535022.091128, bitrate: N/A
Stream #1:0, 1, 1/1000000: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1920x1080, 30 fps, 30 tbr, 1000k tbn, 30 tbc
Successfully opened the file.
Change History (2)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
| Component: | ffmpeg → undetermined |
|---|---|
| Resolution: | → duplicate |
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.



This is a duplicate of https://trac.ffmpeg.org/ticket/4574