A Complete Guide to Architecture, Deployment, Administration, and Optimization
Introduction
Chapter 1: Why Self-Host Media? The Economics and Philosophy of Personal Media Servers
- The Streaming Era and Its Limitations
- Cost Analysis: Commercial Services vs Self-Hosted Infrastructure
- Privacy, Ownership, and Control Over Your Media
- The Self-Hosting Landscape: Plex, Emby, Jellyfin Compared
- What This Book Covers and How to Use It
Chapter 2: Understanding Jellyfin: Architecture, Philosophy, and Capabilities
- Project History, Governance, and the Open-Source Commitment
- Server Architecture and Core Services
- The Jellyfin Protocol and API Surface
- Supported Media Types, Codecs, and Container Formats
- Known Limitations and Design Trade-offs
- Version History and Release Cadence
Chapter 3: Planning Your Media Infrastructure: Requirements and Architecture Patterns
- Assessing Your Media Library: Size, Formats, and Growth
- User Scenarios: Solo, Household, Multi-Household, Remote
- Concurrency and Bandwidth Requirements
- Transcoding vs Direct Play Architectures
- Reference Architectures: Simple, Recommended, Advanced, Production
- Decision Framework: Matching Architecture to Requirements
Chapter 4: Hardware Selection: Servers, CPUs, GPUs, and the Media Workload
- The Media Server Workload: What the Hardware Actually Does
- CPU Selection: Single-Core Performance, Multi-Core Scaling, and Encoding Engines
- GPU Acceleration: Why It Matters and When It Is Essential
- Intel Quick Sync: The Default Recommendation
- NVIDIA and AMD GPU Acceleration for Jellyfin
- Memory, Power, and Noise Considerations
- Pre-Built vs DIY vs Repurposed Hardware
Chapter 5: Operating System Choices and Base System Configuration
- Bare Linux Distributions: Ubuntu, Debian, Arch, and Others
- Home Server Distributions: TrueNAS, Unraid, OpenMediaVault
- Virtualization Hosts: Proxmox, ESXi, Hyper-V Considerations
- Container-First Approaches and Kubernetes
- Windows as a Jellyfin Host
- Base System Hardening and Configuration
Chapter 6: Storage Architecture: Filesystems, RAID, Performance, and Media Layouts
- Media Storage Characteristics: Large Files, Sequential Access, Read-Heavy Workloads
- Filesystem Choices: ext4, XFS, ZFS, Btrfs Compared
- RAID Levels for Media: Performance, Redundancy, and Capacity Trade-offs
- SSDs, HDDs, and Hybrid Approaches
- Directory Structure and Naming Conventions for Jellyfin
- Mounting Media: Direct, NFS, SMB, and iSCSI Options
Chapter 7: Networking Fundamentals: Local Networks, DNS, Ports, and Connectivity
- Network Topologies for Media Servers
- IP Addressing: IPv4 and IPv6 Planning
- DNS and Name Resolution for Local Access
- Required Ports and Services
- Firewall Configuration and Port Security
- Multicast, SSDP, and Network Discovery
Chapter 8: Installation Methods: Native, Docker, VMs, and Deployment Strategies
- Native Installation via Packages and Repositories
- Docker and Docker Compose Deployments
- Podman and Rootless Container Options
- Virtual Machine Deployments
- Installation on Home Server Platforms
- Comparing Methods: Trade-offs and Recommendations
Chapter 9: Server Configuration and Initial Setup
- First-Time Configuration and Web Dashboard Basics
- Configuring Media Libraries and Folders
- Initial Metadata Import and Scanning
- System and Playback Settings Configuration
- Logging and Debugging Setup
- Post-Installation Verification Checklist
Chapter 10: Building and Organizing Media Libraries
- Library Types: Movies, TV Shows, Home Videos, Music, Photos
- Directory Structures That Work
- File Naming Conventions and Metadata Extraction
- Collections and Playlists
- Excluding Unwanted Content
- Library Maintenance and Rescanning Strategies
Chapter 11: Metadata Management: Providers, Artwork, and Quality
- Metadata Providers: The Movie Database, The Open Movie Database, and Others
- How Metadata Scraping Works
- Artwork Sources and Quality Control
- Manual Metadata Overrides and NFO Files
- Metadata Caching and Performance
- Troubleshooting Common Metadata Problems
Chapter 12: Users, Authentication, and Access Control
- User Types, Roles, and Permissions
- Authentication Methods: Passwords, Two-Factor Authentication
- Parental Controls and Content Rating Restrictions
- Access Schedules and Restrictions
- Network Isolation and Trusted Networks
- Large Multi-User Environment Considerations
Chapter 13: Video and Audio: Formats, Codecs, Containers, and Compatibility
- Video Codecs: H.264, H.265/HEVC, AV1, VP9, and Compatibility
- Audio Codecs: AAC, AC-3, E-AC-3, TrueHD, Atmos, DTS, and Passthrough
- Container Formats: MKV, MP4, AVI, and Their Use Cases
- High Dynamic Range: HDR10, HDR10+, Dolby Vision, and Tone Mapping
- Resolution, Bitrate, and Bit-Depth Considerations
- Format Selection: Recommendations for Acquiring and Converting Media
Chapter 14: Transcoding Architecture: Direct Play, Direct Stream, and Conversion
- Direct Play: Requirements, Benefits, and Limitations
- Direct Stream: When and Why It Happens
- Transcoding: Video and Audio Conversion Pipelines
- Transcoding Profiles and Client Capabilities
- Subtitle Rendering and Burn-In
- Debugging Playback Issues and Transcoding Failures
Chapter 15: Hardware Acceleration: Intel Quick Sync, NVIDIA, AMD, and Beyond
- Why Hardware Acceleration Matters for Transcoding
- Intel Quick Sync Video: Configuration and Version-Specific Notes
- NVIDIA GPU Acceleration with NVENC/NVDEC
- AMD GPU Acceleration with AMF/Video Codec
- ARM and Other GPU Options
- Verifying and Testing Hardware Acceleration
- Troubleshooting Hardware Acceleration Issues
Chapter 16: Client Ecosystem: Desktop, Mobile, Web, TV, and Remote Access
- Official Jellyfin Clients: Platforms and Features
- Web Client and Browser Compatibility
- Smart TV Clients: Samsung, Android TV, Roku
- Third-Party Clients and Integrations
- Mobile Clients and Offline Playback
- Client Capability Differences and Implications
Chapter 17: Remote Access and Secure Exposure: VPNs, Reverse Proxies, and HTTPS
- Network Access Architectures: Direct, NAT, Port Forwarding
- Dynamic DNS for Home Networks
- VPN Solutions: WireGuard, OpenVPN, Tailscale, ZeroTier
- Reverse Proxies: Nginx, Traefik, Caddy Configurations
- HTTPS and TLS Certificate Management
- Comparing Remote Access Approaches: Security and Complexity
Chapter 18: Security Hardening: Authentication, TLS, and Defense in Depth
- Threat Model for a Home Media Server
- TLS Configuration and Cipher Suites
- Authentication Hardening and Session Management
- Firewall Rules and Network Segmentation
- Container Security and Privilege Escalation Risks
- Exposure, Enumeration, and Attack Surface Reduction
Chapter 19: Advanced Administration: Config Files, Environment, and Database
- Configuration File Locations and Structure
- Environment Variables and Their Effects
- Database Architecture: SQLite and Alternatives
- Cache Management and Disk Usage
- Logging: Levels, Files, and Analysis
- Scheduled Tasks and Background Operations
Chapter 20: Monitoring, Diagnostics, and Logging
- Built-In Monitoring and Statistics
- System-Level Monitoring: Resources, Disks, Network
- Logging Strategy and Log Analysis
- Diagnostic Tools and Commands
- Alerting and Notification Strategies
- Identifying and Resolving Common Issues
Chapter 21: Performance Optimization: Transcoding, I/O, Network, and Bottlenecks
- Transcoding Performance: CPU vs GPU Utilization
- Memory and Swap Configuration
- Disk I/O Optimization and Caching Strategies
- Network Throughput and Congestion Management
- Database Performance Tuning
- Systematic Bottleneck Identification
Chapter 22: Automation, APIs, and Integrations
- The Jellyfin REST API
- Scripting Common Tasks: Libraries, Users, Transcoding
- Webhooks and Event Notifications
- Integration with Download Managers and Media Management Tools
- Home Automation and Smart Home Integrations
- Advanced Automation Patterns
Chapter 23: Backups, Disaster Recovery, and Maintenance
- What Needs Backing Up: Configuration, Database, User Data
- Backup Strategies and Schedules
- Restoring from Backup
- Disaster Recovery Procedures
- Routine Maintenance Tasks
- Long-Term Operational Checklist
Chapter 24: Migrations, Upgrades, and Long-Term Operations
- Version Upgrade Strategies and Risk Management
- Rollback Procedures
- Migration Scenarios: Hardware, OS, Platform Changes
- Configuration Migration and Compatibility
- Managing Long-Term Technical Debt
- Evolution of Media Server Requirements
Chapter 25: Conclusion: The Production-Grade Jellyfin Deployment
- The Complete Picture: How It All Fits Together
- Common Mistakes to Avoid
- When to Simplify and When to Optimize
- The Future of Self-Hosted Media
- Final Checklist for a Production Deployment