BlitterStudio/MB_SubSonic

FLAC support

Closed this issue · 21 comments

When attempting to play a .flac file the following error is received:

Unable to play this file - is has an unsupported format or is corrupted

The transcoding settings for flac and mp3 are default within the Subsonic instance.

  1. name - mp3 audio
  2. convert from - ogg oga aac flac m4a wav wma aif aiff ape mpc shn
  3. convert to - mp3
  4. Step 1 - ffmpeg -i %s -map 0:0 -b:a %bk -v 0 -f mp3 -

This is Subsonic 6.0 running on Arch Linux with MusicBee 3.0.5995 and MB_SubSonic 2.8beta.

FLAC playback works normally in my tests using MusicBee 3.0.6068 (latest stable release) and MB_Subsonic 2.8 beta.

Have you enabled transcoding in your Subsonic server? Maybe that's the cause of this problem, and why I cannot see it. Does it work if you don't transcode the stream and send it off as-is?

Also, there's an option to use transcoding from the plugin - if enabled, it will transcode any non-mp3 tracks to mp3. Does that make any difference to you?

So transcoding is turned on the Subsonic server.
I've tried ticking transcode as mp3 within the plugin but it seems that the change is not being saved.
Every time I go back into the preferences it appears unticked.

The problem with the transcoding checkbox not staying enabled was a bug, I've fixed it in the current sources (not yet released, but soon).

Can you try disabling the Transcoding option from the server to see if it makes a difference for you? Raw FLAC files play fine here, as well as transcoded "on-demand" from the player. Perhaps if they're transcoded from the server this comes up.

Hi,
First of all. NICE WORK!

However, I am having the exact same issue as nightag.

I am running plugin version 2.8 Beta on MusicBee 3.0

My subsonic server is as follows:
Version 6.0 (build a7857c) – April 30, 2016
Server jetty-6.1.x, java 1.7.0_111, Linux (80.5 MB / 188.0 MB)
OS Ubuntu server 14.04.03 x64

I have tested with transcoding bodt enabeled and disabeled on the server.
I have also tried with my backup server (similar specs) with the same result.

@kdtt87 Thank you for the extra information. Is there some pattern to this, besides the fact that they are FLAC files? E.g. is it only occurring in Playlists?

I have several FLAC files here, but so far at least I haven't been able to recreate it. That makes it a bit difficult to find out what's causing it. If we manage to find a scenario to recreate this, it will make things a lot easier.

Alternatively, if either you or @nightah could create a test account for me and send me the details at midwan at gmail dot com, I could try connecting there and debugging it remotely.

@midwan
The problem is ocurring with both playlists and regular playback.

As I don't know om which OS you are hosting your server, it could be a linux thing?
Purely guessing

Will email you account details shortly

@kdtt87 the server I've been testing with so far is hosted on MacOS X. I can try setting up a VM with Ubuntu server 14 to see if it makes any difference.

Thanks for the connection details, I'll test it out as soon as I can and let you know what I find.

Hi again,
I MAY have found something.
When i access my subsonic via Musicbee from work (limited broadband) i get the dreaded error message.
But when i access my subsonic from home (still using the same external adress, but with gigabit access) everything works fine.

Could it be a timeout issue due to limited bandwith?

The internet connection on which the server is hosted, has a ~5mbit upload speed, which is not alot.

That may be one thing to look for, thanks!

I'll test the same and see what we get.

Dimitris Panokostas

On Fri, Sep 9, 2016 at 7:32 AM, kdtt87 notifications@github.com wrote:

Hi again,
I MAY have found something.
When i access my subsonic via Musicbee from work (limited broadband) i get
the dreaded error message.
But when i access my subsonic from home (still using the same external
adress, but with gigabit access) everything works fine.

Could it be a timeout issue due to limited bandwith?


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
#15 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADsp9fDIMKWpnzsP_teBMM0dHvaGZBk9ks5qoO90gaJpZM4JwLPB
.

I'm getting this same error when trying to play FLAC files too. Enabling 'transcode as MP3' in the plugin allows me to play FLAC files regardless of the server transcoding settings but I'm not able to skip to another point in the song. In any case, I'd like to be play FLAC files directly without any transcoding as my computer and server are on the same wired gigabit LAN.

MusicBee version: 3.0.6172
Subsonic version: 5.3
MB Subsonic version: 2.9 Beta
OS: Windows 7 x64

Thanks for reporting this @user020. I will try to recreate this again and see what we get.

@user020
I have just pushed out a new version, so we're currently at v2.11. Could you please test with this and let me know if the FLAC playback is still an issue?

@kdtt87
I have seen this in the past, I don't think it's a Madsonic thing (the protocol used is the same).
If I recall correctly it happened only if you clicked on another track while one was playing already (so it aborted that one), and it was because MusicBee was not handling an Exception that got thrown internally.

I'll see if I can recreate it to make sure.

Meanwhile though, closing this issue since FLAC support works as expected.

We'll open a new one for the error once it's verified.

@kdtt87
Yes, the error log can be found from within MB:
Help>>Support>>View Error Log

@kdtt87
Thanks!

I've masked out the username/password details as they are publicly available here. :)

Lol, thank you!
Didn't realize i was posting on the forum. Just thought I replied to email.
I have removed the server address aswell :)