Technical

Tips, Tricks and Technical Information

Setting up Google Cloud (OAuth 2.0) Access

dt logo 1.5inchAll of Drastic's version 6 or greater software supports authenticating via OAuth 2.0 across an https transport. This is most useful for Net-X-Code's partial file restore system, but can also be used from videoQC or MediaReactor.  Accessing these resources requires a second level of setup beyond the basic software setup, and this article provides an overview on that process.

Cloud file access - Direct

Drastic software supports direct access to cloud resources using http, http2, ftp and other file sharing methods.  For cloud providers like Google, an authentication system is also required to access the stored files. 

The simplest way to setup access to a cloud is to use a file system redirector (If this is not possible in your scenario, please see the next section of this article).  In the case of Google, the easiest way to do this is with their FUSE file system add on.  For more information on setting this up, please see:

https://cloud.google.com/storage/docs/gcs-fuse

Cloud file access - https

As an example, this section will go over the steps required to setup access to a Google cloud 'bucket' from Drastic software. The steps are operating system independent, other than the directories in which the access files are stored.  With the access file, they should be set up to be read only by the Drastic software, as they will contain sensitive information that could be used to access your cloud files.  For the purposes of this article, you will need to use one of the following directories:

Windows:
C:\ProgramData\Drastic\
Alt - C:\Documents and Settings\<username>\Drastic\

Linux:
/etc/Drastic/
Alt - /Home/<username>/Drastic/

macOS:
/Library/Applications Support/Drastic/
Alt - /Home/<username>/Drastic/

In order to setup OAuth 2.0, you will need to get information and data from your cloud account.  In this case, we will use Google's cloud service as an example.

First you need to authorize and get the application credentials json.  Using the gcloud command from the Google cloud SDK is the easiest way to do this.  Run this command on your server:

gcloud auth application-default login

Alternately, you can create this json file from Googles developer API at:

https://console.developers.google.com/apis/credentials

This will let you log into the Google OAuth server, and then save a 'application_default_credentials.json' on you system.  It should have data similar to this in it:

{
"client_id": "dasdsa850-6qr4p6gpi6hnwe654yrtjuq83di341hur.apps.googleusercontent.com",
"client_secret": "mgfei9jgf19q7MsssTy",
"refresh_token": "fw98jsduTmScuUjavQzchmf8wssssu5y5f85mAmcvaa",
"type": "authorized_user"
}

This file needs to be copied to the correct directory above, and renamed:

www.googleapis.com.json

Once you have the correct json file, you will also need to specify which OAuth 2.0 authentication server to use.  This is done in the config.xml, normally with the DDRConfig utility.  For each json file, there should be a matching folder under \MediaReactor\OAuth2\.  Within that folder should be an oauth2server entry with the URL of the server you want to use,  For Google cloud, this would normally be

\MediaReactor\OAuth2\www.googleapis.com\oauth2server = "https://www.googleapis.com/oauth2/v4/token"

ddrconfig oauth2 server

Drastic software will use this config to create and refresh the access as needed so that it can access your OAuth 2.0 protected files.  To access them, simply specify them as URLs.  For a bitbucket on Google called 'netxcode-pfr' with a file called 'sourceABR.mp4', the file URL to send would look like:

https://www.googleapis.com/storage/v1/b/netxcode-pfr/o/sourceABR.mp4?alt=media

The alt=media is recommended but optional in most cases.  Not including it will cause a secondary request to be sent, based on the JSON return from google.  Other cloud systems' URLs will vary, but the basic structure will be similar to this.

Please note, if you are in Google's web browser page for cloud storage, the links will resolve to something like:

https://storage.cloud.google.com/netxcode-pfr/sourceABR.ack?_ga=3432432.-13132.2321 

To use these in Net-X-Code, you will need to replace the storage.cloud.google.com with www.googleapis.com for them to work.  Google cloud does not allow application access to the files in the same way at both addresses.


Trademarks, Registered Trademarks, and Copyrights

 

Trademarks, Registered Trademarks, and Copyrights

Apple Inc. - Apple, the Apple logo, Final Cut, Final Cut Pro, Apple TV, iOS, iPad, iPhone, iPod touch, iTunes, Mac, Mac OS X, macOS, Shake, Final Cut Pro, ProRes, High Sierra, Mojave, M1, M2, and QuickTime are trademarks of Apple Inc., registered in the U.S. and other countries.
Drastic Technologies, Ltd. – Drastic Technologies, Drastic, Drastic.tv, videoQC View, videoQC Pro, videoQC Inspect, videoQC Workstation, FlowCaster, Network Video Analyzer, 2110Scope, HDRScope, 4KScope, sdiScope, Net-X-Code Server, Net-X-Code Channel, Media File Scanner, MediaReactor, MediaReactor Workstation, MR Lite, ccConvert, Net-X-Proxy, Net-X-Convert, MediaNXS, ndiScope, DrasticPreview, QuickClip, DDRConfig, and SyncControl are registered trademarks of Drastic Technologies, Ltd.
Google LLC – YouTube, Google, Google Cloud, Cloud Storage FUSE, Google.meet.com, and Android are registered trademarks of Google LLC
Linus Torvalds - Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Microsoft Corporation – Microsoft: Windows®, Video For Windows (VFW), DirectShow, Microsoft, Skype, Microsoft Azure, Microsoft Teams, Wave Mapper, Microsoft, Windows NT|2000|XP|XP Professional|Server 2003|Server 2008 |Server 2012, Windows 7, Windows 8, Media Player, Media Encoder, Windows Defender, Microsoft Office, .Net, Internet Explorer, SQL Server 2005|2008|2012|2014, Windows Media Technologies and Internet Explorer are trademarks of Microsoft Corporation.
All other trademarks are the property of their respective owners.

More great products from Drastic

FlowCaster VirtualCam for Meet.Google.Com
FlowCaster VirtualCam for Meet.Google.Com Is your company already using Meet.Google.com for remote conferencing? Do you need to share high quality video in real time with your stakeholders? FlowCaster... Tips, Tricks and Technical Information
Controlling FlowCaster
Controlling FlowCaster FlowCaster creates a virtual I/O board for your creative software, desktop, SDI I/O board, or NDI source that sends a high quality video signal through the netw... Tips, Tricks and Technical Information
RS-422 Splitter Cable
RS-422 Splitter Cable When working with RS-422 protocols (Sony 422, Odetics, Pioneer, VDCP, etc) it is often useful to directly monitor the incoming, return or both serial streams. &... Tips, Tricks and Technical Information
Autodesk Creative Raw Ingest
Autodesk Creative Raw Ingest Autodesk's creative software, Flame/Flare/Smoke/Lustre, support MediaReactor's file import so that the wide array of Drastic supported files can be read and use... Tips, Tricks and Technical Information
Animation And Single Frame Recording
Animation And Single Frame Recording Note: This area describes legacy products. Drastic VVW and Titan Series DDRs, QuickClip, MediaNXS and DrasticDDR software can be used to capture single or multi... Tips, Tricks and Technical Information
Image

For more than two decades, Drastic™ has been developing cutting edge solutions for television, post production and sports broadcasting, from real time web delivery to 8K broadcast.

We offer standalone software for the end user or enterprise, integrated solutions for automated workflows, and OEM tools for custom applications or branded devices.

Contact Us

Address:
523 The Queensway, Suite 201
Toronto, ON
M8Y 1J7, Canada

Phone: +1 (416) 255 5636

Email: info@drastictech.com

Fax: + 1 (416) 255 8780