mdhiggins / sma-mod

MIT License
7 stars 2 forks source link

Error while filtering: Out of memory #16

Closed VampiricAlien closed 5 months ago

VampiricAlien commented 5 months ago

Hey there,

No error before 99%, the sonarr container has a limit of 10GB ram, while using the script it uses around 5GB. Every time it gets to 99% it errors and I am not sure what to do as it works 100% outside the container. I am hoping you might know what is going on here?

Can the option off installing and setup of ffmpeg be added if it already detects it and add to the start up script apk add libva-utils for vainfo testing or small testing script to test the install?

Error at 99%

Error while filtering: Out of memory
 Failed to inject frame into filter network: Out of memory
 Error while filtering: Out of memory
Preopts
[
    "-init_hw_device",
    "vaapi=sma:/dev/dri/renderD128",
    "-hwaccel_device",
    "sma",
    "-hwaccel",
    "vaapi",
    "-hwaccel_output_format",
    "vaapi"

Possible testing script after it has set everything up or triggered manually.

#!/bin/sh

# Check if vainfo is installed
if ! command -v vainfo &> /dev/null; then
  echo "vainfo not found. Installing libva-utils..."
  apk add libva-utils
fi

# Check if ffmpeg is installed
if ! command -v ffmpeg &> /dev/null; then
  echo "ffmpeg not found. Please install ffmpeg."
fi

# Check if /dev/dri/renderD128 is accessible
if [ ! -e "/dev/dri/renderD128" ]; then
  echo "/dev/dri/renderD128 is not accessible."
else
  echo "/dev/dri/renderD128 is accessible."
fi

# Test vainfo
echo "Testing vainfo..."
vainfo

echo "Testing complete."
VampiricAlien commented 5 months ago

This seems to have been fixed by redoing the config file as no restart has happened since opening this issue.