Using web browser from scripts

Using a web browser in Fast video cataloger

The start/help window in Fast video cataloger is a web browser. It uses the chromium embedded framework and you can access and use it easily from scripts.

You get the browser interface from the standard scripting interface

var browser = scripting.GetBrowser();

This is a standard chromium (chrome) browser interface and the official documentation can be found here:

To open a web site in the browser you would simply write:
browser.Address = "";

And here is a full example:

using System.Runtime;
using System.Collections.Generic;
using VideoCataloger;
using VideoCataloger.RemoteCatalogService;
class Script
  static public async System.Threading.Tasks.Task Run ( IScripting scripting, string arguments ) 
    var browser = scripting.GetBrowser();
    browser.Address = "";

The use of the browser has almost endless possibilities. You can use it to present information and info from your scripts, you can fetch data from other systems or even create custom user interfaces.

Search Video Actors

Search video actors with Google

This text will show you step by step how to add a custom button in Fast Video cataloger that will let you google results for the currently selected actor.

Custom Actions in Fast video cataloger allow you to easily extend the functionality.

You can extend the program to launch web pages, launch external programs, or for more advanced scenarios launch c# scripts with full access to the complete video database.

In this example, I will show how you can search google on the currently selected Actor.

The basic Googles URL for searches is this:

The text after q= is the query, and if you have more than one term just use a + in between them.

In Fast video cataloger, go to preferences and to the Action Tab.

Action tab in preferences

Click “Add” to create a new action.

On the first tab, Enter “Google Actor” as a label. And for tooltip enter “Google the selected Actor”

Title for the actor search button

Click on the “Execute” tab and change the drop-down list to “Web Page”

For URL Enter:

site of the the search engine

Click the Arguments tab.

For arguments enter : q={actor_firstname}+{actor_lastname}

Enter the url arguments to pass in the first and last name of the actor.

Click OK to close the window. And ok again to close the preferences.

From the view menu, open the Action window.

Open the “Custom Actions” expander and you should have a button “Google Actor”

The new search actor button is in the action window.

Select an Actor in the Actor window, click the “Google Actor” button and the browser window in fast video cataloger should show you the result.

Fast video cataloger with Microsoft intune

What is intune?

Intune is a relatively new application deployment technology from Microsoft.

“Microsoft Intune is a cloud-based service that focuses on mobile device management (MDM) and mobile application management (MAM). You control how your organization’s devices are used, including mobile phones, tablets, and laptops. You can also configure specific policies to control applications.”

Can Fast video cataloger run with intune?

You can package the Fast video cataloger installer as a .intunewin file using the Microsoft Intune Win32 App Packaging Tool.

Microsoft Intune Win32 App Packaging Tool will check the Windows Classic setup files and generate a .intunewin file imported into Intune Azure Portal.

You can download the tools from from Microsoft here:

You will need to agree to their license agreement.

Read more about the tool here:

You can download the Fast video cataloger installer from the Fast video cataloger download page.

You run their tool from the command line and it is pretty straight forward.

Silent or unattended installation of Fast video cataloger

Fast video cataloger uses nsis as an installation package. You can download the latest Fast Video Cataloger installer from our download page. We always sign our installer and run it through antivirus software.

If you want to run the installer silently simply start it with /S (upper S) as a command-line argument.

If you want to run the installer so it installs into another output folder give it the /D argument. /D=<installation directory> to change the default installation directory.

Add keywords from video filename

Have you ever wanted to create keywords based on the filename of a video?

With the scripting support in Fast video cataloger, this is actually pretty easy. Here is a sample script to do just that, create keywords from the filename or path of a video.

The provided script takes the currently selected videos and adds keywords and actors based on the name of the video file.

You might want to tweak the script a bit to suit your own naming standard.

The array of separators list the characters that should be treated as keyword separators.

The array ignore_words is a list of common words that should simply be ignored and not added as keywords.

The integer min_length is the number of characters that a word needs to contains to be added as a keyword.

Finally, if a string contains the @ character that sentence will be treated as an actor. First name before the @ and last name after the @. The actors are created and added as cast to the video.

As usual, to run a script in Fast video cataloger you load it into the console window and click the Run button.

Script console and web browser open.


#region title_to_keywords

using System;
using System.IO;
using System.Runtime;
using System.Linq;
using System.Collections.Generic;
using VideoCataloger;

/// <summary>
///  Take the title and use it to generate keywords.  
///  If there is a @ in the title we treat that as an actor
///  the text before @ is first name and the text after is last name
///  if an actor with that name already exist we use that one.
/// </summary>
class KeywordsFromTitle
    static public void Run(IScripting scripting, string arguments)
        var catalog = scripting.GetVideoCatalogService();
        ISelection selection = scripting.GetSelection();
        List<long> selected = selection.GetSelectedVideos();
        foreach (long video in selected)
            // Get the video file entry
            var entry = catalog.GetVideoFileEntry(video);
            scripting.GetConsole().WriteLine(System.Convert.ToString("Processing..." + entry.FilePath));

            char[] separators = { ' ', ',', '.', '-', '[' ,']', '{', '}', '_' };
            string[] ignore_words = { "is", "are", "who", "where" };
            string title = entry.Title;
            string[] keywords = title.Split(separators);
            int min_length = 3;
            foreach (string word in keywords)
                if (word.Length>= min_length)
                    if (!ignore_words.Contains(word))
                        if (word.Contains("@"))
                            // Actor
                            string[] names = word.Split('@');
                            string first_name = names[0];
                            string last_name = names[1];

                            scripting.GetConsole().WriteLine( "Actor FirstName:"+ first_name + " LastName:" + last_name );

                            int actor_id = -1;
                            VideoCataloger.RemoteCatalogService.Actor[] current_actors = catalog.GetActors(null, first_name, last_name, true);
                            if (current_actors.Length >= 1)
                                actor_id = current_actors[0].ID;
                                VideoCataloger.RemoteCatalogService.Actor actor = new VideoCataloger.RemoteCatalogService.Actor();
                                actor.FirstName = first_name;
                                actor.LastName = last_name;
                                actor_id = catalog.AddActorToDB(actor);

                            if (actor_id != -1)
                                catalog.AddActorToVideo(video, actor_id);
                            // Keywords
                            scripting.GetConsole().WriteLine("Keyword:" + word );
                            scripting.GetVideoCatalogService().TagVideo(video, word);

        // refresh the gui to show the changed file paths.