Thank you for your donation!


Solved: Sound form NAS is breaking up via WiFi connection
#23
(10-09-2018, 07:01 PM)Tim Curtis Wrote: Ok, that confirms that the audiofile codec library is being used and not ffmpeg.

Here is how to revert to moOde 4.2 MPD that only uses only the ffmpeg codec library.

1. cd ~
2. save existing moode 4.3 MPD
cp /usr/local/bin/mpd ./mpd-0.20.20-audiofile
3. download and unzip moOde 4.2 MPD
wget http://moodeaudio.org/test/mpd-0.20.20-ffmpeg.zip
unzip mpd-0.20.20-ffmpeg.zip
4. replace moOde 4.3 MPD with moOde 4.2 MPD
sudo mv mpd-0.20.20-ffmpeg /usr/local/bin/mpd
5. Verify that "[audiofile] wav au aiff aif" is not listed under the "Decoders plugins:" section
mpd -V
6. sudo systemctl restart mpd
7. Play a song file
8. Examine MPD log and verify that ffmpeg codec library is being used
9. Report whether audio glitches occur

Hi Tim,

Thank you very much for your kind support.
Audio glitches doesn't occur after modifying MPD.
Confirmed ffmpeg plugin is being used.

MPD log below;

Code:
Oct 10 08:25 : state_file: Saving state file /var/lib/mpd/state
Oct 10 08:25 : player: played "NAS/kitamura-music/Fabrizio Sotti Trio/Forty/01 Fabrizio Sotti - Redemption.aif"
Oct 10 08:25 : listen: listen_global_finish called
Oct 10 08:25 : state_file: Loading state file /var/lib/mpd/state
Oct 10 08:25 : decoder_thread: probing plugin ffmpeg
Oct 10 08:25 : ffmpeg: detected input format 'aiff' (Audio IFF)
Oct 10 08:25 : ffmpeg/aiff: id3v2 ver:3 flags:00 len:77740
Oct 10 08:25 : ffmpeg/aiff: Before avformat_find_stream_info() pos: 54 bytes read:85950 seeks:2 nb_streams:2
Oct 10 08:25 : client: [0] opened from 127.0.0.1:46534
Oct 10 08:25 : ffmpeg/mjpeg: marker=d8 avail_size_in_buf=77050
Oct 10 08:25 : ffmpeg/mjpeg: marker parser used 0 bytes (0 bits)
Oct 10 08:25 : ffmpeg/mjpeg: marker=e0 avail_size_in_buf=77048
Oct 10 08:25 : ffmpeg/mjpeg: marker parser used 16 bytes (128 bits)
Oct 10 08:25 : ffmpeg/mjpeg: marker=db avail_size_in_buf=77030
Oct 10 08:25 : ffmpeg/mjpeg: index=0
Oct 10 08:25 : ffmpeg/mjpeg: qscale[0]: 2
Oct 10 08:25 : ffmpeg/mjpeg: marker parser used 67 bytes (536 bits)
Oct 10 08:25 : ffmpeg/mjpeg: marker=db avail_size_in_buf=76961
Oct 10 08:25 : ffmpeg/mjpeg: index=1
Oct 10 08:25 : ffmpeg/mjpeg: qscale[1]: 4
Oct 10 08:25 : ffmpeg/mjpeg: marker parser used 67 bytes (536 bits)
Oct 10 08:25 : ffmpeg/mjpeg: marker=c0 avail_size_in_buf=76892
Oct 10 08:25 : ffmpeg/mjpeg: Changing bps from 0 to 8
Oct 10 08:25 : ffmpeg/mjpeg: sof0: picture: 800x799
Oct 10 08:25 : ffmpeg/mjpeg: component 0 2:2 id: 0 quant:0
Oct 10 08:25 : ffmpeg/mjpeg: component 1 1:1 id: 1 quant:1
Oct 10 08:25 : ffmpeg/mjpeg: component 2 1:1 id: 2 quant:1
Oct 10 08:25 : ffmpeg/mjpeg: pix fmt id 22111100
Oct 10 08:25 : ffmpeg/mjpeg: marker parser used 17 bytes (136 bits)
Oct 10 08:25 : ffmpeg/mjpeg: marker=c4 avail_size_in_buf=76873
Oct 10 08:25 : ffmpeg/mjpeg: marker parser used 0 bytes (0 bits)
Oct 10 08:25 : ffmpeg/mjpeg: marker=c4 avail_size_in_buf=76840
Oct 10 08:25 : ffmpeg/mjpeg: marker parser used 0 bytes (0 bits)
Oct 10 08:25 : ffmpeg/mjpeg: marker=c4 avail_size_in_buf=76657
Oct 10 08:25 : ffmpeg/mjpeg: marker parser used 0 bytes (0 bits)
Oct 10 08:25 : ffmpeg/mjpeg: marker=c4 avail_size_in_buf=76624
Oct 10 08:25 : ffmpeg/mjpeg: marker parser used 0 bytes (0 bits)
Oct 10 08:25 : ffmpeg/mjpeg: escaping removed 477 bytes
Oct 10 08:25 : ffmpeg/mjpeg: marker=da avail_size_in_buf=76441
Oct 10 08:25 : ffmpeg/mjpeg: marker parser used 0 bytes (0 bits)
Oct 10 08:25 : ffmpeg/mjpeg: marker=d9 avail_size_in_buf=0
Oct 10 08:25 : ffmpeg/mjpeg: decode frame unused 0 bytes
Oct 10 08:25 : client: [0] process command "close"
Oct 10 08:25 : client: [0] command returned 3
Oct 10 08:25 : client: [0] closed
Oct 10 08:25 : client: [1] opened from 127.0.0.1:46538
Oct 10 08:25 : ffmpeg/aiff: All info found
Oct 10 08:25 : ffmpeg/aiff: stream 0: start_time: 0.000 duration: 323.755
Oct 10 08:25 : ffmpeg/aiff: stream 1: start_time: 0.000 duration: 323.755
Oct 10 08:25 : ffmpeg/aiff: format: start_time: 0.000 duration: 323.755 bitrate=4609 kb/s
Oct 10 08:25 : ffmpeg/aiff: After avformat_find_stream_info() pos: 204654 bytes read:290750 seeks:2 frames:51
Oct 10 08:25 : ffmpeg: codec 'pcm_s24be'
Oct 10 08:25 : decoder: audio_format=96000:32:2, seekable=true
Oct 10 08:25 : client: [1] process command "close"
Oct 10 08:25 : client: [1] command returned 3
Oct 10 08:25 : client: [1] closed
Oct 10 08:25 : client: [2] opened from 127.0.0.1:46542
Oct 10 08:25 : client: [2] process command "close"
Oct 10 08:25 : client: [2] command returned 3
Oct 10 08:25 : client: [2] closed
Oct 10 08:25 : client: [3] opened from 127.0.0.1:46546
Oct 10 08:25 : client: [3] process command "status"
Oct 10 08:25 : client: [3] command returned 0
Oct 10 08:25 : client: [3] process command "currentsong"
Oct 10 08:25 : client: [3] command returned 0
Oct 10 08:25 : client: [3] process command "close"
Oct 10 08:25 : client: [3] command returned 3
Oct 10 08:25 : client: [3] closed
Oct 10 08:25 : client: [4] opened from 127.0.0.1:46550
Oct 10 08:25 : client: [4] process command "close"
Oct 10 08:25 : client: [4] command returned 3
Oct 10 08:25 : client: [4] closed
Oct 10 08:25 : client: [5] opened from 127.0.0.1:46554
Oct 10 08:25 : client: [5] process command "close"
Oct 10 08:25 : client: [5] command returned 3
Oct 10 08:25 : client: [5] closed
Oct 10 08:25 : client: [6] opened from 127.0.0.1:46558
Oct 10 08:25 : client: [7] opened from 127.0.0.1:46562
Oct 10 08:25 : client: [7] process command "status"
Oct 10 08:25 : client: [7] command returned 0
Oct 10 08:25 : client: [7] process command "currentsong"
Oct 10 08:25 : client: [7] command returned 0
Oct 10 08:25 : client: [7] process command "close"
Oct 10 08:25 : client: [7] command returned 3
Oct 10 08:25 : client: [7] closed
Oct 10 08:25 : client: [8] opened from 127.0.0.1:46566
Oct 10 08:25 : client: [9] opened from 127.0.0.1:46570
Oct 10 08:25 : client: [8] process command "lsinfo "RADIO""
Oct 10 08:25 : client: [8] command returned 0
Oct 10 08:25 : client: [6] process command "close"
Oct 10 08:25 : client: [6] command returned 3
Oct 10 08:25 : client: [6] closed
Oct 10 08:25 : client: [8] process command "close"
Oct 10 08:25 : client: [8] command returned 3
Oct 10 08:25 : client: [8] closed
Oct 10 08:25 : client: [9] process command "lsinfo"
Oct 10 08:25 : client: [9] command returned 0
Oct 10 08:25 : client: [9] process command "close"
Oct 10 08:25 : client: [9] command returned 3
Oct 10 08:25 : client: [9] closed
Oct 10 08:25 : client: [10] opened from 127.0.0.1:46574
Oct 10 08:25 : client: [10] process command "close"
Oct 10 08:25 : client: [10] command returned 3
Oct 10 08:25 : client: [10] closed
Oct 10 08:25 : client: [11] opened from 127.0.0.1:46578
Oct 10 08:25 : client: [12] opened from 127.0.0.1:46582
Oct 10 08:25 : client: [12] process command "status"
Oct 10 08:25 : client: [12] command returned 0
Oct 10 08:25 : client: [12] process command "idle"
Oct 10 08:25 : client: [12] command returned 1
Oct 10 08:25 : client: [11] process command "playlistinfo"
Oct 10 08:25 : client: [11] command returned 0
Oct 10 08:25 : client: [11] process command "close"
Oct 10 08:25 : client: [11] command returned 3
Oct 10 08:25 : client: [11] closed
Oct 10 08:25 : client: [13] opened from 127.0.0.1:46586
Oct 10 08:25 : client: [13] process command "stop"
Oct 10 08:25 : playlist: stop
Oct 10 08:25 : player: played "NAS/kitamura-music/Fabrizio Sotti Trio/Forty/01 Fabrizio Sotti - Redemption.aif"
Oct 10 08:25 : client: [13] command returned 0
Oct 10 08:25 : client: [12] process command "status"
Oct 10 08:25 : client: [12] command returned 0
Oct 10 08:25 : client: [12] process command "currentsong"
Oct 10 08:25 : client: [12] command returned 0
Oct 10 08:25 : client: [12] process command "close"
Oct 10 08:25 : client: [12] command returned 3
Oct 10 08:25 : client: [12] closed
Oct 10 08:25 : client: [14] opened from 127.0.0.1:46590
Oct 10 08:25 : client: [14] process command "close"
Oct 10 08:25 : client: [14] command returned 3
Oct 10 08:25 : client: [14] closed
Oct 10 08:25 : client: [15] opened from 127.0.0.1:46594
Oct 10 08:25 : client: [15] process command "status"
Oct 10 08:25 : client: [15] command returned 0
Oct 10 08:25 : client: [15] process command "idle"
Oct 10 08:25 : client: [15] command returned 1
Oct 10 08:25 : client: [13] process command "play 10"
Oct 10 08:25 : playlist: play 10:"NAS/kitamura-music/Fabrizio Sotti Trio/Forty/01 Fabrizio Sotti - Redemption.aif"
Oct 10 08:25 : client: [13] command returned 0
Oct 10 08:25 : client: [13] process command "close"
Oct 10 08:25 : client: [13] command returned 3
Oct 10 08:25 : client: [13] closed
Oct 10 08:25 : decoder_thread: probing plugin ffmpeg
Oct 10 08:25 : ffmpeg: detected input format 'aiff' (Audio IFF)
Oct 10 08:25 : ffmpeg/aiff: id3v2 ver:3 flags:00 len:77740
Oct 10 08:25 : ffmpeg/aiff: Before avformat_find_stream_info() pos: 54 bytes read:85950 seeks:2 nb_streams:2
Oct 10 08:25 : ffmpeg/mjpeg: marker=d8 avail_size_in_buf=77050
Oct 10 08:25 : ffmpeg/mjpeg: marker parser used 0 bytes (0 bits)
Oct 10 08:25 : ffmpeg/mjpeg: marker=e0 avail_size_in_buf=77048
Oct 10 08:25 : ffmpeg/mjpeg: marker parser used 16 bytes (128 bits)
Oct 10 08:25 : ffmpeg/mjpeg: marker=db avail_size_in_buf=77030
Oct 10 08:25 : ffmpeg/mjpeg: index=0
Oct 10 08:25 : ffmpeg/mjpeg: qscale[0]: 2
Oct 10 08:25 : ffmpeg/mjpeg: marker parser used 67 bytes (536 bits)
Oct 10 08:25 : ffmpeg/mjpeg: marker=db avail_size_in_buf=76961
Oct 10 08:25 : ffmpeg/mjpeg: index=1
Oct 10 08:25 : ffmpeg/mjpeg: qscale[1]: 4
Oct 10 08:25 : ffmpeg/mjpeg: marker parser used 67 bytes (536 bits)
Oct 10 08:25 : ffmpeg/mjpeg: marker=c0 avail_size_in_buf=76892
Oct 10 08:25 : ffmpeg/mjpeg: Changing bps from 0 to 8
Oct 10 08:25 : ffmpeg/mjpeg: sof0: picture: 800x799
Oct 10 08:25 : ffmpeg/mjpeg: component 0 2:2 id: 0 quant:0
Oct 10 08:25 : ffmpeg/mjpeg: component 1 1:1 id: 1 quant:1
Oct 10 08:25 : ffmpeg/mjpeg: component 2 1:1 id: 2 quant:1
Oct 10 08:25 : ffmpeg/mjpeg: pix fmt id 22111100
Oct 10 08:25 : ffmpeg/mjpeg: marker parser used 17 bytes (136 bits)
Oct 10 08:25 : ffmpeg/mjpeg: marker=c4 avail_size_in_buf=76873
Oct 10 08:25 : ffmpeg/mjpeg: marker parser used 0 bytes (0 bits)
Oct 10 08:25 : ffmpeg/mjpeg: marker=c4 avail_size_in_buf=76840
Oct 10 08:25 : ffmpeg/mjpeg: marker parser used 0 bytes (0 bits)
Oct 10 08:25 : ffmpeg/mjpeg: marker=c4 avail_size_in_buf=76657
Oct 10 08:25 : ffmpeg/mjpeg: marker parser used 0 bytes (0 bits)
Oct 10 08:25 : ffmpeg/mjpeg: marker=c4 avail_size_in_buf=76624
Oct 10 08:25 : ffmpeg/mjpeg: marker parser used 0 bytes (0 bits)
Oct 10 08:25 : ffmpeg/mjpeg: escaping removed 477 bytes
Oct 10 08:25 : ffmpeg/mjpeg: marker=da avail_size_in_buf=76441
Oct 10 08:25 : ffmpeg/mjpeg: marker parser used 0 bytes (0 bits)
Oct 10 08:25 : ffmpeg/mjpeg: marker=d9 avail_size_in_buf=0
Oct 10 08:25 : ffmpeg/mjpeg: decode frame unused 0 bytes
Oct 10 08:25 : ffmpeg/aiff: All info found
Oct 10 08:25 : ffmpeg/aiff: stream 0: start_time: 0.000 duration: 323.755
Oct 10 08:25 : ffmpeg/aiff: stream 1: start_time: 0.000 duration: 323.755
Oct 10 08:25 : ffmpeg/aiff: format: start_time: 0.000 duration: 323.755 bitrate=4609 kb/s
Oct 10 08:25 : ffmpeg/aiff: After avformat_find_stream_info() pos: 204654 bytes read:290750 seeks:2 frames:51
Oct 10 08:25 : ffmpeg: codec 'pcm_s24be'
Oct 10 08:25 : decoder: audio_format=96000:32:2, seekable=true
Oct 10 08:25 : client: [15] process command "status"
Oct 10 08:25 : alsa_output: opened hw:0,0 type=HW
Oct 10 08:25 : alsa_output: buffer: size=64..65536 time=666..682667
Oct 10 08:25 : alsa_output: period: size=32..32768 time=333..341334
Oct 10 08:25 : alsa_output: default period_time = buffer_time/4 = 500000/4 = 125000
Oct 10 08:25 : alsa_output: format=S32_LE (Signed 32 bit Little Endian)
Oct 10 08:25 : alsa_output: buffer_size=48000 period_size=12000
Oct 10 08:25 : output: opened plugin=alsa name="ALSA default" audio_format=96000:32:2
Oct 10 08:25 : client: [15] command returned 0
Oct 10 08:25 : client: [15] process command "currentsong"
Oct 10 08:25 : client: [15] command returned 0
Oct 10 08:25 : client: [15] process command "close"
Oct 10 08:25 : client: [15] command returned 3
Oct 10 08:25 : client: [15] closed
Oct 10 08:25 : client: [16] opened from 127.0.0.1:46598
Oct 10 08:25 : client: [16] process command "close"
Oct 10 08:25 : client: [16] command returned 3
Oct 10 08:25 : client: [16] closed
Oct 10 08:25 : client: [17] opened from 127.0.0.1:46602
Oct 10 08:25 : client: [17] process command "status"
Oct 10 08:25 : client: [17] command returned 0
Oct 10 08:25 : client: [17] process command "idle"
Oct 10 08:25 : client: [17] command returned 1
Oct 10 08:25 : client: [18] opened from 127.0.0.1:46606
Oct 10 08:25 : client: [18] process command "close"
Oct 10 08:25 : client: [18] command returned 3
Oct 10 08:25 : client: [18] closed
Oct 10 08:25 : state_file: Saving state file /var/lib/mpd/state
Oct 10 08:31 : player: played "NAS/kitamura-music/Fabrizio Sotti Trio/Forty/01 Fabrizio Sotti - Redemption.aif"
Oct 10 08:31 : playlist: stop
Oct 10 08:31 : output: closed plugin=alsa name="ALSA default"
Oct 10 08:31 : client: [17] process command "status"
Oct 10 08:31 : client: [17] command returned 0
Oct 10 08:31 : client: [17] process command "currentsong"
Oct 10 08:31 : client: [17] command returned 0
Oct 10 08:31 : client: [17] process command "close"
Oct 10 08:31 : client: [17] command returned 3
Oct 10 08:31 : client: [17] closed
Oct 10 08:31 : client: [19] opened from 127.0.0.1:46618
Oct 10 08:31 : client: [19] process command "close"
Oct 10 08:31 : client: [19] command returned 3
Oct 10 08:31 : client: [19] closed
Oct 10 08:31 : client: [20] opened from 127.0.0.1:46622
Oct 10 08:31 : client: [20] process command "playlistinfo"
Oct 10 08:31 : client: [20] command returned 0
Oct 10 08:31 : client: [20] process command "close"
Oct 10 08:31 : client: [20] command returned 3
Oct 10 08:31 : client: [20] closed
Oct 10 08:31 : client: [21] opened from 127.0.0.1:46626
Oct 10 08:31 : client: [21] process command "status"
Oct 10 08:31 : client: [21] command returned 0
Oct 10 08:31 : client: [21] process command "idle"
Oct 10 08:31 : client: [21] command returned 1
Oct 10 08:31 : state_file: Saving state file /var/lib/mpd/state

Thanks, Tim, you're Superman. And also thanks for your advices, Swizzle, and Kent.
kitamura_design
Reply


Messages In This Thread
RE: Sound form NAS is breaking up via WiFi connection - by kitamura_design - 10-09-2018, 11:39 PM

Forum Jump: