Skip to content
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

Song play doesn't start until end of download (Dsub) #224

Open
Fabiosilvero opened this issue Nov 12, 2021 · 2 comments
Open

Song play doesn't start until end of download (Dsub) #224

Fabiosilvero opened this issue Nov 12, 2021 · 2 comments

Comments

@Fabiosilvero
Copy link

Fabiosilvero commented Nov 12, 2021

Hello,

I've migrated from Airsonic 10.6.2 to Supysonic, because I'd like to avoid Java as much as possible ^^.

I noticed a comportment change with my Dsub app (latest from Google Play) : with Airsonic, the song start to play around 10% of downloading. With Supysonic, the song needs to be fully downloaded before playing.

Did I miss a setting somewhere ? In Airsonic, I didn't needed to configure anything to have this behaviour.

The supyserver.log didn't catch the direct play like I do with Airsonic, only transcoding tests that I've done earlier.

Here's my configuration :

[base]
; A database URI. Default: sqlite:////tmp/supysonic/supysonic.db
database_uri = sqlite:////var/supysonic/supysonic.db
;database_uri = mysql://supysonic:supysonic@localhost/supysonic
;database_uri = postgres://supysonic:supysonic@localhost/supysonic

####################################################
[webapp]
; Optional cache directory. Default: /tmp/supysonic
cache_dir = /var/supysonic/cache

; Main cache max size in MB. Default: 512
cache_size = 512

; Transcode cache max size in MB. Default: 1024 (1GB)
transcode_cache_size = 1024

; Optional rotating log file. Default: none
log_file = /var/supysonic/supysonic.log

; Log level. Possible values: DEBUG, INFO, WARNING, ERROR, CRITICAL.
; Default: WARNING
log_level = DEBUG

; Enable the Subsonic REST API. You'll most likely want to keep this on.
; Here for testing purposes. Default: on
;mount_api = on

; Enable the administrative web interface. Default: on
;mount_webui = on

; Space separated list of prefixes that should be ignored on index endpoints
; Default: El La Le Las Les Los The
index_ignored_prefixes = El La Le Las Les Los The

####################################################
[daemon]
; Default: /tmp/supysonic/supysonic.sock
socket = /var/supysonic/supysonic.sock

; Defines if the file watcher should be started. Default: yes
run_watcher = yes

; Delay in seconds before triggering scanning operation after a change have been
; detected.
; This prevents running too many scans when multiple changes are detected for a
; single file over a short time span. Default: 5
wait_delay = 5

; Command used by the jukebox
jukebox_command = mplayer -ss %offset %path

; Optional rotating log file for the scanner daemon. Logs to stderr if empty
log_file = /var/supysonic/supysonic-daemon.log
log_level = INFO

####################################################
[transcoding]
transcoder_mp3_mp3 = lame --quiet --mp3input -b %outrate --tt %title --tl %album --ta %artist --tn %tracknumber/%totaltracks --tv TPOS=%discnumber --tg %genre --ty %year --add-id3v2 %srcpath -
transcoder = ffmpeg -i %srcpath -ab %outratek -v 0 -metadata title=%title -metadata album=%album -metadata author=%artist -metadata track=%tracknumber/%totaltracks -metadata disc=%discnumber -metadata genre=%genre -metadata date=%year -f %outfmt -
decoder_mp3 = mpg123 --quiet -w - %srcpath
decoder_ogg = oggdec -o %srcpath
decoder_flac = flac -d -c -s %srcpath
encoder_mp3 = lame --quiet -b %outrate --tt %title --tl %album --ta %artist --tn %tracknumber/%totaltracks --tv TPOS=%discnumber --tg %genre --ty %year --add-id3v2 - -
encoder_ogg = oggenc2 -Q -M %outrate -t %title -l %album -a %artist -N %tracknumber -c TOTALTRACKS=%totaltracks -c DISCNUMBER=%discnumber -G %genre -d %year -
default_transcode_target = mp3


Thanks !

@spl0k
Copy link
Owner

spl0k commented Nov 12, 2021

Hello.

How do you run Supysonic? Is it with with supysonic-server (and if so, using which WSGI server?) or are you using Apache's mod_wsgi or any other solution?
Also I'm not sure I understand your last sentence. Are you saying that you don't notice the issue if the song is transcoded?

@Fabiosilvero
Copy link
Author

Fabiosilvero commented Nov 12, 2021

I run Supysonic with supysonic-server using gunicorn (the default mode from tutorial I guess ?).
Sorry, non-native speaker ! I meant that in the logs, there's nothing in DEBUG mode, when I play a song. Only entries about transcoding, which aren't related to this issue (because I tested with transconding). The issue is present whether I set up transcoding or not for Dsub.

If the following can help :

  • OS : Debian 11 up-to-date
  • Supysonic-server : up-to-date (installed today from git with pip3)
  • VM type : QEMU

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants