
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
09/11/2025
Dalet today announced a transformative leap forward for media operations: Agentic Artificial Intelligence (AI) that unifies the Dalet ecosystem under one natura...
21/10/2025
NAB New York 2025: Although AES Show Is on Its Own, Audio Will Be a Major Part o...
21/10/2025
NAB New York 2025: Business of Broadcast and Media,' Future of Content'...
21/10/2025
SVG All-Stars: Ethan Folz, Senior Director, Digital Operations and Quality of Ex...
21/10/2025
NBA on NBC/Peacock: Livestream Offers Graphic Overlays, Predictive Gaming, Ancil...
21/10/2025
NBA on NBC/Peacock: At the Front Bench With Producer Frank DiGraci and Director ...
21/10/2025
NBA on NBC/Peacock: NBC Sports, NEP Build Ultra-Flexible Production Plan That Se...
21/10/2025
Indigenous storytelling has been at the heart of the work of the Sundance Instit...
21/10/2025
Top L-R: Mysterious Skin, American Dream Second Row L-R: Little Miss Sunshine, D...
21/10/2025
Last week, Spotify and Columbia Records transformed Pier 4 at the Brooklyn Army ...
21/10/2025
SBS Learn's Dharug Ngurra resource empowers classrooms to meaningfully celeb...
21/10/2025
As global operators simplify and evolve their digital platforms, NPS improvement...
21/10/2025
Critical Design Review completion is a key milestone on the path toward Wideband Global Satellite Communications certification for the network in 2026, opening ...
21/10/2025
New Australian undersea training range to implement and improve warfighting tactics, proficiency and safety; enable joint/allied training that contributes to pr...
21/10/2025
eds3_5_jq(document).ready(function($) { $(#eds_sliderM519).chameleonSlider_2_1({...
21/10/2025
September, the beginning of autumn, brought an expected revival to the TV market, largely due to the new fall TV schedules. The time spent in front of the TV sc...
21/10/2025
Broadcast Booms with 20% Uptick vs. August, Achieving Largest Monthly
Increase ...
21/10/2025
During September, streaming's share of TV viewing in Mexico settled at 24.5%, a marginal shift of -0.5 share points from the previous month.
Disclaimer: YU...
21/10/2025
RENNES, France BBright and GlobalM have conducted a technical trial validating Ultra HD interoperability across the entire contribution chain in the cloud, achi...
21/10/2025
Kokusai Denki Electric America will mark the U.S. debut of a new 4K camera at the 2025 NAB New York, Oct. 22-23. Now available, the Z-HD6500-S1 UHD/HD productio...
21/10/2025
Triveni Digital, a trusted leader in ATSC 1.0 and 3.0 service delivery, data broadcasting, and quality assurance solutions, will showcase its entire NEXTGEN TV ...
21/10/2025
Radio Azzurra FM, longest-running radio station in the province of Novara, northwest Italy, has invested in an DHD SX2 audio routing and mixing console for inte...
21/10/2025
Globecast, the leading provider of broadcast, media and entertainment managed services, has announced the appointment of G Morgan as Executive Vice President of...
21/10/2025
Visual Data announces the appointment of Maz Al-Jumaili as Senior Vice President, Worldwide Localization, to advance client engagement, strategic partnerships, ...
21/10/2025
As Amazon's Prime Video prepares to launch its coverage of NBA basketball under a major new deal, Grup Mediapro has announced that it is working with the st...
21/10/2025
ATLANTA Good news for consumers using an Atlanta DTH receiver to watch ATSC 3.0: with a new software update, they will be able to blanket their homes with Wi-Fi...
21/10/2025
While recent news has been heavily focused on Hispanic migration into the U.S., The 2025 Hispanic Market Report from Claritas highlights the fact that this gr...
21/10/2025
MAIDENHEAD, UK RWS has hired Michael Wayne as its head of media and entertainment in Los Angeles where he will lead the company's media localization busines...
21/10/2025
Imagine Communications and Rohde & Schwarz today announced a definitive agreement under which Imagine will acquire Pixel Power Limited, a wholly owned subsidiar...
21/10/2025
Atlanta DTH (ADTH) today announced a major update that will expand the functionality of its NEXTGEN TV receiver by enabling gateway capabilities allowing viewer...
21/10/2025
Heartland Video Systems, Inc. (HVS), a premier video systems integration, consulting, and expert ATSC 3.0 implementation firm announces that it has partnered wi...
21/10/2025
QuickLink, the leading provider of award-winning video production and remote guest integration solutions, today announced the appointment of Austin Hinton as it...
21/10/2025
nternet connectivity startup Miri Technologies Inc. will use this week's NAB Show New York as the launch pad for its latest ground-breaking innovation, the ...
21/10/2025
In today's evolving media landscape, audience measurement isn't one-size-fits-all. With multiple measurement providers now available, networks need the ...
21/10/2025
21 Oct 2025
VEON's Beeline Kazakhstan to Acquire Online Classifieds Busines...
21/10/2025
October 21st, 2025
Tribeca Films to Release Independent Comedy Serious People...
21/10/2025
Synthogy is excited to announce the launch of Ivory 3 LE Uprights - Modern & Vintage, the latest addition to our game-changing Ivory 3 platform. This Legacy Ed...
21/10/2025
Series from Sony Music Vision Features Exclusive Performances From Legendary Bas...
21/10/2025
Tuesday 21 October 2025
Current slide, 0 0, undefined1
0
Download assets
Buying a home ranks above becoming a parent as a key rite of passage into adulthood...
21/10/2025
Back to All News
Netflix Unveils Monster Mash in Trailer of Troll 2' - the...
21/10/2025
Back to All News
For the Fans! Netflix Goes Golden Forging Unprecedented KPop ...
21/10/2025
How can businesses close the AI adoption gap? Start with your recruitment teams, new LinkedIn research shows Published on Oct 21, 2025 Categories: Data and in...
21/10/2025
Synchron Stage Reverb SO: free for Focusrite customers Bring the sound of Vienna's legendary recording stage into your music, free for all Focusrite custo...
20/10/2025
Inside TAMS: How Time-Addressable Media Stores could redefine sports workflows By Paul Markham
Friday, October 17, 2025 - 08:57
Print This Story
A penalty...
20/10/2025
Transformational production: Inside TVN's remote production push for the DFL...
20/10/2025
How NBC Sports Transitioned Stamford Facility to One Format: 1080p HDRMulti-year plan harmonizes workflows, simplifies operationsBy Ken Kerschbaumer, Editorial ...
20/10/2025
NBA on NBC' Studio Production Team Is Ready for Tip-Off With Coast-to-Coast...
20/10/2025
Under pressure: TVN CEO Markus Osthaus considers the German sports broadcasting ...
20/10/2025
(L-R) Maria Dizzia, Carmen Emmi, and Russell Tovey attend the Plainclothes pre...
20/10/2025
In March, we launched Concerts Near You to help listeners find concerts from their favorite artists. Since then, more than 3 million people have used it to disc...