怎样才能播放另一个 mp3 文件而不必关闭 vlc 中当前播放的文件?

怎样才能播放另一个 mp3 文件而不必关闭 vlc 中当前播放的文件?

我通过终端播放了一首歌曲。我尝试了以下操作,结果如下:-

siddhartharao17@siddhartharao-PC:/media/LENOVO/Music/Hindi Asorted/Ek villain$ vlc --audio Galliyan.mp3 
VLC media player 2.0.8 Twoflower (revision 2.0.8a-0-g68cf50b)
[0x814b908] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "equinox",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "equinox",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "equinox",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "equinox",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "equinox",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "equinox",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "equinox",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "equinox",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "equinox",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "equinox",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "equinox",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "equinox",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "equinox",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "equinox",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "equinox",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "equinox",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

(vlc:4731): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",

现在,我的问题是,如果我想从同一个终端更改歌曲(不打开新终端),该怎么办?我一直在搜索、谷歌搜索,也尝试阅读“vlc --help”,但它对我没有帮助。我相信我会在这里得到答案。提前谢谢您 :)

答案1

您应该将 VLC 偏好设置设置为允许运行多个实例。要打开 VLC 偏好设置,请打开 VLC 并转到工具 -> 偏好设置并确认“从文件管理器启动时仅使用一个实例”和“仅允许一个实例”没有复选标记。

截图 vlc 偏好设置

现在,从终端启动您的文件,如下所示:

vlc --audio filename &

注意&命令末尾的。现在您不必终止当前正在运行的文件即可启动新文件。

答案2

不清楚您到底想要什么,从命令行播放音乐,而不使用界面?

在这种情况下,请使用输出中指示的 cvlc

使用‘cvlc’来使用无需界面的 vlc。

所以

cvlc --your-options --audio Galliyan.mp3

mp3 播放完毕后,您应该能够重复该命令。

或者您想同时播放 2 首曲目?使用 vlc?有些播放器不允许您同时打开多个实例(我不确定 vlc 是否允许)。如果您无法使用 vlc 执行此操作,请使用允许多个实例的其他播放器(图形或命令行),或者使用 2 个不同的播放器。我知道您可以同时从 Firefox、Audacity 和 Audacious 播放音乐,但我也不确定这是否是您想要的。

替代的命令行 mp3 播放器?有好几个,aplay 是一个简单的。还有很多非常好的替代品,请参阅http://www.linuxjournal.com/content/rock-out-your-console-out

或者您想继续使用终端?在这种情况下使用“&”

cvlc --your-options --audio Galliyan.mp3 &

您可以重定向错误消息并关闭终端

nohup cvlc --your-options --audio Galliyan.mp3 &> /dev/null &

相关内容