强制vlc在启动到cli的树莓上加载ui [英] force vlc to load ui on raspberry booted to cli

查看:80
本文介绍了强制vlc在启动到cli的树莓上加载ui的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这整个星期我一直在搜寻,努力寻找一个好的解决方案。

I've been googling for this all week, struggling to find a good solution.

我有一个为我设置的培训视频亭脚本公司,在英特尔NUC上运行。对我来说,这感觉有些矫kill过正,所以我试图让脚本在pi 3模型b上运行,以节省一些部署该工具的成本。

I have a training video kiosk script that I've set up for my company, running on an intel NUC. to me, that feels like overkill, so I'm trying to get the script to run on a pi 3 model b to save a little on costs to deploy this thing.

我的脚本在台式机上效果很好,我已经能够从cli和&我什至可以使用虚拟UI加载视频-问题是没有声音,当视频在cli中加载时,它会在屏幕上充满错误,然后像下面的图片一样播放文本。

my script works great from desktop, I've been able to get it to run on startup from the cli, & I can even load the videos with the dummy UI - the problem is that there's no sound, and when the video loads in the cli, it fills the screen with errors, then plays as text, like the picture below.

如果我从桌面运行它,那很好(真的很抖动)

If I run it from desktop, it's fine (just really jittery)

是否有一种方法可以强制vlc加载其界面

is there a way to force vlc to load its interface without loading the desktop of raspian?

现在,当我呼叫视频时,终端线路输入如下:

right now, when I call a video, the terminal line inputs like:

vlc-wrapper <file path> --play-and-exit --fullscreen -Idummy

视频图像

推荐答案

从命令行获取了视频

X & vlc <filepath>

也可以从python运行它

also got it to run from python

import os.subprocess
subprocess.call(['xinit', '--', '/usr/bin/vlc-wrapper, '<filepath>'])

这篇关于强制vlc在启动到cli的树莓上加载ui的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆