
Ich habe ein Lied über das Terminal abgespielt. Ich habe Folgendes versucht und das Ergebnis war: -
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",
jetzt ist meine Frage, wie ich das Lied vom selben Terminal aus ändern kann (ohne ein neues zu öffnen). Ich habe gesucht, gegoogelt und auch versucht, „vlc --help“ zu lesen, aber das hat mir nicht geholfen. Ich glaube, ich werde hier meine Antwort finden. Vielen Dank im Voraus :)
Antwort1
Sie sollten Ihre VLC-Einstellungen so einstellen, dass mehrere Instanzen ausgeführt werden können. Um die VLC-Einstellungen zu öffnen, öffnen Sie VLC und gehen Sie zuExtras -> Einstellungenund vergewissern Sie sich, dass bei „Beim Start aus dem Dateimanager nur eine Instanz verwenden“ und „Nur eine Instanz zulassen“ kein Häkchen gesetzt ist.
Starten Sie nun Ihre Datei wie folgt vom Terminal aus:
vlc --audio filename &
Beachten Sie das &
am Ende des Befehls. Jetzt müssen Sie Ihre aktuell ausgeführte Datei nicht mehr beenden, um eine neue zu starten.
Antwort2
Es ist nicht klar, was Sie genau möchten: Musik von der Befehlszeile abspielen, ohne Schnittstelle?
Verwenden Sie in diesem Fall cvlc wie in der Ausgabe angegeben
Verwenden Sie „cvlc“, um VLC ohne Schnittstelle zu verwenden.
Also
cvlc --your-options --audio Galliyan.mp3
Sie sollten den Befehl wiederholen können, nachdem die MP3-Wiedergabe beendet ist.
Oder möchten Sie zwei Titel gleichzeitig abspielen? Mit VLC? Bei manchen Playern können Sie nicht mehrere Instanzen gleichzeitig öffnen (bei VLC bin ich mir nicht sicher). Wenn das mit VLC nicht geht, verwenden Sie entweder einen anderen Player, der mehrere Instanzen zulässt, entweder grafisch oder über die Befehlszeile, oder verwenden Sie zwei verschiedene Player. Ich weiß, dass Sie Musik gleichzeitig von Firefox, Audacity und Audacious abspielen können, aber ich bin mir nicht sicher, ob das das ist, was Sie wollen.
Ein alternativer Befehlszeilen-MP3-Player? Es gibt mehrere, aplay ist ein einfacher. Es gibt viele sehr nette Alternativen, siehehttp://www.linuxjournal.com/content/rock-out-your-console-out
Oder möchten Sie das Terminal weiterhin nutzen? Verwenden Sie in diesem Fall ein "&"
cvlc --your-options --audio Galliyan.mp3 &
Sie können Fehlermeldungen umleiten und das Terminal schließen
nohup cvlc --your-options --audio Galliyan.mp3 &> /dev/null &