Skip to content

Instantly share code, notes, and snippets.

View vdrover's full-sized avatar

Victor Drover vdrover

  • TreeFlame
  • Wisconsin, USA
View GitHub Profile
@vdrover
vdrover / comskip.ini
Last active May 11, 2023 18:39
comskip.ini
detect_method=255 ;1=black frame, 2=logo, 4=scene change, 8=fuzzy logic, 16=closed captions, 32=aspect ration, 64=silence, 128=cutscenes, 255=all
validate_silence=1 ; Default, set to 0 to force using this clues if selected above.
validate_uniform=1 ; Default, set to 0 to force using this clues (like pure white frames) if blackframe is selected above.
validate_scenechange=1 ; Default, set to 0 to force using this clues if selected above.
verbose=0 ;show a lot of extra info, level 5 is also OK, set to 0 to disable
max_brightness=60 ;frame not black if any pixels checked are greater than this (scale 0 to 255)
test_brightness=40 ;frame not pure black if any pixels checked are greater than this, will check average brightness (scale 0 to 255)
max_avg_brightness=25 ;maximum average brightness for a dim frame to be considered black (scale 0 to 255) 0 means autosetting
max_commercialbreak=480 ;maximum length in seconds to consider a segment a commercial break
min_commercialbreak=25 ;mini
@vdrover
vdrover / emby_preprocessing.sh
Created May 11, 2023 18:40
Postprocessing script for comskip & Emby
#!/bin/bash
# files and directory used in script :
# file saved in /usr/local/sbin/emby_preprocessing.sh
# sudo chmod +x /usr/local/sbin//emby_preprocessing.sh -to make it executable
# comskip ini file /etc/comskip.ini or in media directory
# log file saved in /var/lib/emby/logs/media.txt
@vdrover
vdrover / gist:ebdbf65f5f4e9ee5545255e9c36bd422
Last active April 17, 2024 12:29
Wordpress - Backdate scheduled posts
// Adds a meta box to the post editing screen for changing the post's publication
// date and time after it has initially been published.
// Only visible to administrators.
// Place in functions.php file.
function cdap_add_meta_box() {
// Check if the current user is an administrator
if (current_user_can('administrator')) {
add_meta_box(
'cdap_meta_box', // ID of the meta box