It is currently 30 Apr 2017, 00:26



Server not descending into symlinked media folders

Help to specific problems with your setup, or discussing CasparCG bugs

Moderators: Macey, Jonas Hummelstrand, didikunz

Server not descending into symlinked media folders

Postby marria01 » 06 Jan 2015, 01:32

I'm currently trying to use the symlink 'trick' to allow me to mix local and network storage in a media folder. But it appears that while despite happily writing files into a symlink folder, the server won't recurse into the folder to scan for new files or to generate thumbnails. Has anyone else come across this? It seems to basically render the files unusable in the Caspar client as you can't see them.

In my experience of *nix operating systems, symlinks are kind of transparent to programs and scripts, and they get treated as real files and folders usually. I'm wondering if in Windows, a system call to list all the files or folders in a location fails to return symlinks by default, which then requires you to set a flag in the arguments to see them?
marria01
 
Posts: 12
Joined: 12 Jun 2014, 20:59
Location: UK

Re: Server not descending into symlinked media folders

Postby ddonoghue » 13 Jan 2015, 11:59

have you tried taking a look at these references? :)

Code: Select all
http://msdn.microsoft.com/en-us/library/windows/desktop/aa365006(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/aa363878(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/windows/desktop/aa365680(v=vs.85).aspx
:)
Daniel Donoghue
Client and Template Developer

Problems with CasparCG? Guide to posting Bug reports & Feature requests
ddonoghue
 
Posts: 496
Joined: 21 Mar 2013, 23:44
Location: Sweden

Re: Server not descending into symlinked media folders

Postby marria01 » 13 Jan 2015, 18:24

I have now, and apart from reaffirming my belief that linux is the superior OS, it hasn't brought me any further forward. Hard links need to be on the same FS, so the only option is a symlink. At least it works for recording.
marria01
 
Posts: 12
Joined: 12 Jun 2014, 20:59
Location: UK

Re: Server not descending into symlinked media folders

Postby ddonoghue » 16 Jan 2015, 13:58

you would probably be better off mapping a network share as a drive and using DFS to embed the other shared folders however, performance with mapped drives isn't always great.

if you have access to a good NAS (such as QNAP TurboNAS) you can connect to it via iSCSI as if it were a local drive and within the NAS configure all the folders to be mounted within folders if necessary. However, if you had access to the NAS you could store all your files on that anyway and not worry about the folder mounts.
Daniel Donoghue
Client and Template Developer

Problems with CasparCG? Guide to posting Bug reports & Feature requests
ddonoghue
 
Posts: 496
Joined: 21 Mar 2013, 23:44
Location: Sweden

Re: Server not descending into symlinked media folders

Postby vimlesh1975 » 26 May 2015, 09:36

I also tested symlink and found that-

1. It can play from symlinked folder
2. It can record in symlinked folder.

But
1. It cann't generate thumbnails of symlinked folder files.
2. Cls command doesn't list media from symlinked folder.

I wish it can generate thumbnails and list media files from symlinked folder.
User avatar
vimlesh1975
 
Posts: 596
Joined: 29 Aug 2011, 11:42
Location: Doordarshan, Mumbai, India

Re: Server not descending into symlinked media folders

Postby vimlesh1975 » 29 Nov 2016, 06:41

vimlesh1975 wrote:I also tested symlink and found that-

1. It can play from symlinked folder
2. It can record in symlinked folder.

But
1. It cann't generate thumbnails of symlinked folder files.
2. Cls command doesn't list media from symlinked folder.

I wish it can generate thumbnails and list media files from symlinked folder.


I tested this on server 2.1 beta 1 and lattest builds also. But non has this feature.
Is there some thoughts to do it in server 2.1?
User avatar
vimlesh1975
 
Posts: 596
Joined: 29 Aug 2011, 11:42
Location: Doordarshan, Mumbai, India

Re: Server not descending into symlinked media folders

Postby zbang » 29 Nov 2016, 23:40

This is kind of a roll-up of previous comments and some things I've discovered while playing around-
(server 2.0.7 on win7)

The CLS command will recurse into sub-dirs on the same devices as the media directory but will not cross into linked dirs of other devices. Doesn't seem to matter whether you use a junction or a soft link. (I assume this is due to the way windoze handles filename enumeration.)

The PLAY/LOAD command must get forward slashes in a file path; the output of CLS has backslashes (why?).

I haven't researched the case of the same filename in multiple directories and whether the media tree is searched breadth- or depth-first.

You can play media from a linked directory by giving the relative path ("media\video" is a directory/symbolic link to e:\video\) :
Code: Select all
play 1-10 "video/gizmo"
202 PLAY OK


As mentioned elsewhere, you can play media by giving the full path:
Code: Select all
play 1-10 e://video/gizmo.m4v
202 PLAY OK


z!
zbang
 
Posts: 33
Joined: 10 Apr 2015, 02:09


Return to Help & Support

Who is online

Users browsing this forum: No registered users and 2 guests