File input for streams
File input
File input can be used to make previously stored media available in MistServer. All you need is access to the file and have write access in the folder it is stored as an DTSH file will be created for fast transmuxing, this can delay the very first playback. You can either use the "browse" button or configure the source as:
Linux/MacOS /path/file
Windows /cygdrive/driveletter/path/file
Some examples:
-
/home/mypc/videos/video1.mp4
for Linux/MacOS: will access the file named "video1.mp4" in the folder /home/mypc/videos. -
/cygdrive/D/videos/video1.mp4
for Windows: will access the file named "video1.mp4" in the folder "videos" on your D drive.
Unsupported file names will be accepted but are unavailable for playback. If a file isn't working while it should be supported please check the "protocol panel" if the protocol is enabled and keep an eye on MistServer's logs for possible error messages.
For a list of file inputs look here: file inputs
Folder support
Folder support lets you use the stream wildcard feature to serve all the
files in a given folder. To use this, simply configure a stream with as
source the full absolute path to the folder, ending in a forward slash.
All files in the given folder will then become available under the
stream name streamname+filename
.
For example, the file /storage/random.mp4
would be available as the
stream name vod+random.mp4
if the stream vod
is configured with
source /storage/
.
Subfolders are not supported and must be configured as additional streams. This is a security consideration. For dynamic adding/removing of Video on Demand streams in a more complex folder structure, please refer to the section on triggers in this manual.