This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |