LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   VLC streaming? (https://www.linuxquestions.org/questions/linux-general-1/vlc-streaming-531060/)

Raveolution 02-21-2007 11:20 AM

VLC streaming?
 
Is it possible to serve up a whole directory or multi directory tree of music or movies via vlc so other computers can look at it at random, the way GameShark's Media Player does with the PS2? I like this idea better than sharing the actual directories, if this option is possible.

Failing that, are there other options?

Thanks in advance!

macemoneta 02-21-2007 06:16 PM

It shounds like you want uShare. Many distributions have it in their repositories. On Fedora, for example:

yum install ushare

The configuration is trivial... In /etc/ushare.conf, set the shared directories. For example:

USHARE_DIR=/Music,/E-Books/Audio

Start the server, and you can now use almost any streaming UPnP AV client to play any selections that have been shared.

Raveolution 02-21-2007 10:24 PM

Quote:

Originally Posted by macemoneta
It shounds like you want uShare. Many distributions have it in their repositories. On Fedora, for example:

yum install ushare

The configuration is trivial... In /etc/ushare.conf, set the shared directories. For example:

USHARE_DIR=/Music,/E-Books/Audio

Start the server, and you can now use almost any streaming UPnP AV client to play any selections that have been shared.

Wow, that looks nice. Can I auto-share the subdirectories that are beneath the top, or do I have to select them? I have a ton of directories full of mp3's.

macemoneta 02-21-2007 10:41 PM

You just need to specify the top directory/directories; all the subdirectories will be available as well.

Raveolution 02-22-2007 01:04 PM

Quote:

Originally Posted by macemoneta
You just need to specify the top directory/directories; all the subdirectories will be available as well.

Ok, that seems to work!

So how do you get videolan-client to connect as a client to this? Or maybe Xine? I searched for solutions online and apparently no Linux or Windows program is actually "listed" to work with it!

macemoneta 02-22-2007 01:23 PM

This Wikipedia article lists a number of UPnP clients, including several on Windows. On Linux, you can use any non-UPnP client (like Xine, VLC, Amarok, etc.) with the djmount UPnP AV client.

Raveolution 02-22-2007 03:10 PM

Quote:

Originally Posted by macemoneta
This Wikipedia article lists a number of UPnP clients, including several on Windows. On Linux, you can use any non-UPnP client (like Xine, VLC, Amarok, etc.) with the djmount UPnP AV client.

Ah well, djmount doesn't seem to interface with ushare. Both programs are running now but there's no indication of any ushare in djmount's mounted directory. They simply don't communicate with each other.

Sorry I wasted your time, it's simply not possible to do this yet, I'll come back in about a year when this technology is more mature.

macemoneta 02-22-2007 03:26 PM

I doing exactly that, using uShare with djmount. Are you using a firewall?

Raveolution 02-22-2007 03:32 PM

Quote:

Originally Posted by macemoneta
I doing exactly that, using uShare with djmount. Are you using a firewall?

I shut down my firewall completely, and djmount is still not doing it.

What commands did you use?

Raveolution 02-22-2007 03:34 PM

And even if I get this running, I'd like to be able to keep my firewall up.

macemoneta 02-22-2007 03:42 PM

You certainly don't need to shutdown your firewall. If you have a firewall, in the /etc/ushare.conf, set:

USHARE_PORT=49200

Then allow your firewall to pass that port to whomever you want (your subnet or the world). For example, with IPTABLES to allow access from subnet 192.168.1.0:

Code:

-A INPUT -p tcp -m tcp --dport 49200 -s 192.168.1.0/24    --syn -j ACCEPT
-A INPUT -p tcp -m tcp --dport 49200 -s 192.168.1.0/24    --syn -j ACCEPT

As to why you are not seeing the server with the firewall down, does your distribution include Avahi (the zeroconf service)? Many distributions include this now (for example it is installed and started automatically on Fedora). If not, you need to install and start the avahi-daemon. On Fedora, assuming you removed it:

yum -y install avahi-daemon
chkconfig avahi-daemon on
service avahi-daemon start

Raveolution 02-22-2007 03:54 PM

Quote:

Originally Posted by macemoneta
You certainly don't need to shutdown your firewall. If you have a firewall, in the /etc/ushare.conf, set:

USHARE_PORT=49200

Then allow your firewall to pass that port to whomever you want (your subnet or the world). For example, with IPTABLES to allow access from subnet 192.168.1.0:

Code:

-A INPUT -p tcp -m tcp --dport 49200 -s 192.168.1.0/24    --syn -j ACCEPT
-A INPUT -p tcp -m tcp --dport 49200 -s 192.168.1.0/24    --syn -j ACCEPT

As to why you are not seeing the server with the firewall down, does your distribution include Avahi (the zeroconf service)? Many distributions include this now (for example it is installed and started automatically on Fedora). If not, you need to install and start the avahi-daemon. On Fedora, assuming you removed it:

yum -y install avahi-daemon
chkconfig avahi-daemon on
service avahi-daemon start

Wow, okay, THAT all worked!

djmount now sees my ushare and I can even see uShare in the mount area. Local vlc can see the mount point.

Now for the last piece of the puzzle... how does a remote vlc connect to that?

Raveolution 02-22-2007 03:55 PM

By the way when this is all done, I am SOOO making a how to page for this so other noobs don't have to bang their head like I just did.

macemoneta 02-22-2007 04:55 PM

The mount point area just looks like files to any non-UPnP application. You can pretend that the files are just local as far as they are concerned. The streaming will be "behind the scenes" and on-demand - if VLC or mplayer or Xine, whatever opens a "file" in the streaming mount point, as it accesses the data djmount and uShare will stream it real-time.

Standalone streaming client devices will also be able to see the media server and access the data. I use it with the client on the Nokia N800, for example, and it works great.

ctkroeker 03-07-2007 06:24 PM

Quote:

Originally Posted by Raveolution
By the way when this is all done, I am SOOO making a how to page for this so other noobs don't have to bang their head like I just did.

So, have you started? ;)


All times are GMT -5. The time now is 05:57 AM.