Page 3 of 5

Re: Subsonic 6.1.beta2 released

PostPosted: Fri Mar 31, 2017 9:37 pm
by Jägs
I think I spoke too soon about not having any problems :-(

I'm finding that I'm having random playback problems, and it does not seem to be isolated to any specific file type. I have a playlist of film scores, consisting of MP3s and FLACs. Subsonic will play a few pieces, and then just stop. The album art displays a question mark, the play icon has a pause, and the scrubber shows as being all the way to the end:

Image

When I check the log file, it only displays the ffmpeg decoding for the previous file, not the current one, as if it's not even getting to the point to send it to the transcoder. This just happened, so here's the complete log file from when the previous piece started playing, to the point where Subsonic stopped when trying to play the next piece:

Code: Select all
[3/31/17 4:07:28 PM CDT]   INFO   TranscodeInputStream   Starting transcoder: /var/subsonic/transcode/ffmpeg -i /media/music/Classical/Contemporary/Zimmer, Hans/Gladiator/Hans Zimmer - Gladiator [2000 Original Score] - 17 - Now We Are Free.flac -map 0:0 -b:a 320k -v 0 -f mp3 -
[3/31/17 4:11:46 PM CDT]   DEBUG   StreamController   GET /music/stream?player=2&id=12537&auth=394545575&scrobble=false, Range: bytes=0-1
[3/31/17 4:11:46 PM CDT]   DEBUG   StreamController   Content-Length: 2
[3/31/17 4:11:46 PM CDT]   DEBUG   StreamController   Content-Range: 0-1/11416191
[3/31/17 4:11:46 PM CDT]   DEBUG   StreamController   Wrote 2 bytes of 2 requested
[3/31/17 4:11:46 PM CDT]   DEBUG   StreamController   GET /music/stream?player=2&id=12537&auth=394545575&scrobble=false, Range: bytes=0-11416190
[3/31/17 4:11:46 PM CDT]   DEBUG   StreamController   Content-Length: 11416191
[3/31/17 4:11:46 PM CDT]   DEBUG   StreamController   Content-Range: 0-11416190/11416191
[3/31/17 4:11:56 PM CDT]   DEBUG   StreamController   Wrote 11416191 bytes of 11416191 requested
[3/31/17 4:19:46 PM CDT]   DEBUG   StreamController   GET /music/stream?player=2&id=14644&auth=406472299&scrobble=false, Range: bytes=0-1
[3/31/17 4:19:46 PM CDT]   DEBUG   StreamController   Content-Length: 2
[3/31/17 4:19:46 PM CDT]   DEBUG   StreamController   Content-Range: 0-1/5590519
[3/31/17 4:19:46 PM CDT]   DEBUG   StreamController   Wrote 2 bytes of 2 requested
[3/31/17 4:19:46 PM CDT]   DEBUG   StreamController   GET /music/stream?player=2&id=14644&auth=406472299&scrobble=false, Range: bytes=0-5590518
[3/31/17 4:19:46 PM CDT]   DEBUG   StreamController   Content-Length: 5590519
[3/31/17 4:19:46 PM CDT]   DEBUG   StreamController   Content-Range: 0-5590518/5590519
[3/31/17 4:19:46 PM CDT]   DEBUG   StreamController   GET /music/stream?player=2&id=14644&auth=406472299&scrobble=false, Range: bytes=32768-5590518
[3/31/17 4:19:46 PM CDT]   DEBUG   StreamController   Content-Length: 5557751
[3/31/17 4:19:46 PM CDT]   DEBUG   StreamController   Content-Range: 32768-5590518/5590519
[3/31/17 4:19:46 PM CDT]   DEBUG   StreamController   GET /music/stream?player=2&id=14644&auth=406472299&scrobble=false, Range: bytes=5342-5590518
[3/31/17 4:19:46 PM CDT]   DEBUG   StreamController   Content-Length: 5585177
[3/31/17 4:19:46 PM CDT]   DEBUG   StreamController   Content-Range: 5342-5590518/5590519
[3/31/17 4:19:46 PM CDT]   DEBUG   StreamController   Wrote 5585177 bytes of 5585177 requested


Any ideas what might be going on? I'm wondering if it might be having a problem with longer file/folder names, as in the example above, here's the full path:

/media/music/Classical/Contemporary/Compilations/Varese Saraband/Varese Sarabande 25th Anniversary Celebration, Volume 1/The Sixth Sense - De Profundis.flac

Perhaps the comma is causing a problem? Then again, it should have had the same problem with the Zimmer piece preceding it, which also has a comma.

Re: Subsonic 6.1.beta2 released

PostPosted: Sat Apr 01, 2017 9:10 pm
by wendigo
Hello,

I just found out Jukebox mode is not working properly for me after the update from 6.0 to 6.1beta2.
There's no sound, neither when the playback is initiated from mobile nor from web UI. The player looks like it starts playing for 3 seconds (visible on mobile app) but then it skips the rest of the track and jumps through the playlist.
Same happens for mp3 and flac files as well.

This is what the log for each file looks like:
Code: Select all
[4/1/17 9:35:37 PM CEST]   INFO   TranscodeInputStream   Starting transcoder: /var/subsonic/transcode/ffmpeg -ss %o -i /data/music/D/Dhul-Qarnayn/2009 - Thus Death/09 - Dhul-Qarnayn - Thus Death.mp3 -map 0:0 -v 0 -ar 44100 -ac 2 -f s16be -
[4/1/17 9:35:37 PM CEST]   DEBUG   JukeboxService   Opened line com.sun.media.sound.DirectAudioDevice$DirectSDL@41683231
[4/1/17 9:35:37 PM CEST]   INFO   JukeboxService   username starting jukebox for "2009 - Thus Death/09 - Dhul-Qarnayn - Thus Death.mp3"
[4/1/17 9:35:37 PM CEST]   DEBUG   JukeboxService   Closed line com.sun.media.sound.DirectAudioDevice$DirectSDL@41683231
[4/1/17 9:35:37 PM CEST]   INFO   JukeboxService   username stopping jukebox for "2009 - Thus Death/09 - Dhul-Qarnayn - Thus Death.mp3"


The system is Ubuntu 16.04, with Oracle Java 1.8.0_121

Re: Subsonic 6.1.beta2 released

PostPosted: Sun Apr 02, 2017 7:34 am
by sindre_mehus2
wendigo wrote:Hello,

I just found out Jukebox mode is not working properly for me after the update from 6.0 to 6.1beta2.
There's no sound, neither when the playback is initiated from mobile nor from web UI. The player looks like it starts playing for 3 seconds (visible on mobile app) but then it skips the rest of the track and jumps through the playlist.
Same happens for mp3 and flac files as well.


Confirmed. This is a regression. I have fixed it for the next release.

Thanks
Sindre

Re: Subsonic 6.1.beta2 released

PostPosted: Sun Apr 02, 2017 1:06 pm
by manwithaplan
Sindre, now that Chrome supports native FLAC streaming in-browser (about 4 months ago they started this), is there a method you could recommend for us Chrome browser users to be able to stream the .flac files directly in the browser without transcoding? This would be a fairly big user experience enhancement.

Thanks as always.

Re: Subsonic 6.1.beta2 released

PostPosted: Sun Apr 02, 2017 2:27 pm
by _vincent
sindre_mehus2 wrote:
wendigo wrote:Hello,

I just found out Jukebox mode is not working properly for me after the update from 6.0 to 6.1beta2.
There's no sound, neither when the playback is initiated from mobile nor from web UI. The player looks like it starts playing for 3 seconds (visible on mobile app) but then it skips the rest of the track and jumps through the playlist.
Same happens for mp3 and flac files as well.


Confirmed. This is a regression. I have fixed it for the next release.

Thanks
Sindre


Thanks! I'm having the same problem.

By the way, do you know how to avoid conflicts between Kodi and Subsonic jukebox? I'm running Ubuntu 16.04, and Subsonic generally seems to "lock" the soundcard for a while. I have to wait a few minutes between the time when I stop playback on jukebox mode and the time when Kodi manages to access the soundcard and starts making sound.

Re: Subsonic 6.1.beta2 released

PostPosted: Mon Apr 03, 2017 5:01 pm
by sindre_mehus2
manwithaplan wrote:Sindre, now that Chrome supports native FLAC streaming in-browser (about 4 months ago they started this), is there a method you could recommend for us Chrome browser users to be able to stream the .flac files directly in the browser without transcoding? This would be a fairly big user experience enhancement.


Cool! I didn't know that. You can simply go to Settings > Transcoding and remove "flac" from the list of formats to convert.

Re: Subsonic 6.1.beta2 released

PostPosted: Mon Apr 03, 2017 9:35 pm
by manwithaplan
sindre_mehus2 wrote:
manwithaplan wrote:Sindre, now that Chrome supports native FLAC streaming in-browser (about 4 months ago they started this), is there a method you could recommend for us Chrome browser users to be able to stream the .flac files directly in the browser without transcoding? This would be a fairly big user experience enhancement.


Cool! I didn't know that. You can simply go to Settings > Transcoding and remove "flac" from the list of formats to convert.


Indeed, works very nicely, even back on lowly SS 5.2.1 in fact! Yet another reason to use nothing but Chrome when using SS from a workstation/laptop! Cheers Sindre!!! Every now and then Google throws us a bone, and this one could not have come soon enough!! For those 'finicky' audio purists like myself, I have tested with not only simple CD rips in FLAC format, but also high resolution 24bit/192kHz FLAC files from the likes of HD Tracks and Acoustic Sounds and the like. No transcoding needed or desired! Cheers all!

Re: Subsonic 6.1.beta2 released

PostPosted: Mon Apr 03, 2017 11:22 pm
by tmwsiy
I have had 503 HTTP errors 3 times since upgrading to 6.1.beta2.

I made a manual backup of DB folder after installation and am able to get Subsonic running again after replacing that.
My DB Backup folder does NOT seem to be working at all.
How often is the backup supposed to be updated?

When I replace with the backup, there are no users, folders, or index or anything.

Windows 7 machine it is running on.

thanks.

Re: Subsonic 6.1.beta2 released

PostPosted: Wed Apr 05, 2017 10:33 am
by Tak-MK
Hum..., where's the suffle option in the queue?

Re: Subsonic 6.1.beta2 released

PostPosted: Wed Apr 05, 2017 11:28 am
by acroyear
Its not in the queue section, it is in the player section at the bottom. Star, Repeat, Shuffle, Back, Play/Pause, Forward, Cast. See the screenshot at the top of this page.

The playlist section you mention in Feature Requests has never had a 'shuffle' button, so that could still be useful. Several apps have it (but not the official Subsonic one).

Re: Subsonic 6.1.beta2 released

PostPosted: Wed Apr 05, 2017 3:00 pm
by ARKaMAN
It would seem the last.fm scrobbler isn't working. :( Please fix.

Re: Subsonic 6.1.beta2 released

PostPosted: Wed Apr 05, 2017 3:20 pm
by Jägs
The playlist section you mention in Feature Requests has never had a 'shuffle' button, so that could still be useful. Several apps have it (but not the official Subsonic one).


I'd second this. It'd be quite convenient to have a play-shuffled option in the playlist listing, and would save me a click.

Re: Subsonic 6.1.beta2 released

PostPosted: Thu Apr 06, 2017 7:50 am
by Tak-MK
acroyear wrote:Its not in the queue section, it is in the player section at the bottom. Star, Repeat, Shuffle, Back, Play/Pause, Forward, Cast. See the screenshot at the top of this page.

The playlist section you mention in Feature Requests has never had a 'shuffle' button, so that could still be useful. Several apps have it (but not the official Subsonic one).

Thanks! And yes, I think it would be useful, or at least when you shuffle a playlist, the active song should be the first one, so I can hear the entire playlist in the queue.

Re: Subsonic 6.1.beta2 released

PostPosted: Fri Apr 07, 2017 1:23 am
by amorris
manwithaplan wrote:
sindre_mehus2 wrote:
manwithaplan wrote:Sindre, now that Chrome supports native FLAC streaming in-browser (about 4 months ago they started this), is there a method you could recommend for us Chrome browser users to be able to stream the .flac files directly in the browser without transcoding? This would be a fairly big user experience enhancement.


Cool! I didn't know that. You can simply go to Settings > Transcoding and remove "flac" from the list of formats to convert.


Indeed, works very nicely, even back on lowly SS 5.2.1 in fact! Yet another reason to use nothing but Chrome when using SS from a workstation/laptop! Cheers Sindre!!! Every now and then Google throws us a bone, and this one could not have come soon enough!! For those 'finicky' audio purists like myself, I have tested with not only simple CD rips in FLAC format, but also high resolution 24bit/192kHz FLAC files from the likes of HD Tracks and Acoustic Sounds and the like. No transcoding needed or desired! Cheers all!


Fantastic! But if I remove flac from the list of formats to convert, what happens when a user who is not using Chrome tries to play the track? Will it just refuse to play? Is there a way to specify that SS should transcode flac for users who are not on Chrome? Thanks.

Re: Subsonic 6.1.beta2 released

PostPosted: Fri Apr 07, 2017 2:31 am
by manwithaplan
amorris wrote:Fantastic! But if I remove flac from the list of formats to convert, what happens when a user who is not using Chrome tries to play the track? Will it just refuse to play? Is there a way to specify that SS should transcode flac for users who are not on Chrome? Thanks.


I would suggest not doing this at the global level - but only removing the flac-to-mp3 conversion for specific Users that are aware of the reason behind it and fully intend on using Chrome when they're on a desktop/laptop PC/Mac. Technically, the most discrete setting for this is possible because transcoding of any kind ultimately operates at the Player level, not even User per se, but the specific Player that the User is using when they hit Play. So again, I would only do this for the more 'power users' that understand that Chrome has these new capabilities and that they have expressed to you that they want the best fidelity possible when streaming on your site. You might find that the Chrome instance has its own "Player" and therefore you can actually do what you intend for Users that use for instance Firefox for some SS use, but Chrome of other times. By encouraging the power user to have a separate "Player" for the different browsers they use, you could effectively ensure that FLAC files are never transcoded when using Chrome but are indeed transcoded when using Firefox or others for instance.