Meridion wrote: > I installed Squeezelite on two ARM linux microsystems (piCorePlayer on > Pi2 and max2play on Odroid U3). The player is connected to an USB-DAC > (Emotiva XMC-1). > > When I was running Squeezlite together with LMS on the same system, > frequent glitches between two songs were annoying. Now I switched > Squeezlite to the Pi2 running pICorePlayer, because I suspected LMS and > Squeezelite not running smoothly on the same system. But the problem > persist. It sounds like the audio stream output gets interrupted for a > short time. The DAC shows the same glitches over HDMI when it receives a > new audio stream. Or maybe the two songs are not correctly appended? > > Can somebody help debugging this problem? > > On transitions from MP3 to FLAC (same samling rate), the glitch is heard > every time. The debug log of Squeezelite for such a transition with a > glich is: > > > Code: -------------------- > > [12:25:52.755070] sendSTAT:171 STAT: STMt > [12:25:53.747857] process:494 strm > [12:25:53.748087] process_strm:256 strm command t > [12:25:53.748165] sendSTAT:171 STAT: STMt > [12:25:54.749479] sendSTAT:171 STAT: STMt > [12:25:54.904357] mad_decode:203 end of stream > [12:25:54.906311] mad_decode:280 gapless: trimming 335 frames from end > [12:25:54.906397] decode_thread:99 decode complete > [12:25:54.906576] sendSTAT:171 STAT: STMd > [12:25:55.145344] process:494 strm > [12:25:55.145546] process_strm:256 strm command s > [12:25:55.145611] process_strm:325 strm s autostart: 1 transition period: 4 transition type: 0 codec: f > [12:25:55.145654] sendSTAT:171 STAT: STMf > [12:25:55.145877] codec_open:218 codec open: 'f' > [12:25:55.145917] codec_open:235 closing codec: 'm' > [12:25:55.146145] stream_sock:384 connecting to 192.168.0.40:9000 > [12:25:55.147218] stream_sock:413 header: GET /stream.mp3?player=b8:27:eb:62:34:55 HTTP/1.0 > [12:25:55.147282] sendSTAT:171 STAT: STMc > [12:25:55.147422] process_strm:357 set fade mode: 0 > [12:25:55.147595] process:494 audg > [12:25:55.147629] process_audg:413 audg gainL: 65536 gainR: 65536 adjust: 0 > [12:25:55.147663] set_volume:246 setting internal gain left: 65536 right: 65536 > [12:25:55.252530] stream_thread:176 headers: len: 118 > HTTP/1.1 200 OK > Server: Logitech Media Server (7.9.0 - 1424440547) > Connection: close > Content-Type: audio/x-flac > [12:25:55.252793] sendRESP:202 RESP > [12:25:55.311323] write_cb:116 setting track_start > [12:25:55.312959] _output_frames:61 start buffer frames: 401065 > [12:25:56.345549] sendSTAT:171 STAT: STMt > [12:25:57.346850] sendSTAT:171 STAT: STMt > [12:25:58.348130] sendSTAT:171 STAT: STMt > [12:25:58.746890] process:494 strm > [12:25:58.747058] process_strm:256 strm command t > [12:25:58.747103] sendSTAT:171 STAT: STMt > [12:25:59.748380] sendSTAT:171 STAT: STMt > [12:26:00.749888] sendSTAT:171 STAT: STMt > [12:26:01.751293] sendSTAT:171 STAT: STMt > [12:26:02.752844] sendSTAT:171 STAT: STMt > [12:26:03.747309] process:494 strm > [12:26:03.747482] process_strm:256 strm command t > [12:26:03.747529] sendSTAT:171 STAT: STMt > [12:26:04.283138] _output_frames:146 track start sample rate: 44100 replay_gain: 0 > [12:26:04.748816] sendSTAT:171 STAT: STMs > -------------------- > > > > A transition with a glitch from FLAC to FLAC (same sampling rate) > looks like this: > > > Code: -------------------- > > [13:17:40.783258] sendSTAT:171 STAT: STMt > [13:17:40.968858] decode_thread:99 decode complete > [13:17:40.969073] sendSTAT:171 STAT: STMd > [13:17:40.989451] process:494 strm > [13:17:40.989533] process_strm:256 strm command s > [13:17:40.989686] process_strm:325 strm s autostart: 1 transition period: 4 transition type: 0 codec: f > [13:17:40.989764] sendSTAT:171 STAT: STMf > [13:17:40.989856] codec_open:218 codec open: 'f' > [13:17:40.990045] stream_sock:384 connecting to 192.168.0.40:9000 > [13:17:40.991064] stream_sock:413 header: GET /stream.mp3?player=b8:27:eb:62:34:55 HTTP/1.0 > [13:17:40.991189] sendSTAT:171 STAT: STMc > [13:17:40.991294] process_strm:357 set fade mode: 0 > [13:17:40.991396] process:494 audg > [13:17:40.991428] process_audg:413 audg gainL: 65536 gainR: 65536 adjust: 0 > [13:17:40.991533] set_volume:246 setting internal gain left: 65536 right: 65536 > [13:17:41.014328] stream_thread:176 headers: len: 118 > HTTP/1.1 200 OK > Server: Logitech Media Server (7.9.0 - 1424440547) > Connection: close > Content-Type: audio/x-flac > [13:17:41.014485] sendRESP:202 RESP > [13:17:41.269472] write_cb:116 setting track_start > [13:17:41.283215] _output_frames:61 start buffer frames: 429684 > [13:17:42.285744] sendSTAT:171 STAT: STMt > [13:17:43.287051] sendSTAT:171 STAT: STMt > [13:17:43.780172] process:494 strm > [13:17:43.780306] process_strm:256 strm command t > [13:17:43.780391] sendSTAT:171 STAT: STMt > [13:17:44.781789] sendSTAT:171 STAT: STMt > [13:17:45.783199] sendSTAT:171 STAT: STMt > [13:17:46.784595] sendSTAT:171 STAT: STMt > [13:17:47.786087] sendSTAT:171 STAT: STMt > [13:17:48.780579] process:494 strm > [13:17:48.780722] process_strm:256 strm command t > [13:17:48.780767] sendSTAT:171 STAT: STMt > [13:17:49.782100] sendSTAT:171 STAT: STMt > [13:17:50.673259] _output_frames:146 track start sample rate: 44100 replay_gain: 0 > [13:17:50.783580] sendSTAT:171 STAT: STMs > [13:17:50.783818] sendSTAT:171 STAT: STMt -------------------- > > > > I'm not sure if this problem does only shows after some time, though. > > And this is how Squeezelite starts up: > > > Code: -------------------- > > [13:34:46.939090] stream_init:290 init stream > [13:34:46.939614] stream_init:291 streambuf size: 2097152 > [13:34:46.944686] output_init_alsa:817 init output > [13:34:46.944797] output_init_alsa:846 requested alsa_buffer: 120 alsa_period: 4 format: any mmap: 1 > [13:34:46.944924] output_init_common:346 outputbuf size: 3528000 > [13:34:46.945150] output_init_common:370 idle timeout: 0 > [13:34:46.954852] output_init_common:410 supported rates: 192000 176400 96000 88200 48000 44100 > [13:34:46.968757] output_init_alsa:862 memory locked > [13:34:46.969547] output_thread:638 open output device: hw:CARD=XMC1,DEV=0 > [13:34:46.969581] output_init_alsa:885 set output sched fifo rt: 45 > [13:34:46.969664] alsa_open:355 opening device at: 44100 > [13:34:46.971117] alsa_open:406 opened device hw:CARD=XMC1,DEV=0 using format: S24_3LE sample rate: 44100 mmap: 1 > [13:34:46.971359] alsa_open:485 buffer: 120 period: 4 -> buffer size: 5292 period size: 1323 > [13:34:46.973798] decode_init:129 init decode, include codecs: exclude codecs: > [13:34:46.974134] register_dsd:624 using dsd to decode dsf,dff > [13:34:47.023037] load_ff:621 loaded libavcodec.so.55 (55.39.101) > [13:34:47.023193] load_ff:638 loaded libavformat.so.55 (55.19.104) > [13:34:47.023254] load_ff:652 loaded libavutil.so.52 (52.48.101) > [13:34:47.030723] register_ff:731 using ffmpeg to decode alc > [13:34:47.030800] register_ff:715 using ffmpeg to decode wma,wmap,wmal > [13:34:47.033206] load_faad:592 dlerror: ld-linux.so.3: cannot open shared object file: No such file or directory > [13:34:47.035951] load_vorbis:300 loaded libvorbisfile.so.3 > [13:34:47.036019] register_vorbis:329 using vorbis to decode ogg > [13:34:47.038190] load_flac:258 loaded libFLAC.so.8 > [13:34:47.038258] register_flac:286 using flac to decode flc > [13:34:47.038289] register_pcm:384 using pcm to decode aif,pcm > [13:34:47.039099] load_mad:383 loaded libmad.so.0 > [13:34:47.039150] register_mad:412 using mad to decode mp3 > [13:34:47.040051] discover_server:756 sending discovery > [13:34:47.041235] discover_server:767 got response from: 192.168.0.40:3483 > [13:34:47.041500] slimproto:848 connecting to 192.168.0.40:3483 > [13:34:47.042860] slimproto:881 connected > [13:34:47.043049] sendHELO:124 mac: b8:27:eb:62:34:55 > [13:34:47.043093] sendHELO:126 cap: Model=squeezelite,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Firmware=v1.8,ModelName=SqueezeLite,MaxSampleRate=192000,dsf,dff,alc,wma,wmap,wmal,ogg,flc,aif,pcm,mp3 > [13:34:47.059118] process:494 strm > [13:34:47.059209] process_strm:256 strm command s > [13:34:47.059241] process_strm:325 strm s autostart: 1 transition period: 4 transition type: 0 codec: f > [13:34:47.059590] sendSTAT:171 STAT: STMf > [13:34:47.060072] codec_open:218 codec open: 'f' > [13:34:47.060207] stream_sock:384 connecting to 192.168.0.40:9000 > [13:34:47.061208] stream_sock:413 header: GET /stream.mp3?player=b8:27:eb:62:34:55 HTTP/1.0 > -------------------- > > > > Is there anything unusual in the above logs?
Hmmm I would try increasing the alsa buffer time dramatically Sent from my KFTT using Tapatalk ------------------------------------------------------------------------ pssc's Profile: http://forums.slimdevices.com/member.php?userid=5644 View this thread: http://forums.slimdevices.com/showthread.php?t=97046 _______________________________________________ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix