Report this

What is the reason for this report?

How to store Ant-media record stream to digital ocean volume

Posted on December 18, 2020

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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.