import os

# Default video and audio settings for DaVinci Resolve compatibility (Free Linux version)
# Based on DaVinci Resolve 18 Supported Codec List and web search recommendations.

# Target 1080p60 and 1440p60

DEFAULT_VIDEO_CODEC = "dnxhd"
DEFAULT_VIDEO_PROFILE_1080P = "HQ" # DNxHD HQ for 1080p
DEFAULT_VIDEO_PROFILE_1440P = "HQ" # DNxHR HQ for 1440p
DEFAULT_VIDEO_PIX_FMT = "yuv422p" # Common for DNxHD/HR
DEFAULT_CONTAINER = ".mov"

DEFAULT_AUDIO_CODEC = "pcm_s16le" # Linear PCM 16-bit little-endian

# FFmpeg global options
FFMPEG_GLOBAL_OPTIONS = [
    "-hide_banner",
    "-loglevel", "info",
]

# FFprobe global options
FFPROBE_GLOBAL_OPTIONS = [
    "-v", "error",
]

# Path to bundled ffmpeg/ffprobe binaries (to be set by PyInstaller hook or similar)
# For development, assume they are in PATH
FFMPEG_PATH = os.environ.get("FFMPEG_PATH", "ffmpeg")
FFPROBE_PATH = os.environ.get("FFPROBE_PATH", "ffprobe")

# Output file naming conventions
OUTPUT_SUFFIX = "_DR_compatible"
OUTPUT_PREFIX = "recoded_"
