LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-21-2007, 11:20 AM   #1
Raveolution
Member
 
Registered: Mar 2004
Distribution: Fedora & CentOS
Posts: 213
Blog Entries: 2

Rep: Reputation: 26
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!
 
Old 02-21-2007, 06:16 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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.
 
Old 02-21-2007, 10:24 PM   #3
Raveolution
Member
 
Registered: Mar 2004
Distribution: Fedora & CentOS
Posts: 213

Original Poster
Blog Entries: 2

Rep: Reputation: 26
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.
 
Old 02-21-2007, 10:41 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
You just need to specify the top directory/directories; all the subdirectories will be available as well.
 
Old 02-22-2007, 01:04 PM   #5
Raveolution
Member
 
Registered: Mar 2004
Distribution: Fedora & CentOS
Posts: 213

Original Poster
Blog Entries: 2

Rep: Reputation: 26
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!
 
Old 02-22-2007, 01:23 PM   #6
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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.
 
Old 02-22-2007, 03:10 PM   #7
Raveolution
Member
 
Registered: Mar 2004
Distribution: Fedora & CentOS
Posts: 213

Original Poster
Blog Entries: 2

Rep: Reputation: 26
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.
 
Old 02-22-2007, 03:26 PM   #8
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
I doing exactly that, using uShare with djmount. Are you using a firewall?
 
Old 02-22-2007, 03:32 PM   #9
Raveolution
Member
 
Registered: Mar 2004
Distribution: Fedora & CentOS
Posts: 213

Original Poster
Blog Entries: 2

Rep: Reputation: 26
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?
 
Old 02-22-2007, 03:34 PM   #10
Raveolution
Member
 
Registered: Mar 2004
Distribution: Fedora & CentOS
Posts: 213

Original Poster
Blog Entries: 2

Rep: Reputation: 26
And even if I get this running, I'd like to be able to keep my firewall up.
 
Old 02-22-2007, 03:42 PM   #11
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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
 
Old 02-22-2007, 03:54 PM   #12
Raveolution
Member
 
Registered: Mar 2004
Distribution: Fedora & CentOS
Posts: 213

Original Poster
Blog Entries: 2

Rep: Reputation: 26
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?
 
Old 02-22-2007, 03:55 PM   #13
Raveolution
Member
 
Registered: Mar 2004
Distribution: Fedora & CentOS
Posts: 213

Original Poster
Blog Entries: 2

Rep: Reputation: 26
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.
 
Old 02-22-2007, 04:55 PM   #14
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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.
 
Old 03-07-2007, 06:24 PM   #15
ctkroeker
Senior Member
 
Registered: May 2005
Posts: 1,565
Blog Entries: 1

Rep: Reputation: 50
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problem with streaming network under VLC corneille Linux - Desktop 0 01-13-2007 12:30 PM
vlc Mudhoney Fedora 3 11-05-2006 04:23 PM
Problem with VLC - Streaming... tobiasw Linux - Software 1 10-28-2006 05:19 PM
Streaming with vlc? Fredde87 Linux - Software 0 09-04-2005 07:39 AM
VLC Streaming And The Command Line fortezza Linux - Software 1 06-30-2005 11:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration