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

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.

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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:

Regards, Bobby