initial comment
This commit is contained in:
85
config.example.sh
Normal file
85
config.example.sh
Normal file
@@ -0,0 +1,85 @@
|
||||
#!/bin/bash
|
||||
################################################################################
|
||||
# EXAMPLE CONFIGURATION FILE
|
||||
################################################################################
|
||||
# Copy this file and customize for your environment
|
||||
# Usage: source config.sh && ./reencode-movies.sh
|
||||
################################################################################
|
||||
|
||||
# ==============================================================================
|
||||
# DIRECTORY PATHS - CUSTOMIZE THESE FOR YOUR SETUP
|
||||
# ==============================================================================
|
||||
|
||||
# Where your movies are stored
|
||||
export MOVIES_DIR="/mnt/user/movies"
|
||||
|
||||
# Where to archive original files
|
||||
# Make sure this has enough space for your entire library!
|
||||
export ARCHIVE_DIR="/mnt/user/archive/movies"
|
||||
|
||||
# Temporary work directory for encoding
|
||||
# Should be on fast storage (SSD preferred) with space for largest movie
|
||||
export WORK_DIR="/mnt/user/temp/encoderpro-work"
|
||||
|
||||
# Log file location
|
||||
export LOG_FILE="/var/log/encoderpro-movies.log"
|
||||
|
||||
# ==============================================================================
|
||||
# ENCODING SETTINGS
|
||||
# ==============================================================================
|
||||
|
||||
# Video codec: libx265 (H.265/HEVC) or libx264 (H.264/AVC)
|
||||
# H.265: Better compression, slower encoding, wider compatibility issues
|
||||
# H.264: Faster encoding, larger files, universal compatibility
|
||||
export VIDEO_CODEC="libx265"
|
||||
|
||||
# Encoding preset: ultrafast, superfast, veryfast, faster, fast, medium, slow, slower, veryslow
|
||||
# Trade-off between speed and compression efficiency
|
||||
# Recommended: medium (balanced) or slow (better compression)
|
||||
export VIDEO_PRESET="medium"
|
||||
|
||||
# CRF (Constant Rate Factor): 0-51, lower = better quality
|
||||
# Recommended ranges:
|
||||
# 18-20: Very high quality (near transparent)
|
||||
# 21-23: High quality (visually transparent for most content)
|
||||
# 24-26: Good quality (some visible compression)
|
||||
# 27-28: Acceptable quality (noticeable compression)
|
||||
export VIDEO_CRF="23"
|
||||
|
||||
# ==============================================================================
|
||||
# TESTING MODE
|
||||
# ==============================================================================
|
||||
|
||||
# Dry run mode: Set to 1 to test without actually encoding
|
||||
# This will show you what would be done without making any changes
|
||||
export DRY_RUN="0"
|
||||
|
||||
# ==============================================================================
|
||||
# EXAMPLE CONFIGURATIONS
|
||||
# ==============================================================================
|
||||
|
||||
# Uncomment one of these presets or customize your own:
|
||||
|
||||
# --- FAST ENCODE (for testing or quick processing) ---
|
||||
# export VIDEO_CODEC="libx264"
|
||||
# export VIDEO_PRESET="fast"
|
||||
# export VIDEO_CRF="26"
|
||||
|
||||
# --- BALANCED (recommended for most users) ---
|
||||
# export VIDEO_CODEC="libx265"
|
||||
# export VIDEO_PRESET="medium"
|
||||
# export VIDEO_CRF="23"
|
||||
|
||||
# --- HIGH QUALITY (archival quality) ---
|
||||
# export VIDEO_CODEC="libx265"
|
||||
# export VIDEO_PRESET="slow"
|
||||
# export VIDEO_CRF="20"
|
||||
|
||||
# --- MAXIMUM COMPRESSION (smallest files) ---
|
||||
# export VIDEO_CODEC="libx265"
|
||||
# export VIDEO_PRESET="veryslow"
|
||||
# export VIDEO_CRF="26"
|
||||
|
||||
################################################################################
|
||||
# END OF CONFIGURATION
|
||||
################################################################################
|
||||
Reference in New Issue
Block a user