FFmpeg X11在Ubuntu服务器上获取黑屏
我一直在尝试使用FFmpeg来获取第二台显示服务器的输出,但是当我在PC上打开VLC中的视频时,它看起来像是黑屏。我已尝试使用apt的FFmpeg和我自己构建的但是它们都获得了相同的输出。 这是我用于视频的命令: ffmpeg -y -framerate 30 -f x11grab -video_size 1024x576 -i :1 -vcodec qtrle out.mov 这是FFmpeg的输出 ffmpeg version N-92272-g0e9c01f Copyright (c) 2000-2018 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609 configuration: --prefix=/home/nas/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/nas/ffmpeg_build/include --extra-ldflags=-L/home/nas/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/home/nas/bin --enable-gpl --enable-libaom --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 …