-
-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullReferenceException on FLAC playback #76
Comments
It looks like youre using the "PlayTo" functionality somehow. Can you describe your setup more? ive not used the "play to" functionality much and having trouble replicating this. I just used bubbleupnp, found a flac audio file, played back on bubbleupnp and played fine. I then selected a google speaker as renderer in bubbleupnp and was able to play the flac audio on the google speaker from bubbleupnp. |
Hallo @disgustipated, thank you for looking into this problem. I've got a DLNA renderer (based on UPMPDCLI) connected to my amplifier. The renderer is announcing itself and I can simply select it via the "PlayTo" dialog. After the connection is made in the WebUI I can start playback like with the local media player. I've tried playing albums, single tracks and playlists. The error message is always the same. I also tried my LG television as a "PlayTo" target, to make sure that it is not some incompatibility with UPMPDCLI. But the error is the same. Playing MP3s via this route works for both media renderers. I think you should be able to reproduce the problem if you have any DLNA renderer (TV, Stereo, etc.) that can be selected in the play to dialog. I hope this helps. If you have more questions please let me know. |
ok, i was actually just doing that same process this morning while looking at the playto functionality on another issue. it was working and now it is posting that same message. trying to narrow down what i changed in the settings to make that start happening. i think this has something to do with the ssdp communications server |
I think i see whats going on. Can you try putting a valid ip that is on your server which is the same network subnet as the device youre trying to play to in the "Bind to local network address" in the networking section? it looks like when that is not set the ssdp comms server binds to 0.0.0.0 which i dont think is correct. this may also be the problem here too #48 |
There is already the IP address of my server on the local subnet, and the loop-back address configured there. I don't know the code, but if it's an SSDP or networking issue, why do MP3s play correctly and only FLAC files are affected? |
Yeah, thats interesting. I was playing flac this way too and they played fine. |
oh wait, you have loopback in the bind to local addess box like 127.0.0.1? that wont work, im pretty sure you should use an ip thats accessible from the clients in there |
I tested this and just put the local IP address into the input box. The issue and the error message stay the same. |
I've done some more testing: MP3 file --> UPMPDCLI renderer: ✅ works MP3 file --> LG WebOS TV: ✅ works I've event tested different FLAC files. Some have been bough directly from download stores (like qobuz), some have been transcoded from CD with different versions of FLAC encoders. Same result: FLAC does not work, everything else does. |
Ah, I found the issue. The user I'm using is not allowed to do transcoding. And jellyfin seems to think, that it has to do transcoding to play FLAC files. If I enable audio transcoding for my user, it works. Now I have to figure out why suddenly Jellyfin wants to transcode FLAC files. This setting was always disabled and I know it worked... |
@disgustipated: I could not find a reason why Jellyfin wants to transcode FLAC files. Could you check if disabling transcoding for your user reproduces the problem? |
im not 100% sure but I think that transcoding for dlna devices happens in the profiles when the profile tells it to transcode the file type. Can you tell in the logging which profile is being loaded? do you see a line like this when your device is turned on? in the profile that is loaded you'll see some lines like this
not sure if that helps but might point you in the right direction. im back to getting the same message you are though and it seems related to my published url setting because when i take it out it works, both mp3 and flac dont play though. |
@disgustipated, thank you for the hint. With this information about profiles, I found the root cause of the problem: My audio-player gets the profile of an LG television and not the default profile. The cause is PR #60 . This PR removed the dot from the regular expression |
Interesting, did this work in 10.8 before the move to the plugin? From what I found the . was removed in the profiles moving to the plugin which broke the profile. Your testing indicated that flac failed playing back to an lg tv too, did the tv not pick up that profile? |
It definitely worked before the move to the plugin. I must admit that I have not tried streaming FLAC to the TV before moving to the plugin. But this is the only device I have other than the UPMPDCLI based media player. I've enabled the Jellyfin debug log on my current setup, and it shows that the media player is assigned to the "LG Smart TV" profile. The code shows, that there is a regex match on the FriendlyName. See
and
I've for now created my own profile for the media player based on the default profile and put it into |
Yeah, I renamed my onkyo to include an "l" in it, I do see its picking up a profile now in this version and and it was not back in the 10.8 version. I'll try to see if there was a change to how the dlna manager is pulling profiles, there was a lot that changed when they moved to the plugin. When I removed that . it was because it stopped my tv from being recognized and there was not a . in the old profiles. |
Problem description
Playing back FLAC files via DLNA does not work. If a DLNA renderer is selected as a playback device, clicking play on any FLAC file does not do anything and logs an error message. MP3 files play without problems.
I know that the DLNA renderer is capable of playing back FLAC content from Jellyfin, because I worked with previous Jellyfin versions.
Versions
Jellyfin 10.9.11
DLNA Plugin 3.0.0.0
Logs
Jellyfin logs the following error message each time a FLAC file should be added to the playlist:
If you need more information, place let me know.
The text was updated successfully, but these errors were encountered: