How do I transcode only FLACs?

With all due respect don’t do supposition if you do not read the details I give each time :slight_smile:

  1. For LMS as said this is a limitation of the current API and a decision of LMS to transcode I’m trying to have a proper API build Add new transcoding extension by Tolriq · Pull Request #168 · opensubsonic/open-subsonic-api · GitHub but there’s friction around it and no one to backup me :wink:

  2. For Jellyfin this is as expected a “bug” in Jellyfin they take in account the image to calculate the bitrate of the media so your 320 kbps mp3 are seen as more than 320 and so Jellyfin transcode to reach the 320.

Example:
Extract: "SupportsDirectPlay": false, "Bitrate": 347052,

{
  "MediaSources": [
    {
      "Protocol": "File",
      "Id": "d8ab1f90c43b198066101729a02d468d",
      "Path": "/media/Music/Sevendust/Home (1999)/05 - Reconnect.mp3",
      "Type": "Default",
      "Container": "mp3",
      "Size": 9420564,
      "Name": "05 - Reconnect",
      "IsRemote": false,
      "ETag": "36e349a6722278a1e0300b90b9f0048c",
      "RunTimeTicks": 2171559180,
      "ReadAtNativeFramerate": false,
      "IgnoreDts": false,
      "IgnoreIndex": false,
      "GenPtsInput": false,
      "SupportsTranscoding": true,
      "SupportsDirectStream": false,
      "SupportsDirectPlay": false,
      "IsInfiniteStream": false,
      "UseMostCompatibleTranscodingProfile": false,
      "RequiresOpening": false,
      "RequiresClosing": false,
      "RequiresLooping": false,
      "SupportsProbing": true,
      "MediaStreams": [
        {
          "Codec": "mp3",
          "TimeBase": "1/14112000",
          "VideoRange": "Unknown",
          "VideoRangeType": "Unknown",
          "AudioSpatialFormat": "None",
          "LocalizedDefault": "Default",
          "LocalizedExternal": "External",
          "DisplayTitle": "MP3 - Stereo",
          "IsInterlaced": false,
          "IsAVC": false,
          "ChannelLayout": "stereo",
          "BitRate": 320000,
          "Channels": 2,
          "SampleRate": 44100,
          "IsDefault": false,
          "IsForced": false,
          "IsHearingImpaired": false,
          "Type": "Audio",
          "Index": 0,
          "IsExternal": false,
          "IsTextSubtitleStream": false,
          "SupportsExternalStream": false,
          "Level": 0
        },
        {
          "Codec": "mjpeg",
          "ColorSpace": "bt470bg",
          "Comment": "Cover (front)",
          "TimeBase": "1/90000",
          "VideoRange": "Unknown",
          "VideoRangeType": "Unknown",
          "AudioSpatialFormat": "None",
          "IsInterlaced": false,
          "IsAVC": false,
          "BitDepth": 8,
          "RefFrames": 1,
          "IsDefault": false,
          "IsForced": false,
          "IsHearingImpaired": false,
          "Height": 1000,
          "Width": 1000,
          "RealFrameRate": 90000,
          "ReferenceFrameRate": 90000,
          "Profile": "Progressive",
          "Type": "EmbeddedImage",
          "Index": 1,
          "IsExternal": false,
          "IsTextSubtitleStream": false,
          "SupportsExternalStream": false,
          "PixelFormat": "yuvj444p",
          "Level": -99,
          "IsAnamorphic": false
        }
      ],
      "MediaAttachments": [],
      "Formats": [],
      "Bitrate": 347052,
      "RequiredHttpHeaders": {},
      "TranscodingUrl": "/audio/d8ab1f90-c43b-1980-6610-1729a02d468d/stream.ogg?DeviceId=DE576418794013FD5CBD86989959222C&MediaSourceId=d8ab1f90c43b198066101729a02d468d&AudioCodec=opus&AudioBitrate=327680&AudioSampleRate=48000&PlaySessionId=2f82af29ca3d49c3b28af877b899bb96&api_key=REDACTED&TranscodingMaxAudioChannels=6&RequireAvc=false&EnableAudioVbrEncoding=true&Tag=36e349a6722278a1e0300b90b9f0048c&TranscodeReasons=ContainerBitrateExceedsLimit",
      "TranscodingSubProtocol": "http",
      "TranscodingContainer": "ogg",
      "HasSegments": false
    }
  ],
  "PlaySessionId": "2f82af29ca3d49c3b28af877b899bb96"
}