[FFmpeg-trac] #8450(avdevice:reopened): x11grab doesn't work with headless X servers

FFmpeg trac at avcodec.org
Thu Jan 2 19:21:03 EET 2020


#8450: x11grab doesn't work with headless X servers
------------------------------------+------------------------------------
             Reporter:  eero-t      |                    Owner:
                 Type:  defect      |                   Status:  reopened
             Priority:  normal      |                Component:  avdevice
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+------------------------------------

Comment (by eero-t):

 Ok, now it isn't anymore dropping frames with Xvfb:
 {{{
 $ Xvfb :99 -screen 0 1920x1080x24 -nolisten tcp &
 $ ffmpeg -y -an -f x11grab -video_size 1920x1080 -framerate 8 -i :99
 out.mp4
 ffmpeg version N-96235-g3670a10c2d Copyright (c) 2000-2020 the FFmpeg
 developers
   built with gcc 7 (Ubuntu 7.4.0-1ubuntu1~18.04.1)
   configuration: --prefix=/opt --enable-libmfx --enable-vaapi --enable-
 sdl2 --disable-libx265 --disable-libx264 --disable-libvpx --enable-
 libvorbis --enable-libopus --disable-libmp3lame --disable-libass
 --disable-sndio --enable-libfreetype --enable-gpl --disable-doc
   libavutil      56. 38.100 / 56. 38.100
   libavcodec     58. 65.102 / 58. 65.102
   libavformat    58. 35.101 / 58. 35.101
   libavdevice    58.  9.102 / 58.  9.102
   libavfilter     7. 70.101 /  7. 70.101
   libswscale      5.  6.100 /  5.  6.100
   libswresample   3.  6.100 /  3.  6.100
   libpostproc    55.  6.100 / 55.  6.100
 [x11grab @ 0x564d93f4b3c0] Cannot get the image data event_error:
 response_type:0 error_code:128 sequence:9 resource_id:2097152 minor_code:4
 major_code:130.
 [x11grab @ 0x564d93f4b3c0] Continuing without shared memory.
 [x11grab @ 0x564d93f4b3c0] Stream #0: not enough frames to estimate rate;
 consider increasing probesize
 Input #0, x11grab, from ':99':
   Duration: N/A, start: 1577985187.298908, bitrate: N/A
     Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1920x1080, 8
 fps, 1000k tbr, 1000k tbn, 1000k tbc
 Stream mapping:
   Stream #0:0 -> #0:0 (rawvideo (native) -> mpeg4 (native))
 Press [q] to stop, [?] for help
 Output #0, mp4, to 'out.mp4':
   Metadata:
     encoder         : Lavf58.35.101
     Stream #0:0: Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 1920x1080,
 q=2-31, 200 kb/s, 8 fps, 16384 tbn, 8 tbc
     Metadata:
       encoder         : Lavc58.65.102 mpeg4
     Side data:
       cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A
 frame=  192 fps=8.0 q=2.0 Lsize=     543kB time=00:00:23.87 bitrate=
 186.2kbits/s speed=   1x
 }}}

 I'll check it more tomorrow (Xdummy, the actual output etc).

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8450#comment:7>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list