clusterplex: Error while decoding stream. Unknown error occurres. Inserting silence

Describe the bug

My worker nodes are having issues decoding and the logs are pretty vague. Because of the issue, they’re giving up and inserting silence into the stream, making the audio cut in and out.

My transcode folder is a RWX volume in longhorn.

To Reproduce

Use ArgoCD to deploy clusterplex (master branch) with the values.yml included in the additional context section.

Expected behavior

No errors while decoding, a clear audio stream without cutting out.

Additional context

Log file:

[eac3_eae @ 0x7fedf2aa1bc0] error reading output: -1313558101 (Unknown error occurred)
Error while decoding stream #0:1: Unknown error occurred
[Parsed_aresample_0 @ 0x7fedf3784440] [SWR @ 0x7feded7a8580] adding 16384 audio samples of silence
[Parsed_aresample_0 @ 0x7fedf3784440] [SWR @ 0x7feded7a8580] adding 12800 audio samples of silence
[eac3_eae @ 0x7fedf2aa1bc0] error reading output: -1313558101 (Unknown error occurred)
Error while decoding stream #0:1: Unknown error occurred
[eac3_eae @ 0x7fedf2aa1bc0] error reading output: -1313558101 (Unknown error occurred)
Error while decoding stream #0:1: Unknown error occurred
[eac3_eae @ 0x7fedf2aa1bc0] error reading output: -1313558101 (Unknown error occurred)
Error while decoding stream #0:1: Unknown error occurred
[Parsed_aresample_0 @ 0x7fedf3784440] [SWR @ 0x7feded7a8580] adding 16384 audio samples of silence
    Last message repeated 4 times
[Parsed_aresample_0 @ 0x7fedf3784440] [SWR @ 0x7feded7a8580] adding 5632 audio samples of silence
[eac3_eae @ 0x7fedf2aa1bc0] error reading output: -1313558101 (Unknown error occurred)
Error while decoding stream #0:1: Unknown error occurred
[Parsed_aresample_0 @ 0x7fedf3784440] [SWR @ 0x7feded7a8580] adding 16384 audio samples of silence
[Parsed_aresample_0 @ 0x7fedf3784440] [SWR @ 0x7feded7a8580] adding 12800 audio samples of silence
[eac3_eae @ 0x7fedf2aa1bc0] error reading output: -1313558101 (Unknown error occurred)
Error while decoding stream #0:1: Unknown error occurred
[eac3_eae @ 0x7fedf2aa1bc0] error reading output: -1313558101 (Unknown error occurred)
Error while decoding stream #0:1: Unknown error occurred
[eac3_eae @ 0x7fedf2aa1bc0] error reading output: -1313558101 (Unknown error occurred)
Error while decoding stream #0:1: Unknown error occurred
[Parsed_aresample_0 @ 0x7fedf3784440] [SWR @ 0x7feded7a8580] adding 16384 audio samples of silence
[AVIOContext @ 0x7fedf1eb0340] Statistics: 1079 bytes read, 0 seeks
[tcp @ 0x7fedee038b80] Starting connection attempt to 10.43.4.243 port 32499
[tcp @ 0x7fedee038b80] Successfully connected to 10.43.4.243 port 32499
[Parsed_aresample_0 @ 0x7fedf3784440] [SWR @ 0x7feded7a8580] adding 16384 audio samples of silence
    Last message repeated 3 times
[Parsed_aresample_0 @ 0x7fedf3784440] [SWR @ 0x7feded7a8580] adding 5632 audio samples of silence
[eac3_eae @ 0x7fedf2aa1bc0] error reading output: -1313558101 (Unknown error occurred)
Error while decoding stream #0:1: Unknown error occurred
[Parsed_aresample_0 @ 0x7fedf3784440] [SWR @ 0x7feded7a8580] adding 16384 audio samples of silence
[Parsed_aresample_0 @ 0x7fedf3784440] [SWR @ 0x7feded7a8580] adding 12800 audio samples of silence
[eac3_eae @ 0x7fedf2aa1bc0] error reading output: -1313558101 (Unknown error occurred)
Error while decoding stream #0:1: Unknown error occurred
[Parsed_aresample_0 @ 0x7fedf3784440] [SWR @ 0x7feded7a8580] adding 16384 audio samples of silence
[Parsed_aresample_0 @ 0x7fedf3784440] [SWR @ 0x7feded7a8580] adding 12800 audio samples of silence
[eac3_eae @ 0x7fedf2aa1bc0] error reading output: -1313558101 (Unknown error occurred)
Error while decoding stream #0:1: Unknown error occurred
[eac3_eae @ 0x7fedf2aa1bc0] error reading output: -1313558101 (Unknown error occurred)
Error while decoding stream #0:1: Unknown error occurred
[eac3_eae @ 0x7fedf2aa1bc0] error reading output: -1313558101 (Unknown error occurred)
Error while decoding stream #0:1: Unknown error occurred
[Parsed_aresample_0 @ 0x7fedf3784440] [SWR @ 0x7feded7a8580] adding 16384 audio samples of silence
    Last message repeated 4 times
[Parsed_aresample_0 @ 0x7fedf3784440] [SWR @ 0x7feded7a8580] adding 5632 audio samples of silence
[eac3_eae @ 0x7fedf2aa1bc0] error reading output: -1313558101 (Unknown error occurred)
Error while decoding stream #0:1: Unknown error occurred
[eac3_eae @ 0x7fedf2aa1bc0] error reading output: -1313558101 (Unknown error occurred)
Error while decoding stream #0:1: Unknown error occurred
[eac3_eae @ 0x7fedf2aa1bc0] error reading output: -1313558101 (Unknown error occurred)
Error while decoding stream #0:1: Unknown error occurred
[Parsed_aresample_0 @ 0x7fedf3784440] [SWR @ 0x7feded7a8580] adding 16384 audio samples of silence
    Last message repeated 4 times
[Parsed_aresample_0 @ 0x7fedf3784440] [SWR @ 0x7feded7a8580] adding 5632 audio samples of silence
[eac3_eae @ 0x7fedf2aa1bc0] error reading output: -1313558101 (Unknown error occurred)
Error while decoding stream #0:1: Unknown error occurred

Values.yml

global:
  timezone: America/Denver
  sharedStorage:
    transcode:
      enabled: true
      storageClass: longhorn-one-replica
      size: 25Gi
      retain: true
    media:
      enabled: true
      existingClaim: plex-media
      retain: true
    additionalMediaVolumes: {}

pms:
  config:
    plexClaimToken: 
    port: 32400
    localRelayEnabled: true
    relayPort: 32499
    pmsIP: "10.0.0.210"
  serviceConfig:
    type: ClusterIP

  ingressConfig:
    enabled: true
    ingressClassName: traefik
    hosts:
        host: plex.<my-domain>
        paths:
            path: /
            pathType: Prefix
    tls: 
      - secretName: plex-<my-domain>-tls
        hosts:
          - plex.<my-domain>

  configVolume:
    enabled: true
    storageClass: longhorn
    accessMode: ReadWriteOnce
    size: 75Gi
    retain: true

  healthProbes:
    startup: true
    readiness: true
    liveness: true

  resources:
    requests:
      cpu: 2000m
      memory: 2Gi
    limits:
      cpu: 3500m
      memory: 7Gi

worker:
  config:
    replicas: 7

  codecVolumes:
    enabled: true
    accessMode: ReadWriteOnce
    size: 1Gi
    storageClass: longhorn-one-replica
  resources:
    requests:
      cpu: 1000m
      memory: 1Gi
    limits:
      cpu: 3500m
      memory: 3Gi
  
  affinity:
    podAntiAffinity:
      preferredDuringSchedulingIgnoredDuringExecution:
      - podAffinityTerm:
          labelSelector:
            matchLabels:
              name: clusterplex-worker
          topologyKey: kubernetes.io/hostname
        weight: 100
      - podAffinityTerm:
          labelSelector:
            matchLabels:
              name: clusterplex-pms
          topologyKey: kubernetes.io/hostname
        weight: 50

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 33 (15 by maintainers)

Most upvoted comments

Excellent. So as soon as I can I’ll merge that to main and do a new versioned release with this implementation and newer plex EAE distributable, so you can move off of experimental. Since it’s where we try weird things out and might break your environment in some cases.

From the logs it appears that what is failing is plex’s EasyAudioEncoder (eae). Could you please restart one of the workers and take note of the logs while it starts? It will output information about the eae paths and if it was able to download that encoder from Plex. Also give that you are using longhorn you might want to try using a longhorn RWX volume. That’s how I run it and haven’t had issues yet. (it’s nfs behind the scenes, but I didn’t have to deal with any mount options).