ralphy wrote:
> Another thing that might give some insite is increasing the
> outputThreshold for aac on the server side.
>
> >
Code:
--------------------
> > diff --git a/Slim/Player/Squeezebox.pm b/Slim/Player/Squeezebox.pm
> index fa2eb1669..78a999625 100644
> --- a/Slim/Player/Squeezebox.pm
> +++ b/Slim/Player/Squeezebox.pm
> @@ -710,7 +710,7 @@ sub stream_s {
> $pcmsamplerate = '?';
> $pcmendian = '?';
> $pcmchannels = '?';
> - $outputThreshold = 0;
> + $outputThreshold = 50;
>
> } elsif ($format eq 'dff' || $format eq 'dsf') {
>
>
--------------------
> >
> I'll look at setting up my own 320@48K aac stream to see if I can work
> out how best to handle it.
I've been able to reproduce the problem on the radio using my own
320@48K stream, as well as running squeezeplay on my linux system which
is way faster than the radio.
Setting outputThreshold to 50 for aac on the server, is too high, 20
gives a much shorter delay before playback starts for the first time,
but long enough to prevent the AUDIO OUTPUT underrun.
If you can try the server side change to confirm/debunk my findings
would be very helpful. I highlighted the threshold value in the log.
Code:
--------------------
20210226 15:27:53.022 INFO audio.decode - decode_start_handler:277 init
decoder aac
20210226 15:27:53.022 DEBUG audio.decode - decode_output_set_track_gain:520
Track gain 36864
20210226 15:27:53.022 DEBUG audio.decode - decode_output_set_track_gain:524
Track clip range 7fffffff 80000000
20210226 15:27:53.023 DEBUG audio.decode -
decode_set_track_polarity_inversion:529 Polarity inversion 0
20210226 15:27:53.023 DEBUG audio.decode - decode_set_output_channels:537
Output channels left 0, right 0
20210226 15:27:53.023 DEBUG audio.codec - decode_aac_start:299
decode_aac_start(2)
20210226 15:27:53.022 INFO audio.decode - Playback.lua:480 connect
192.168.100.22:9102 GET /94.9/S16_LE/48000/2/A HTTP/1.0
20210226 15:27:53.023 INFO audio.decode - Playback.lua:483 GET
/94.9/S16_LE/48000/2/A HTTP/1.0
20210226 15:27:53.023 DEBUG audio.decode - Playback.lua:194 source=stream
20210226 15:27:53.023 DEBUG audio.decode - stream_connectL:506 streambuf
connect 192.168.100.22:9102
20210226 15:27:53.023 DEBUG audio.decode - Playback.lua:1265 stopping local
pause timer
20210226 15:27:53.023 DEBUG audio.decode - Playback.lua:1195 gainL, gainR:
1729 1729
20210226 15:27:53.074 DEBUG audio.decode - Playback.lua:1040 cont loop=0
icy=0
20210226 15:27:54.345 DEBUG audio.decode - Playback.lua:397 resume decoder,
8192 bytes buffered, decode threshold 2048
20210226 15:27:54.345 DEBUG audio.decode - decode_resume_decoder:577
decode_resume_decoder
20210226 15:27:54.345 DEBUG audio.decode - decode_resume_decoder_handler:118
resume_decoder decode state: 1 audio state 0
20210226 15:27:54.345 DEBUG audio.decode - debug_fullness:108 fullness: 8192
/ 0 | 0.26% / 0.00%
20210226 15:27:54.345 DEBUG audio.codec - decode_aac_init_heaac:73 FDK-AAC
20210226 15:27:54.345 DEBUG audio.codec - decode_aac_callback_heaac:178
MPEG-4 AOT: 2
20210226 15:27:54.345 DEBUG audio.codec - decode_aac_callback_heaac:179
MPEG-2 Profile: 1
20210226 15:27:54.345 DEBUG audio.codec - decode_aac_callback_heaac:180
Sample rate: 48000
20210226 15:27:54.345 DEBUG audio.codec - decode_aac_callback_heaac:181
Channels: 2
20210226 15:27:54.345 DEBUG audio.codec - decode_aac_callback_heaac:182
Frame size: 1024
20210226 15:27:54.345 DEBUG audio.decode - decode_output_samples:280 first
buffer sample_rate=48000
20210226 15:27:54.439 DEBUG audio.decode - Playback.lua:451 0.0%/0.5%
20210226 15:27:55.516 DEBUG audio.decode - Playback.lua:451 0.1%/3.9%
20210226 15:27:56.639 DEBUG audio.decode - Playback.lua:451 0.1%/16.3%
20210226 15:27:57.718 DEBUG audio.decode - Playback.lua:451 0.0%/28.3%
20210226 15:27:58.845 DEBUG audio.decode - Playback.lua:451 0.0%/40.6%
20210226 15:27:59.431 DEBUG audio.decode - Playback.lua:424 resume audio
bytesReceivedL=208896 outputTime=4352 *threshold=204800*
20210226 15:27:59.431 DEBUG audio.decode - decode_resume_audio:598
decode_resume_audio start_jiffies=0
20210226 15:27:59.431 DEBUG audio.decode - decode_resume_audio_handler:129
decode_resume_audio_handler start_jiffies=0
20210226 15:27:59.431 DEBUG audio.decode - debug_fullness:108 fullness: 0 /
1671168 | 0.00% / 47.37%
20210226 15:27:59.431 DEBUG audio.decode - decode_resume_audio_handler:142
resume_audio decode state: 1 audio state 40
20210226 15:27:59.521 DEBUG audio.decode - Playback.lua:381 status TRACK
STARTED (elapsed: 5)
20210226 15:28:00.644 DEBUG audio.decode - Playback.lua:451 0.1%/46.3%
20210226 15:28:01.725 DEBUG audio.decode - Playback.lua:451 0.1%/46.9%
20210226 15:28:02.805 DEBUG audio.decode - Playback.lua:451 0.0%/47.3%
20210226 15:28:03.840 DEBUG audio.decode - Playback.lua:451 0.0%/47.3%
20210226 15:28:04.920 DEBUG audio.decode - Playback.lua:451 0.1%/46.5%
--------------------
Ralphy
*1*-Touch, *5*-Classics, *3*-Booms, *2*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.
------------------------------------------------------------------------
ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=113479
_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins