Skip to content

[Feature Request]: Jellyfin 4K Transcode Killer #400

@brettpetch

Description

@brettpetch

With the recent potential db changes to Jellyfin, the viability of using it as a Plex replacement is becoming real.

Currently, the webhooks provided by jellyfin are not sufficient for notifying of new playback events with the amount of data required to kill a transcode. To circumvent this, I'd like to propose the following running on a 30s-1m interval--

/Sessions?ActiveWithinSeconds=30&apikey=<REDACTED>

From there, you can iterate through current sessions: this may look like

# https://api.jellyfin.org/#tag/Session/operation/GetSessions
#https://api.jellyfin.org/#tag/HlsSegment/operation/StopEncodingProcess
# Responses are in JSON

x.TranscodingInfo.IsVideoDirect = True/False
x.NowPlayingItem.Height >= <Resolution>
x.Id <SessionID>
  
  # Get Active Sessions within last 30 seconds
  /Sessions?ActiveWithinSeconds=30&apikey=<apiKey>

  # Sending Message
  POST '{"Text":"No 4K Transcoding!","TimeoutMs":5000}' /Sessions/<Id>/Message?apikey=<apiKey>

  # Stopping Transcode
  POST /Sessions/<Id>/Playing/Stop?apikey=<apiKey>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or application improvementinteg reqThird party integration requestquestionAdditional information is requested or neededupstreamRequires dependency updateswontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions