Page 1 of 1

use vlc upnp in command line

Posted: 21 Mar 2021 13:54
by mgolbaz2012
hey guys
i wanna use vlc on linux(without gui) to search upnp servers and play their music (use vlc as a upnp client). on gui it easily done but on command line:
vlc --services-discovery upnp_intel
and i get these errors:
VLC media player 3.0.10 Vetinari (revision 3.0.10-0-g7f145afa84)
[00005586ca25a030] main services discovery error: no suitable services discovery module
[00005586ca1be570] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00005586ca1c2530] main playlist: playlist is empty


how can i do this? thank u all

Re: use vlc upnp in command line

Posted: 21 Mar 2021 20:32
by Rémi Denis-Courmont
It's just "upnp", but that's not going to be very useful from the CLI...

Re: use vlc upnp in command line

Posted: 21 Mar 2021 22:23
by mgolbaz2012
thank you so much. it work and i can play my music with:
cvlc --services-discovery upnp http://192.168.101.100:18192/0_08+Phobia.mp3

but is there a way that i list all servers and files , like gui?

..."but that's not going to be very useful from the CLI..." why? actually i need a simple dlna client on linux and search about applications & python libs & cpp libs for a weeks..and finally decided to use vlc.

Re: use vlc upnp in command line

Posted: 23 Mar 2021 08:09
by Rémi Denis-Courmont
I think you've answered your own question.

Any VLC interface can use the UPnP SD plugin, or really any SD plugin, but you need an interface, as VLC cannot do telepathy with the user.