By web23
Hello DO Luminaries, I would like to have help with how to store Ant-media record stream to digital ocean volume as well as how can I call API on it to do further video processing. I have attached this volume to my droplet so it would be great if I will get some help soon.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi there,
I believe that the streams are stored in the /usr/local/antmedia/webapps/LiveApp/streams/ directory. This means that you will need to mount your volume there.
To do so, create a new volume, then add it to your Droplet.
After that, mount the volume:
sudo mount -o defaults,nofail,discard,noatime /dev/disk/by-id/scsi-YOUR_VOLUME_ID /usr/local/antmedia/webapps/LiveApp/streams/
Note: if you have not yet formatted the volume, you need to run the following command:
Format the new volume only during the first time, otherwise, you will destroy all existing data on the volume:
sudo mkfs.ext4 /dev/disk/by-id/scsi-YOUR_VOLUME_ID
Finally make the change peristent:
echo '/dev/disk/by-id/scsi-YOUR_VOLUME_ID /usr/local/antmedia/webapps/LiveApp/streams/ ext4 defaults,nofail,discard 0 0' | sudo tee -a /etc/fstab
For more information make sure to check out the official documentation here:
https://www.digitalocean.com/docs/volumes/how-to/create/#format-and-mount-volumes
Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.