External HDS/HLS storage: Invoking files stored on an external drive.
Followed the following article to add an external drive to store our vod streams (article is no longer available):
FMS 4.5 Streaming HDS from non default location
Connected an external hard drive to the server with the following folders on it (vod2 > media), so the path is: G:\vod2\media. New video files are inside the last folder (media).
1. Modified: rootinstall/conf/fms.ini: added a new parameter for HTTP and RTMP streaming: VOD_COMMON_DIR_2 = G:\vod2\media
2. Modified: rootinstall/applications/vod/Application.xml: Added <StreamManager><VirtualDirectory><Streams>/vod2;${VOD_COMMON_DIR_2}</Streams>
3. Modified HLS and HDS content storage in httpd.conf (copied and pasted under original settings): The location names are /hls-vod2 and /hds-vod2, correct?
<Location /hls-vod2>
HLSHttpStreamingEnabled true
HLSMediaFileDuration 8000
HttpStreamingContentPath "G:\vod2\media"
.......
</Location>
<Location /hds-vod2>
HttpStreamingJITPEnabled true
HttpStreamingContentPath "G:\vod2\media"
HttpStreamingJITConfAllowed true
JitFmsDirPath ".."
Options -Indexes FollowSymLinks
.....
</Location>
If all of the above modifications are correct, what is the correct url to invoke the hds streams stored on this external drive through rtmp? The original instructions were not consistently clear about this. I have a file called 1.Test.mov in that folder. I've tried:
rtmp://localhost/hds-vod2/mp4:1.Test.mov
rtmp://localhost/hds-vod2/1.Test.mov
rtmp://localhost/hds-vod2/1.Test.mov.f4m
etc.
http://localhost/hls-vod2/1.Test.mov.m3u8 Works for HLS
http://localhost/hds-vod2/1.Test.mov.f4m Works too.
I need the rtmp url so that I can make a .smil file for rtmp fallback, such as:
smil>
<head>
<meta base="rtmp://localhost/hls-vod2/"/>
</head>
<body>
<switch>
<video src="mp4:1.Test_1500kbps.mov" system-bitrate="1500000" width="1920" height="1080" />
<video src="mp4:1.Test_1200kbps.mov" system-bitrate="1500000" width="1920" height="1080" />
<video src="mp4:1.Test_800kbps.mov" system-bitrate="1500000" width="1920" height="1080" />
</switch>
</body>
</smil>
Thanks
