
Counting Files Over Multiple Cloud Storages Made Easy by Vidispine May 11, 2016 Stuff We Like
Today in our guest post Binagora show how to count media files and the total size of those files, in a media library spread out over several cloud storages, using Vidispine and a node.js application.
Some time ago we had to deal with the following scenario
One of our customers had a huge media library distributed in many media files stored on the cloud. Most of them in S3 buckets and a few other in Azure containers. They needed to answer two simple questions for the different environments they manage:
How many media files do we have in total in our library?
What's the total size of all those media files?
The idea was not to answer these questions only once. What we want is being able to check this information as often as we need.
Luckily, Vidispine was already deployed in all environments so it was just a matter of using it properly, and this is how we did it:
We already had the different S3 buckets and Azure containers mapped on Vidispine as storages. node.js. This app gets all storages from Vidispine (executing on API request)
Then iterates through all the storages:
For each storage, gets all storage methods (another API request)
For those storages methods that are mapped to S3 or Azure, gets the bucket name or the container name (just parsing the method's url)
Gets the total amount of files from the storage (another API request)
Gets the total amount of importable files from the storage (again, another API request)
Displays the storage id, total capacity, total size, storage type, storage name and file counts on the console output
Displays total size for files and importable files considering all storages.
You can find the complete Vidispine storage checker application on Git Hub.
Some interesting things to have in mind:
It only parses the storage type and name for S3 buckets and Azure containers, but of course it could be easily extended to other kinds of storage methods (as File System, FTP, HTTP, etc)
Vidispine address, port, username and password are read from a configuration file. The set is identified by argument that you pass to the tool on the command line . So you can define your own sets of value, using convenient names if you want (eg: DEV, QA, etc). Remember to update this configuration file when you run the console on your environment.
The only external dependency for the tool is the Vidispine REST API. This is an important concept. Notice that it's reading files from AWS and Azure services without the need of using those specific APIs or SDKs. That's part of the magic of having a DMAM system in the middle! You forget about where the files are or how to read them, you just ask Vidispine about them when you need.
Consuming a REST API is always pretty easy and straight forward. So you can do it from most of the popular programming languages. We used node.js because we like it and it's trendy, but we could do it from C#, PHP or Java, always consuming the same API, without needing to know how was VS developed. That's part of the magic of consuming REST APIs!
Performing this calculations by hand is very time consuming and error prone. And you'll also need some external tools as Cloud Berry Explorer or Azure Storage Explorer just to mention some options.
This blog post was written by our friends at Binagora. Check them out and see how they can help you with your next Media&Entertainment project.
Most recent headlines
05/01/2027
Worlds first 802.15.4ab-UWB chip verified by Calterah and Rohde & Schwarz to be ...
01/06/2026
January 6 2026, 05:30 (PST) Dolby Sets the New Standard for Premium Entertainment at CES 2026
Throughout the week, Dolby brings to life the latest innovatio...
02/05/2026
Dalet, a leading technology and service provider for media-rich organizations, t...
01/05/2026
January 5 2026, 18:30 (PST) NBCUniversal's Peacock to Be First Streamer to ...
01/04/2026
January 4 2026, 18:00 (PST) DOLBY AND DOUYIN EMPOWER THE NEXT GENERATON OF CREATORS WITH DOLBY VISION
Douyin Users Can Now Create And Share Videos With Stun...
21/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
21/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
21/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
21/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
21/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
21/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
21/03/2026
Cine Gear Connect NY, presented by Universal Production Services, is filling in the slate for a full day of panels, peers, learning the latest, and mixing it up...
21/03/2026
Studio Technologies Debuts New StudioComm System at NAB 2026
Brie Clayton March 20, 2026
0 Comments
StudioComm Model 794 Central Controller and Model ...
21/03/2026
Restoration Christian Fellowship Captures Worship Music Videos with PYXIS 12K
Brie Clayton March 20, 2026
0 Comments
PYXIS' open gate provides cre...
20/03/2026
Net Insight will introduce a JPEG XS solution for full IP environments at NAB Sh...
20/03/2026
LTN has expanded its technology partnership with Harmonic ahead of the FCC's...
20/03/2026
Solid State Logic will preview SSL Live V6.2 at NAB Show, booth C6907. The softw...
20/03/2026
FUJIFILM North America Corporation's Optical Devices Division has announced ...
20/03/2026
FUJIFILM North America Corporation's Optical Devices Division has announced ...
20/03/2026
TrueVisions NOW, a streaming platform in Thailand and part of the TrueVisions Group, has selected Bitmovin's Observability product for real-time video analy...
20/03/2026
Marquee Sports Network has announced distribution agreements with Hulu + Live TV and Prime Video ahead of the 2026 MLB season.
Marquee Sports Network is now av...
20/03/2026
FOR-A will exhibit software-defined and AI-driven solutions at NAB Show 2026, bo...
20/03/2026
TNA Wrestling and Eurosport India have entered into a multi-year exclusive progr...
20/03/2026
When Athletes Unlimited brought its professional women's basketball season t...
20/03/2026
In this craft interview, Rick Bernier reflects on a career that has taken him to...
20/03/2026
Lawo will announce a new product ahead of NAB Show 2026 in Las Vegas, where it w...
20/03/2026
Ratings Roundup is a rundown of recent rating news and is derived from press rel...
20/03/2026
Major League Baseball (MLB) has named Polymarket as its Official Prediction Mark...
20/03/2026
With AI now the industry-wide priority, Big Tech companies are uniquely position...
20/03/2026
In-venue and creative video staffers at the professional and collegiate level ha...
20/03/2026
Abundant player mics and RF and other ground-level cameras will be used to captu...
20/03/2026
Regional site will also receive big boost in production resources, including on-...
20/03/2026
By Jessica Herndon
One of the most exciting things about the Sundance Film Fest...
20/03/2026
In 2021, we launched EQUAL, a program designed to address an industry reality that persists: Women artists, songwriters, and producers too often face fewer oppo...
20/03/2026
BTS' long-awaited fifth studio album, ARIRANG, is finally here. To celebrate...
20/03/2026
A new era for Kenia Os has arrived, and Spotify marked the moment by putting fan...
20/03/2026
Una nueva era para Kenia Os ha llegado, y Spotify marc el momento poniendo a lo...
20/03/2026
Combines sampling & physical modelling
Sound Magic have announced the launch of a comprehensive virtual drum instrument that's been designed to cater to...
20/03/2026
How much difference should mastering make?
In our latest Mix Rescue feature, SOS Editor in Chief Sam Inglis revisits a project from back in 2019, carrying o...
20/03/2026
Feast for cycling fans as SBS extends road cycling broadcasts to include all Gra...
20/03/2026
In this blog, Laura Rognoni reflects on key discussions from the Connected TV World Summit in London, where NAGRAVISION hosted a panel on content discovery and ...
20/03/2026
After a series of increases, February brought the first slowdown in time spent in front of TV sets in a long time. While traditional television was losing viewi...
20/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
20/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
20/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
20/03/2026
60 years of audio innovation, driven by the people who use it...
20/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
20/03/2026
Colombia's Icesi University and WSDG are proud to announce Ronald David Reyes as the recipient of the 2025 WSDG Excellence Scholarship, awarded to an outsta...
20/03/2026
Avid today celebrated the filmmakers, editors and sound teams that worked with Avid Media Composer and Pro Tools to create the vast majority of this year'...
20/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...