Re: [SLUG] Video File Server

From: Chuck Hast (wchast@gmail.com)
Date: Tue Feb 23 2010 - 21:18:06 EST


On Tue, Feb 23, 2010 at 19:54, <blee2@tampabay.rr.com> wrote:
> Thus Chuck Hast hast written on Tue, Feb 23, 2010 at 07:03:02PM -0500, and, according to prophecy, it shall come to pass that:
>> Yes I can give VLC the URL of the file location, but I would like to
>> have VLC present a directory list and the be able to select the file,
>> If I am on the local machine where the files reside it is not a problem
>> but if I am going to the server as a remote machine then I can not use
>> the directory function in VLC. I was hoping to use the web browser so
>> as not to have to go in and mount the remote file system in order to
>> browse it.
>
> From the bits I've been skimming, it sounds like:
>
> 1)      You want VLC to stream videos from your fileserver
I was trying to select the video using the browser and have VLC start running
on the client side. It does but only AFTER the file has been downloaded.

> 2)      You can access the files by URL or NFS/Samba
By URL.
Samba, for some weird reason the samba svr does not want to set a
user name. To wit:
New SMB password:
Retype new SMB password:
Failed to add entry for user viewer.
taquito:/home/kp4djt #
(of course I am entering a password, it just fails for some reason, I am
doing it as root)

So I have to go figure that out, I have never really tried NFS, once when I
did, I screwed things up so bad that I have sort of avoided it, but I guess I
need to.

If I could just get the URL thing going it would be just fine, then you select
a file from a displayed directory on the browser and it runs the video as it
streams.

> 3)      VLC will stream the videos if you access by URL, but not by a
> local filename (I.E. NFS/Samba)
If VLC can get to the file it will open it. If I access by URL it will open it
If I access using the browser it will download and then open it.

> 4)      You want to provide a directory listing front end to VLC
That would be one solution,

> 5)      You want VLC to stream teh file and begin playing immediately
> instead of copying the whole thing
>
I do not see a reason to have VLC stream it, I see other indications of
where a mpeg-4 file should on selection stream, it I believe has some-
thing to do with the handling between the web server and the browser,
but I am not sure where to stab the beast.

>
> If so, it sounds like you need some way to browse the filesystem and
> when you choose a file, start VLC with that URL.
>
This entry in the lighttpd config file allows that:

dir-listing.activate = "enable"

Here is the results copied from the browser screen on entry to one
of the video subdirectories:

Index of /videos/TV Shows/Three Stooges/
Name Last Modified Size Type
Parent Directory/ - Directory
3stoogesset T1.mp4 2007-Aug-31 17:53:55 293.8M video/mp4
3stoogesset T2.mp4 2007-Aug-31 18:02:38 252.8M video/mp4
3stoogesset T3.mp4 2007-Aug-31 18:12:24 264.9M video/mp4
3stoogesset T4.mp4 2007-Aug-31 18:21:54 280.7M video/mp4
3stoogesset T5.mp4 2007-Aug-31 18:31:15 272.4M video/mp4
3stoogesset T6.mp4 2007-Aug-31 18:41:38 306.1M video/mp4
3stoogesset T7.mp4 2007-Aug-31 18:50:56 279.8M video/mp4
3stoogesset T8.mp4 2009-Feb-18 10:28:09 391.5M video/mp4
CurlyClassics_C01.mp4 2007-Oct-02 14:47:36 276.6M video/mp4
CurlyClassics_C04.mp4 2007-Oct-02 14:59:08 284.9M video/mp4
CurlyClassics_C07.mp4 2007-Oct-02 15:08:34 265.0M video/mp4
CurlyClassics_C10.mp4 2007-Oct-02 15:19:16 275.9M video/mp4
CurlyClassics_C13.mp4 2007-Oct-02 15:29:57 291.1M video/mp4
CurlyClassics_C16.mp4 2007-Oct-02 15:39:35 304.4M video/mp4
Three_Stooges T1.mp4 2008-Sep-27 09:52:12 291.5M video/mp4
Three_Stooges T2.mp4 2008-Sep-27 10:01:04 288.0M video/mp4
Three_Stooges T3.mp4 2008-Sep-27 10:10:05 298.8M video/mp4
Three_Stooges T4.mp4 2008-Sep-27 10:35:14 294.0M video/mp4
Three_Stooges T5.mp4 2008-Sep-27 10:17:52 294.5M video/mp4
Three_Stooges T6.mp4 2008-Sep-27 10:26:25 314.3M video/mp4
threestooges2 T1.mp4 2007-Aug-27 21:10:38 249.6M video/mp4
threestooges2 T2.mp4 2007-Aug-27 21:19:33 246.6M video/mp4
threestooges2 T3.mp4 2007-Aug-27 21:28:19 270.0M video/mp4
threestooges2 T4.mp4 2007-Aug-27 21:36:25 251.7M video/mp4
threestooges2 T5.mp4 2007-Aug-27 21:44:41 252.3M video/mp4
threestooges2 T6.mp4 2007-Aug-27 21:53:30 268.8M video/mp4
lighttpd/1.4.20

> I see 2 ways to accomplish this:
> 1)      Setup a pseudo-directory that mimics the actual directory.  Each
> "file" in this directory actually contains code that redirects to a
> corresponding URL.  When you open this file with VLC, it see that and
> opens the URL.  You'd want this pseudo-directory regenerated automatically
> periodically.
>
> 2)      Use a web browser to browse through an http generated directory
> directory listing.  When you click on a file, the browser starts VLC and
> it starts streaming with the server.
> Apache can easily be configured to provide directory listings, but I'm
> not sure about lighttp.

I am doing #2, but the viewer does not open until the file is downloaded,
then it will display the video.

-- 
Chuck Hast  -- KP4DJT --
When the righteous are in authority, the people rejoice: but when the
wicked beareth rule the people mourn.  Prov 29:2 KJV

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 14:49:07 EDT