jellyfin / jellyfin-roku

The Official Roku Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
450 stars 141 forks source link

New Roku will not play audio FLAC files. #1031

Open delinuxco opened 1 year ago

delinuxco commented 1 year ago

Software Versions Jellyfin Server Version: 10.8.8 Roku Client Version: 11.5 Build 4312-CU

Describe the bug Purchased two pack Roku devices, Roku Ultra and Roku Stick, Playing existing FLAC music files, there is no sound. There is no error, no warning, the Roku app acts like it is playing but there is no sound. Movies and videos works fine. The files play just fine on Roku3 and Roku Model 3900. The files are in 43.2kHz sample rate.

How To Reproduce Steps to reproduce the behavior:

  1. Go to Jellyfin app
  2. Click on Music library
  3. Scroll down to any album
  4. Play any song

Expected behavior Audio should be heard.

Logs

Screenshots

Connection Information Is server local.

Server connection is http.

Additional context

1hitsong commented 1 year ago

We'll need an example file to debug this. Can you try these files and let us know if one of them can be used to recreate the issue?

https://filesamples.com/formats/flac

delinuxco commented 1 year ago

Well every one of those files played just fine. I should have just tested the files in 44.1Khz or 48Khz. Here is my test file: https://delinuxco.com/04_Up_in_My_Treehouse.flac

My entire audio library, almost 300 audio CD's that I have purchased for the last 25 years is in FLAC at 43.2Khz, and the powers that be just want to do away with anyone playing their audio in 43.2Khz sample rate! You can do a Google search for "audio files in FLAC" and you get 13 million hits, at 43.2Khz to the end and "nada".

I think it is time to make a simple Jellyfin media box. for each TV...

1hitsong commented 1 year ago

Thanks for the sample. I got it working, but uncovered another issue.

Yes, the issue is your sample rate. Not all Roku devices can support that rate, so they just play nothing. What should occur is Jelllyfin is told what sample rates your device supports and convert to one of them. However, I believe I uncovered an issue with the server where I'm unable to pass 2 acceptable values for sample rate (44100 and 48000).

I'm talking with the server devs about this now.

1hitsong commented 1 year ago

Server PR to fix issue outlined above: https://github.com/jellyfin/jellyfin/pull/9351

cewert commented 1 year ago

@delinuxco did upgrading to the latest server and roku client, v1.6.6, fix your issue?