Skip to content

Instantly share code, notes, and snippets.

@mhamilt
mhamilt / vlc-multi-macos.md
Last active November 6, 2022 12:43
Playing multiple fullscreen instances of VLC

macOS Multi Display Sync: VLC

This brief script came about from numerous requests to play multiple videos in sync with each other from a single machine. The videos were to have different content but would be of the same duration. Achieving this on macOS has proved to be a little tricky to say the least. It is possible to run multiple instance of VLC so that videos can be played concurrently from the same machine.

Be aware that this method does not enforce any syncing, so it is possible for the videos to fall out of sync, especially if the are not exactly the same frame count and encoding.

Further reading

If precision is required you may want to invest in a ocuple of Rapsberry Pis and check out the following

@mhamilt
mhamilt / get_screen_ids.swift
Created June 20, 2019 12:04
Get a list of screen IDs from swift
import Foundation
import Cocoa
for screen in NSScreen.screens
{
print(screen.deviceDescription[NSDeviceDescriptionKey("NSScreenNumber")]!);
}
@mhamilt
mhamilt / PrintAUs.swift
Last active February 18, 2019 16:43
Print all Audio Unit Effects in Swift
//==============================================================================
// Print all installed audio unit effects in Swift
// Handy in for debugging in a Swift console app
//==============================================================================
import Foundation
import AVFoundation
//==============================================================================
var availableAudioUnits = [AVAudioUnitComponent]()
//==============================================================================
func updateAudioUnitList()