This post should be read in conjunction with my previous one about virtual directories with the FLVPlayback component and FMS.
I just needed to troubleshoot a client's FMS installation. Videos are organised in a deep structure of subfolders and to be delivered via the standard VOD application of Flash Media Streaming Server. I was using the FLVPlayback component to make sure the videos were playable. Once again it became apparent that the FLVPlayback component needs to be fed with an application instance name as soon as you try and deliver files that are not inside the toplevel /vod/media folder.
As you may know, the VOD application is by default configured to live (on Windows) at C:\Program Files\Adobe\Flash Media Server 3\applications\vod while its files are stored at C:\Program Files\Adobe\Flash Media Server 3\applications\vod\media. Both setting can be configured either in fms.ini or directly in FMS's XML conf files.
I needed to remap the VOD directory from VOD_DIR = C:\Program Files\Adobe\Flash Media Server 3\applications\vod\media to a new location. This worked fine. However as soon as I started to create subfolders inside /media I was no longer able to stream the videos using the FLVPlayback component. Luckily - and through past experiences - I knew that this was an instance problem. So instead of setting FLVPlayback's source to rtmp://myserver.com/vod/subfolder/myvideo I added an instance name - any instance name - such as rtmp://myserver.com/vod/inst/subfolder/myvideo and voila, the video would play again.
Hopefully this information will save somebody some grief.

#1 by Randy Troppmann on 7/24/08 - 4:59 PM
I have been experimenting with FMS3 and it's new VOD media asset organization. We modified the fms.ini file to look to our high speed SAN for the VOD folder where the videos are organized in subfolders. I didn't have any trouble accessing these assets through RTMP and I use a custom built Flash video playback component. Your post has given me pause for concern.
#2 by stefan richter on 7/24/08 - 7:43 PM
Regards
Stefan
#3 by sooraj on 8/1/08 - 12:13 PM
I had tried but no effect
#4 by Stefan Richter on 8/1/08 - 12:31 PM
Mapped network drives can be used for storing media, but I seem to remember that I had problems using share names. Try using the IP instead.
#5 by sooraj on 8/1/08 - 12:50 PM
I had installed FMS in my local system and the videos are in a network path for example \\salinux\videos
I had put this UNC path for the VOD_DIR.
But it is not working.
In this path, where I put the IP address?
#6 by Stefan Richter on 8/1/08 - 12:54 PM
(but use the actual IP of your network drive)
Sorry, this is not my best area of expertise...
#7 by sooraj on 8/1/08 - 1:01 PM
It is not working using the IP address.
Thanks for your reply.
#8 by Brad on 8/19/08 - 10:29 PM
#9 by Stefan Richter on 8/20/08 - 8:51 AM
#10 by Hemadri on 11/16/08 - 7:04 PM
read this doc
Adobe Flash Media Server
at Adobe Flash Media Server Configuration and Administration Guide / Configuring the server / Configuring content storage /Mapping Directories to
network drives
actually FMS is running as a local system account. So, change its log on account to one which has network access. Go to run-> services.msc.
open the properties for flash media server service & flash media administrator service and change the log on account.
after this it would probably start working for you also.
#11 by Droed on 12/23/08 - 5:31 PM
#12 by Stefan Richter on 12/23/08 - 7:27 PM
#13 by Randy Troppmann on 12/23/08 - 7:34 PM
#14 by Randy Troppmann on 12/23/08 - 7:35 PM
#15 by Droed on 12/23/08 - 9:15 PM
To respond to your comment about streaming from live or vod, I created a subfolder within the media folder, which contains the vod samples. I then moved the sample.flv file into this subfolder (foo) and restarted the FMS service. Still no joy...
#16 by Guillermo on 3/3/09 - 7:52 AM
Anyone had/have this issue?
#17 by Ana on 5/28/09 - 11:22 AM
So I've changed VOD_DIR in fms.ini and it works fine as long as I stream a video from ..vod/media. If I try to create a subfolder in the media folder or in the vod folder and access via "rtmp:[address]/vod/media/media2/sample", things don't work anymore.
Any help is highly appreciated.
#18 by Stefan Richter on 5/28/09 - 11:29 AM
HTH
#19 by Ana on 5/28/09 - 11:41 AM
However, I've tried this as well. I have a "myvod" application with "streams/_definst_/" and it works fine. But I've put a "media2" subfolder under the "streams/_definst_/" path and I cannot stream. Maybe I just haven't been able to find the correct rtmp path. Or maybe I need to change my main.asc, which now contains just:
application.onConnect = function(p_client)
{
this.acceptConnection(p_client);
}
#20 by Stefan Richter on 5/28/09 - 12:06 PM
From what you describe though your setup should work. I guess it's 'just' a path issue. Hard to say from here.
#21 by Ana on 5/28/09 - 12:39 PM
It was indeed a path problem, I had to use "rtmp:[address]/myvod/_definst_/media2/myvideo". Actually it's what you've pointed out, the fact that you have to include the instance name, but I didn't expect this would apply to _definst_.
Thanks again and have a nice day!