背景
我有一个Linux服务器在文本模式下运行,没有安装X.我打算使用directfb将视频和图像展示给显示器(实际上是一台电视机)。我已经安装了vlc-nox,如果它在默认控制台(物理键盘)中调用,它会按预期运行。
如何在以文本模式运行的Linux服务器中通过ssh启动vlc-nox?
问题
当通过SSH运行它,不显示视频,但声音是好的。该错误是如下:
directfb vout display error: Cannot create primary surface fb vout display error: cannot get terminal mode (Inappropriate ioctl for device) core video output error: video output creation failed core decoder error: failed to create video output
FBI的方式
我认为FBI也面临着同样的问题,因为它会引发错误象下面这样:
ioctl VT_GETSTATE: Inappropriate ioctl for device (not a linux console?)
不过,FBI提供这种情况下的解决方案:-T -vt <arg> start on virtual console <arg>
因此,sudo fbi -T 1 /path/to/image/file
会按预期显示图像。
问题:什么是VLC的方式吗?
我终于找到了一种方法,并将其标记为答案。 – TerrenceSun