jellyfin-archive / jellyfin-android-original

Android Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
272 stars 65 forks source link

No compatible streams available when setting music quality #135

Closed ttpcodes closed 4 years ago

ttpcodes commented 5 years ago

If I log into Jellyfin from a mobile web browser, setting the music quality will cause the server to transcode my audio and play it as expected. However, when doing so from the Android app (I'm on beta9 which appears to be the latest version on the website), I get an error in the app saying that there are no compatible streams.

This is what the logs look like, with the first part being my request from the browser and the second part being my request from the app:

[23:22:58] [INF] WS <hidden URL>. UserAgent: Mozilla/5.0 (Linux; Android 9; Pixel 2 Build/PQ2A.190405.003; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/73.0.3683.90 Mobile Safari/537.36

[23:23:16] [INF] WS <hidden>. UserAgent: Mozilla/5.0 (Android 9; Mobile; rv:66.0) Gecko/66.0 Firefox/66.0

[23:23:20] [INF] User policy for <hidden>. EnableAudioPlaybackTranscoding: True

[23:23:20] [INF] Bitrate exceeds DirectStream limit: media bitrate: 1122272, max bitrate: 96000

[23:23:20] [INF] Bitrate exceeds DirectStream limit: media bitrate: 1122272, max bitrate: 96000

[23:23:21] [INF] User policy for <hidden>. EnableAudioPlaybackTranscoding: True

[23:23:21] [INF] Bitrate exceeds DirectStream limit: media bitrate: 1122272, max bitrate: 96000

[23:23:21] [INF] Bitrate exceeds DirectStream limit: media bitrate: 1122272, max bitrate: 96000

[23:23:21] [INF] /usr/local/bin/ffmpeg -i file:"<hidden>" -map_metadata -1 -map_chapters -1 -threads 0 -acodec aac -strict experimental -ac 2 -vn -f segment -max_delay 5000000 -avoid_negative_ts disabled -start_at_zero -segment_time 3 -individual_header_trailer 0 -segment_format mpegts -segment_list_type m3u8 -segment_start_number 0 -segment_list "<hidden>" -y "<hidden>"

[23:23:21] [INF] returning <hidden>

[23:23:21] [WRN] HTTP Response 200 to <hidden>. Time (slow): 0:00:00.6247707. <hidden>

=[23:23:25] [INF] FFMpeg exited with code 0
[23:24:09] [INF] User policy for <hidden>. EnableAudioPlaybackTranscoding: True

[23:24:09] [INF] Bitrate exceeds DirectStream limit: media bitrate: 1122272, max bitrate: 96000

[23:24:09] [INF] Bitrate exceeds DirectStream limit: media bitrate: 1122272, max bitrate: 96000

[23:24:09] [INF] User policy for <hidden>. EnableAudioPlaybackTranscoding: True

[23:24:09] [INF] Bitrate exceeds DirectStream limit: media bitrate: 1122272, max bitrate: 96000

[23:24:09] [INF] Bitrate exceeds DirectStream limit: media bitrate: 1122272, max bitrate: 96000

[23:24:09] [INF] Playback stopped reported by app Jellyfin Mobile 20854 playing <hidden>. Stopped at 0 ms

[23:24:11] [INF] WS <hidden>. UserAgent: Mozilla/5.0 (X11; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0

This doesn't just happen on FLAC files, but also in other parts of my music collection too, which are in MP3.

pwetzel commented 5 years ago

Same issue for me (thanks to OP for making this issue, I was thinking it was a server problem). I'm running the official Docker image, version 10.3.7, and Android Jellyfin Mobile 901. Logs are basically the same.

iotku commented 5 years ago

Same here against latest master ( 9f6c1a9a57712b8dd76b8da27c665580188b2012 )

Auto works but is responsible for me blowing through my data cap, setting to 192k results in no compatible streams. It's another unfortunate snag keeping me from fully migrating off of plex.

Android Pie / Moto G5 Plus

charredchar commented 4 years ago

Same here, tried on multiple phones too with 0.9.7. All of my music is MP3.

dkanada commented 4 years ago

Do mp3 files work when using the Auto setting? It sounds like the issue might be in the transcode profiles which can maybe be resolved.

iotku commented 4 years ago

MP3 files work for me on the Auto setting, but still don't work otherwise.

charredchar commented 4 years ago

Do mp3 files work when using the Auto setting? It sounds like the issue might be in the transcode profiles which can maybe be resolved.

MP3s do work under the Auto setting. I should have mentioned this before, it was one of the first things I checked as I was actually using my "Guest" account on my work cell. But this happens even on my admin account, which have everything enabled, on my personal cell phone too. It does not happen while using Jellyfin through the web interface.

dkanada commented 4 years ago

Yeah, the Android client appends its own compatibility chart to the web configuration so I'm guessing that just needs a minor change.

Artiume commented 4 years ago

It appears to not be a compatibility issue but an ffmpeg issue.

iotku commented 4 years ago

Seems to be working for me now unless it's due to me updating my phone.

Anyone else got any updates on this? Fixed?

Artiume commented 4 years ago

Fixed