用vlc播放视频文件时出现上述错误,但是不影响文件的播放
用以下命令就不会出现如题所述的错误,应该是显卡或者驱动的原因
./vlc ../test.mp4 --vout x11
./vlc ../test.mp4 --vout sdl
源:http://www.videolan.org/doc/vlc-user-guide/en/ch02.html
Video outputs
Video outputs modules allow VLC to display video on your screen. When launched, VLC tries to guess the most suitable video output module for your system. However, if you want to force a specific module, use the following command line switch: --vout modulename
default enabled on win32
For Windows only
This video output uses Microsoft Direct X libraries. It is recommended for the win32 port.
You may indicate the path to directX libraries and headers with the --with-directx=PATH switch, when running the configure script.
default: enabled
For Unix with X11 servers only
This is the basic X11 video output. It only requires a working X11 server. You will need xlibs headers to compile it (xlibs-dev package on Debian systems).
Options:
-
--x11-display <string> X11 display name to use
-
--x11-altfullscreen, --no-x11-altfullscreen : use alternate fullscreen mode to bypass window managers (default disabled)
-
--x11-shm, --no-x11-shm : use x11 shared memory (default enabled)
-
--x11-xineramascreen <integer> : choose the screen to be used for fullscreen mode, when working with xinerama
default: enabled
For GNU/Linux only
It requires an xvideo compliant graphic card (it is the case for nearly all modern cards). It uses hardware acceleration for YUV transformation and rescaling.
Options:
-
--xvideo-display <string> : X11 display name to use
-
--xvideo-adaptor <integer> : xvideo adaptor number
-
--xvideo-altfullscreen, --no-xvideo-altfullscreen : use alternate fullscreen mode to bypass window managers (default disabled)
-
--xvideo-shm, --no-xvideo-shm : use x11 shared memory (default enabled)
-
--xvideo-xineramascreen <integer> : choose the screen to be used for fullscreen mode, when working with xinerama
-
--xvideo-chroma <string> : XVimage chroma format
当使用VLC播放视频时遇到'xcb_xv generic error: no available XVideo adaptor'的问题,这可能由于显卡或驱动导致。通过在命令行中指定--vout选项,如--vout x11或--vout sdl,可以避免该错误。x11和xvideo是两种视频输出模块,前者适用于Unix与X11服务器,后者则在GNU/Linux上使用硬件加速。
1万+

被折叠的 条评论
为什么被折叠?



