Skip to content

Troubleshooting

Common issues and solutions for MediaLLM.

Installation Issues

Command not found: mediallm

# Check if MediaLLM is installed
pip show mediallm

# If not installed
pip install mediallm

# Check PATH
echo $PATH

ModuleNotFoundError: No module named 'mediallm'

# Reinstall MediaLLM
pip uninstall mediallm
pip install mediallm

Ollama Issues

Connection refused / Ollama not running

# Check if Ollama is running
curl http://localhost:11434/api/tags

# Start Ollama if not running
ollama serve

# In another terminal, pull a model
ollama pull llama3.1:latest

Model not found

# List available models
ollama list

# Pull required model
ollama pull llama3.1:latest

FFmpeg Issues

FFmpeg not found

# Check FFmpeg installation
ffmpeg -version

# Install FFmpeg
# macOS
brew install ffmpeg

# Linux  
sudo apt install ffmpeg

Permission denied errors

# Check file permissions
ls -la video.mp4

# Fix permissions
chmod 644 video.mp4

Runtime Issues

"Cannot understand request" errors

This indicates the LLM couldn't parse your request:

  • Be more specific: "convert video.mp4 to MP3" vs "convert video"
  • Include format details: "convert to high quality MP4"
  • Use --dry-run to test requests

File not found errors

# Check current directory
ls -la

# Use absolute paths
mediallm "convert /full/path/to/video.mp4 to MP3"

Commands fail during execution

# Preview commands first
mediallm --dry-run "your request"

# Check available disk space
df -h

# Check file isn't corrupted
ffmpeg -i video.mp4 -f null - 2>&1 | grep -i error

Performance Issues

Slow response times

  • Use smaller models: export MEDIALLM_MODEL="llama3.2:1b"
  • Increase timeout: export MEDIALLM_TIMEOUT="120"

Large file processing

  • Use --dry-run first to verify commands
  • Process smaller segments for testing
  • Ensure adequate disk space

Getting Help

If issues persist:

  1. Check GitHub Issues
  2. Create a new issue with:
  3. MediaLLM version: mediallm --version
  4. Python version: python --version
  5. Operating system
  6. Complete error message
  7. Command that failed