Skip to content

audio transcoding not working #2605

@BotBlake

Description

@BotBlake

Description of the bug

I have a few .wma files that cannot be played by jellyfin-vue.
I assume that this is caused by it having to transcode that but the server failing to do so.

Trying to start playback on finamp results in either "playback starting" but a non moving progress bar, or a never ending loading circle on the progress bar.
It always tells the server we would Direct Play and doesnt tell it that Playback has not actually started yet.

In Jellyfin-Vue it looks like so:

Image

Whilst in the jf-server Admin UI, it looks like its just playing:

Image

From looking at that, it seems like the Client is trying to DirectPlay.
Note that playing back the same file on jf-web and jf-androidtv (even on the same device) results in a Transcode + Transcode log.

This could be caused by two things:

  1. Audio transcoding is simply not (yet) supported, and therefore the Client just Direct Plays and doesnt know how to handle unsupported Codecs.
  2. Audio transcoding was working previously but broke due to a Server side change in 10.10.x

In case it it option two, you will find more detailed information about this HERE:
jellyfin/jellyfin#12926

Main change is that the "AudioCodec" Parameter must now be send.

Steps to reproduce

  1. Get a file that will result in transcoding - e.g. .wma
    For me a ``WMAv2 asf` - File did the trick.

  2. Try to start Playback in the Jellyfin-Vue Client

Expected behavior

I would have expected playback to work - Or at the very minimum get an Error message explaining how transcoding is not working.
Generaly having a handler for "unsupported file".

Logs

⚠ An AudioContext was blocked from automatic playback. It must be created or resumed after user interaction with the page.

⚠ Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled and not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters.

⚠ HTTP-Content-Type "video/x-ms-asf" is not supported. Loading media resource https://<domain>/Audio/<itemid1>/stream.asf?Static=true&mediaSourceId=<itemid1>&DeviceId=<sessionid1>&api_key=<sessionid4>&Tag=<sessionid5>&liveStreamId= failed.

⚠ HTTP-Content-Type "application/vnd.apple.mpegurl" is not supported. Loading media resource https://<domain>/Audio/<itemid1>/master.m3u8?DeviceId=<sessionid1>&MediaSourceId=<itemid1>&AudioCodec=aac&AudioBitrate=192000&PlaySessionId=<sessionid2>&api_key=<sessionid4>&TranscodingMaxAudioChannels=2&RequireAvc=false&EnableAudioVbrEncoding=true&Tag=<sessionid5>&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&TranscodeReasons=ContainerNotSupported,%20VideoCodecNotSupported,%20AudioCodecNotSupported failed.

⚠ Media could not be played. No decoders available for requested formats: video/x-ms-asf, application/vnd.apple.mpegurl.

⚠ HTTP-Content-Type "video/x-ms-asf" is not supported. Loading media resource https://<domain>/Audio/<itemid2>/stream.asf?Static=true&mediaSourceId=<itemid2>&DeviceId=<sessionid1>&api_key=<sessionid4>&Tag=<sessionid6>&liveStreamId= failed.

⚠ HTTP-Content-Type "application/vnd.apple.mpegurl" is not supported. Loading media resource https://<domain>/audio/<itemid2>/master.m3u8?DeviceId=<sessionid1>&MediaSourceId=<itemid2>&AudioCodec=aac&AudioBitrate=192000&PlaySessionId=<sessionid3>&api_key=<sessionid4>&TranscodingMaxAudioChannels=2&RequireAvc=false&EnableAudioVbrEncoding=true&Tag=<sessionid6>&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&TranscodeReasons=ContainerNotSupported,%20VideoCodecNotSupported,%20AudioCodecNotSupported failed.

⚠ Media could not be played. No decoders available for requested formats: video/x-ms-asf, application/vnd.apple.mpegurl.

❌ Uncaught (in promise) DOMException: The media resource indicated by the src attribute or assigned media provider object was not suitable.
    <anonymous> https://<domain>/assets/vendor/vueuse-CYC-mAbS.js:1
    t https://<domain>/assets/vendor/vueuse-CYC-mAbS.js:1
    ve https://<domain>/assets/vendor/vueuse-CYC-mAbS.js:1
    t https://<domain>/assets/vendor/vueuse-CYC-mAbS.js:1
    n https://<domain>/assets/vendor/vueuse-CYC-mAbS.js:1
    ye https://<domain>/assets/vendor/vueuse-CYC-mAbS.js:1
    Kt https://<domain>/assets/vendor/vue-CkZpI52D.js:13
    me https://<domain>/assets/vendor/vue-CkZpI52D.js:9
    Ve https://<domain>/assets/vendor/vue-CkZpI52D.js:9
    K https://<domain>/assets/vendor/vue-CkZpI52D.js:13
    V https://<domain>/assets/vendor/vue-CkZpI52D.js:13
    Kt https://<domain>/assets/vendor/vue-CkZpI52D.js:13

⚠ HTTP-Content-Type "video/x-ms-asf" is not supported. Loading media resource https://<domain>/Audio/<itemid2>/stream.asf?Static=true&mediaSourceId=<itemid2>&DeviceId=<sessionid1>&api_key=<sessionid4>&Tag=<sessionid6>&liveStreamId= failed.

⚠ HTTP-Content-Type "application/vnd.apple.mpegurl" is not supported. Loading media resource https://<domain>/audio/<itemid2>/master.m3u8?DeviceId=<sessionid1>&MediaSourceId=<itemid2>&AudioCodec=aac&AudioBitrate=192000&PlaySessionId=<sessionid3>&api_key=<sessionid4>&TranscodingMaxAudioChannels=2&RequireAvc=false&EnableAudioVbrEncoding=true&Tag=<sessionid6>&SegmentContainer=ts&MinSegments=1&BreakOnNonKeyFrames=True&TranscodeReasons=ContainerNotSupported,%20VideoCodecNotSupported,%20AudioCodecNotSupported failed.

⚠ Media could not be played. No decoders available for requested formats: video/x-ms-asf, application/vnd.apple.mpegurl.

Screenshots

Already present in the main description.

Platform

Windows

Browser

Firefox

Jellyfin server version

10.10.6

Additional context


Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions