
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 ...
07/10/2026
Dalet, a leading technology and service provider for media-rich organizations, today announced the latest Long-Term Supported (LTS) release of Dalet Flex. Build...
06/09/2026
June 9 2026, 23:00 (PDT) Dolby and MagentaTV Bring Fans Closer to the FIFA Worl...
04/08/2026
Live production in the cloud is a growing trend across the industry, and Major L...
04/08/2026
LAFC co-managing owner will succeed Don Garber on Jan. 1, 2027, as league prepar...
04/08/2026
In 2022, when the PGA TOUR was breaking ground on its new, state-of-the-art broa...
04/08/2026
Provided by POVORA, the new camera angle offers a dealer's-eye view of the c...
04/08/2026
Spiideo will provide the camera setup, with NEP handling broadcast integration and off-site video operations...
04/08/2026
Production team streamed more than 750 youth rugby matches using ATEM switchers,...
04/08/2026
Agreement gives KTC early access to NDI's Advanced SDK for integration across commercial displays, digital signage, and interactive panels...
04/08/2026
Twelve projects across four categories recognize collaborative work in productio...
04/08/2026
Multi-year agreement will introduce SkeleTRACK, semi-automated offside, automate...
04/08/2026
Three mc 56 consoles, dual A__UHD Core engines, RAVENNA networking, and HOME management supported live sound, monitoring, and international broadcast production...
04/08/2026
New contribution products support ultra-low-latency video transport across fixed, remote, and mobile production environments...
04/08/2026
Company will showcase updates across PRIME, Chyron LIVE, Paint, virtual production, newsroom workflows, and venue control...
04/08/2026
Exhibit will feature SilverBack, VersaBrix, VersaFrame, VF-9100, and FiberSaver-10G platforms...
04/08/2026
Platform updates target cloud-based production, high-density ST 2110 monitoring,...
04/08/2026
LMG will take control of Gravity Media's U.S. mobile-unit fleet as the compa...
04/08/2026
Amp-modelling rigs get major upgrade
HeadRush have recently released a major firmware update that brings some powerful new features to their Prime, Core and...
04/08/2026
Generate a choir from a single voice track
Following years of development, Am I Audio have just officially launched their debut plug-in. Created in collabor...
04/08/2026
Official EMT-endorsed reverbs now available to all
Two more of Universal Audio's renowned UAD plug-ins have just gained new native versions that can be ...
04/08/2026
SBS helps Australians understand why every Census counts
Media releases
As Australia prepares for the 2026 Census on Tuesday 11 August, SBS is helping ensur...
04/08/2026
Canada invests in the future of HF communications with Rohde & Schwarz solutions After selection by the Canadian Department of National Defence (DND) as the p...
04/08/2026
Blendkit Expands Beyond Blender
Brie Clayton August 4, 2026
0 Comments
Popular 3D Asset Library Launches Alpha Plugins for Maya, Godot, and Rhino
Blend...
04/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
04/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
04/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
04/08/2026
Ikegami has chosen the 11-14 September 2026 International Broadcasting Convention in Amsterdam as the European market launch venue for additions to its UNICAM p...
04/08/2026
Appear (IBC2026 booth 1.C61) will showcase new X & VX Platform capabilities that extend broadcast-grade performance from venue to cloud
Appear ASA (OSE: APR), ...
04/08/2026
LiveU, the global leader in live IP-video solutions, today highlighted the crucial role its EcoSystem played in Broadcast Management Group's (BMG) successfu...
04/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
04/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
04/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
04/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
04/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
04/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
04/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
04/08/2026
Homecoming Artist Spotlight: Dreion The singer, songwriter, and producer talks about finding his village at Berklee ahead of his Homecoming performance on Sep...
04/08/2026
Tuesday 4 August 2026
Sky Sports agrees deal with SANZAAR for international rugby rights 2026 - 2030
The deal means Sky will have exclusive rights to the inau...
04/08/2026
Kill Tony Launches on Supercast, Giving Fans Premium & Ad-Free Access to Comedy&...
04/08/2026
More details coming soon....
04/08/2026
More details coming soon....
04/08/2026
More details coming soon....
04/08/2026
Surging AI demands are driving the need for massive datasets and context windows that burst past the confines of system memory.
But rising needs aren't me...
04/08/2026
For robotaxis and other autonomous vehicles (AVs), the hardest problems aren'...
04/08/2026
Members of the Open Secure AI Alliance - now more than 120 organizations strong - are developing new guidelines to strengthen agentic AI cybersecurity as the an...
04/08/2026
Dalet, a leading technology and service provider for media-rich organizations, t...
03/08/2026
SVG's annual TranSPORT conference returns to New York City for a full day of sessions focused on the current state of live-sports-transmission technology. S...
03/08/2026
A five-time Emmy winner, this esports vet has built a production career on live storytelling, audience connection, and meeting viewers wherever they are
The sp...
03/08/2026
Live production in the cloud is a growing trend across the industry and Major Le...