manual installation - panuozzo77/StreamingCommunity GitHub Wiki

Manual Installation

This guide provides detailed instructions for manually installing StreamingCommunity. This method gives you full control over the installation process and is recommended for advanced users or those with specific setup requirements.

Prerequisites

Before proceeding with the manual installation, ensure you have the following prerequisites installed on your system:

  1. Python: Version 3.8 or higher

    • Verify with: python --version or python3 --version
    • Download Python if needed
  2. FFmpeg: Required for media processing

  3. Git (optional): For cloning the repository

Installation Steps

Step 1: Get the StreamingCommunity Repository

You can either clone the repository using Git or download it as a ZIP file.

Option A: Clone with Git

git clone https://github.com/Arrowar/StreamingCommunity.git
cd StreamingCommunity

Option B: Download ZIP

  1. Go to https://github.com/Arrowar/StreamingCommunity
  2. Click the "Code" button and select "Download ZIP"
  3. Extract the ZIP file to your desired location
  4. Navigate to the extracted directory

Step 2: Set Up a Virtual Environment (Recommended)

Creating a virtual environment is recommended to isolate the project dependencies.

On Windows:

# Create a virtual environment
python -m venv .venv

# Activate the virtual environment
.venv\Scripts\activate

On macOS/Linux:

# Create a virtual environment
python3 -m venv .venv

# Activate the virtual environment
source .venv/bin/activate

Step 3: Install Python Dependencies

With your virtual environment activated, install the required Python packages:

pip install -r requirements.txt

Step 4: Configure FFmpeg

StreamingCommunity requires FFmpeg for media processing. You need to ensure FFmpeg is properly installed and accessible.

Default FFmpeg Locations

StreamingCommunity looks for FFmpeg binaries in these default locations:

  • Windows: C:\binary
  • macOS: ~/Applications/binary
  • Linux: ~/.local/bin/binary

Option A: Install FFmpeg to Default Locations

  1. Create the appropriate directory for your operating system
  2. Download FFmpeg binaries for your platform
  3. Extract the binaries (ffmpeg, ffprobe, ffplay) to the directory

Option B: Install FFmpeg System-Wide

  1. Install FFmpeg using your system's package manager:

    • Windows: Use a package manager like Chocolatey: choco install ffmpeg
    • macOS: Use Homebrew: brew install ffmpeg
    • Debian/Ubuntu: sudo apt install ffmpeg
    • Arch Linux: sudo pacman -S ffmpeg
    • CentOS/RHEL: sudo dnf install ffmpeg
  2. Ensure FFmpeg is in your system PATH

Option C: Custom FFmpeg Location

If you want to use a custom location for FFmpeg:

  1. Place the FFmpeg binaries in your preferred location
  2. Add the location to your system's PATH variable:
    • Windows: See Windows PATH guide
    • macOS/Linux: Add to your shell profile (.bashrc, .zshrc, etc.):
      export PATH="/your/custom/path:$PATH"

Step 5: Verify Installation

To verify that everything is installed correctly:

# Make sure your virtual environment is activated
python -c "import StreamingCommunity; print('StreamingCommunity is installed')"

Running StreamingCommunity

On Windows:

python test_run.py

On Linux/macOS:

python3 test_run.py

Special Installation Cases

Windows 7

For Windows 7, follow these additional steps:

  1. Ensure you have Visual C++ Redistributable for Visual Studio 2015-2019 installed
  2. You may need to manually set the console size:
    mode 120, 40

Termux (Android)

For installation on Termux, refer to the Termux-specific guide for detailed instructions.

Updating StreamingCommunity

To update your manual installation to the latest version:

On Windows:

python update.py

On Linux/macOS:

python3 update.py

Troubleshooting

Common Issues

  1. FFmpeg Not Found

    • Ensure FFmpeg binaries are in the correct location
    • Verify FFmpeg is in your PATH: which ffmpeg (Linux/macOS) or where ffmpeg (Windows)
  2. Python Package Installation Errors

    • Try updating pip: pip install --upgrade pip
    • Install packages one by one to identify problematic dependencies
  3. Permission Issues

    • On Linux/macOS, you might need to use sudo for system-wide installations
    • Ensure you have write permissions to the installation directory

Getting Help

If you encounter issues not covered here:

Next Steps

⚠️ **GitHub.com Fallback** ⚠️