Skip to content

Instantly share code, notes, and snippets.

@seamonkey420
seamonkey420 / gist:7365fec543b656aac39cc13bf89f93fc
Last active January 24, 2024 02:03
ErsatzTV and Synology Notes
ErsatzTV and Synoogy and Plex notes:
Ersatztv Version: 0.8.4 beta (Jan 2024)
Hardware transcoding = use vaapi docker image
720P profile using QSV has been very smooth/stable streaming locally or remotely in Plex, settings below:
1280x720
Thread Count: 0
Format: h264
@seamonkey420
seamonkey420 / Download Youtube Video or Playlist.cmd
Last active March 14, 2022 03:43
Easy batch file to just download a single youtube video or playlist via YT-DLP. Update variables to where yt-dlp is saved and where you want videos saved to.
:: -------------------------------------------------------------
:: Quick way to download youtube vids via yt-dlp
:: Set yt-dlpLOC to where yt-dlp.exe resides
:: yt-dlp set to embed thumbnails and metadata
:: set to force US geolocation and use best quality options
:: outputs video files as mp4
:: Opens up folder where videos are saevd to once completed
:: Seamonkey420 3/10/2022
:: --------------------------------------------------------------
@echo off
@seamonkey420
seamonkey420 / yt-dlp-example.bat
Last active March 11, 2022 05:17
Youtube-DLP example script. Embeds metadata and thumbnails, uses US as geo code and saves to D:/Downloads/YT folders. Uses yt-dlp fork vs yt-dl.
yt-dlp.exe -f b --geo-bypass-country US --embed-thumbnail --add-metadata --compat-options embed-metadata -P "D:/Downloads/YT" YOUTUBEURLHERE/
@seamonkey420
seamonkey420 / Add AC3 Audio with FFMPEG.cmd
Last active April 13, 2024 22:47
ffmpeg script to convert main audio stream to ac3 5.1 while copying video and subtitles. windows cmdline based.
:: Can be integrated into explorer shell
:: and right click menus too
:: seamonkey420
:: Requirements: copy ffmpeg to c:\windows\system32
:: env variables needed to parse spaces in file paths!
:: pick one of the below sets of code, top replaces all audio with an ac3 one
:: bottom adds an ac3 stream and retains everything else, video, subs, audio.
:: below will encode main audio stream to ac3 as only audio and keep all video, subtitles
setlocal EnableExtensions DisableDelayedExpansion
@seamonkey420
seamonkey420 / script.install
Last active September 13, 2023 19:31
Rerns OSMC GPIO button service (customized for NESPi Case and OSMC by seamonkey420)
#1. Install RPi.GPIO. Open up Putty and run these commands:
sudo su
apt-get update
apt-get install python-pip python-dev gcc
apt-get install python-setuptools
pip install rpi.gpio
#1a. Enable root to make things easier, you can disable afterwards, type and then enter a root password:
sudo passwd