Skip to content

Instantly share code, notes, and snippets.

@Midtan
Midtan / encode.bat
Last active July 17, 2024 00:01
Very simple script to shortcut some toolchain on windows. Handles audio tracks, audio merging, re-encoding, resizing, hardcoding included ass subtitles. Also includes a bash version that hasn't been extensively tested at all. Might've even been generated through ChatGPT. Honestly can't remember. Use at own risk.
@echo off
setlocal enabledelayedexpansion
REM Check if a file is provided
if "%~1"=="" (
echo No file provided. Drag and drop a video file on this script.
exit /b 1
)
set "VIDEO_FILE=%~1"
// ==UserScript==
// @name Set Default Video Volume
// @namespace http://tampermonkey.net/
// @version 1.2
// @description Set default volume for raw HTML5 video files
// @author Me
// @match *://*/*
// @grant none
// @downloadURL https://gist.github.com/Midtan/0fed2d2f0d28ca59df41626026189eea/raw/default-html5-video-volume.user.js
// ==/UserScript==