Export to MP4
Downloading an archive from server
A fragment of an archive can be exported to a local computer to a file using this URLs:
- MP4 file:
- MPEG-TS file:
1350274200 is a fragment's start time in unix time.
4200 is fragment's duration in seconds.
precise=true option increases export accuracy up to a second:
Saving an archive to server or to a cloud
As the location for uploading an archive you can specify a directory on the Flussonic server or Amazon S3 bucket (Flussonic 20.09).
Saving an MP4 file on the Flussonic server
The archive fragment can be saved on the server HDD disk as MP4 file using this URL, and you need admin authorization:
curl -u USER:PASSWORD http://flussonic:80/channel/save-mp4-1350274200-4200?file=recording.mp4
The file will be saved in the same directory where DVR recordings are stored.
You can save the file to another directory by specifying the full path to the file:
curl -u USER:PASSWORD http://flussonic:80/channel/save-mp4-1350274200-4200?file=/path/to/file/recording.mp4
Saving an MP4 file in the cloud
You can save a part of the archive in s3: s3://AWS_ACCESS_ID:AWS_SECRET_KEY@s3.amazonaws.com/mybucket/recording1.mp4
Important. Since the path to the storage contains '&', you must encode it in order to pass the web router normally. So the URL must look like in the following example.
Saving to S3:
curl -u user:password "http://flussonic:80/channel/save-mp4-1350274200-4200?file=s3%3A%2F%2FAWS_ACCESS_ID%3AAWS_SECRET_KEY%40s3.amazonaws.com%2Fmybucket%2Frecording1.mp4"`