Skip to content

Instantly share code, notes, and snippets.

@dichternebel
dichternebel / Readme.md
Created November 3, 2024 17:43
Combine or join MTS files splitted by camcorders with file size limit

Combine your splitted MTS files

When recording continuously on older camcorders they may split your video into separate files like the Sony HDR-CX130E does. Now when you just grab your files like 00123.MTS, 00124.MTS etc. and import them into your video editing tool you will notice a small audio gap.

This little script for Windows will put the splitted files back together.

The script assumes that your files are splitted by 1.97GB. If your camera splits by ~ 4GB you have to change the script and set that variable split_size accordingly.

@dichternebel
dichternebel / Readme.md
Last active October 17, 2024 08:31
Custom MS Teams Background on VDI / Azure Virtual Desktop

Info

When using MS Teams on e.g. Azure Virtual Desktop there is currently no possibility to set custom background images for video calls. This is on the roadmap and will be available on April 2025:
https://www.microsoft.com/en-us/microsoft-365/roadmap?filters=&searchterms=410366

In the meantime...

I am using the Remote Desktop Application (msi version) on Microsoft Windows 11 that can be found here:
https://learn.microsoft.com/en-us/azure/virtual-desktop/users/connect-windows?pivots=remote-desktop-msi#download-and-install-the-remote-desktop-client-msi

@dichternebel
dichternebel / streamkit_overlay_attributes_rightalign.css
Created January 7, 2023 13:17
Discord Streamkit Voice Widget Overlay right justified in 2023
/*
Original https://pastebin.com/bPYdJqwj by Supersnellehenk
Modified 2023 by https://github.com/dichternebel
*/
[class^="Voice_voiceState__"] {
justify-content: flex-end;
}
[class^="Voice_voiceContainer__"] [class^="Voice_voiceStates__"] [class^="Voice_voiceState__"] {
@dichternebel
dichternebel / AzureTTS.ps1
Last active November 8, 2022 17:10
PowerShell script to use Azure Speech Service TTS
#
# PowerShell script to use Azure Speech Service TTS and play given string argument as a soundfile directly
#
# Author: https://github.com/dichternebel
# Docs: https://learn.microsoft.com/en-us/azure/cognitive-services/speech-service/rest-text-to-speech?tabs=nonstreaming#convert-text-to-speech
# Test voices: https://azure.microsoft.com/en-us/products/cognitive-services/text-to-speech/#overview
# Prepare
$subscriptionKey = 'YourVerySecretKeyGoesHere' # paste your Azure Speech key here
$azureRegion = 'westeurope' # Change this to match the region of your Azure Speech service