Daphile - Audiophile Music Server & Player OS

How do I copy the music file from my external USB drive to my internal drive? Ive tried cut and paste in the file manager, but again, I must be doing it wrong.
If the drives are shared and visible in Windows Explorer or Finder (assuming Windows or Mac), it may be easier to do it externally, rather than from the Daphile webUI. I've found it easier and have done plenty of it.
 
Anyone know of a good plugin for finding album art ? I saw the plugin "FindArt" but it doesn't seem to supported anymore.
Sometimes, Daphile can't find any album art so I do it manually.
I search (Google) and try to find a JPG image at least 500 x 500 pixels. If bigger, I use MS Paint to resize. If too higher a resolution, that is, file size too large, I reduce the DPI count to get a reasonable file size. Remember, the image files are transmitted to the phone or tablet you are using as a controller, so the smaller the better. The image is placed in the album folder.

I then open the album in MP3Tag, Control-A to select all songs, right-click on the album image box on the lower left, select Add Cover, add the jpg, and then click on the Save icon on the far left of the icon menu bar. Saving takes longer than with text edits or additions. You may have to go Info on the Daphile webUI and select Rescan for it to appear.
 
Hello! :)

I just have installed the latest Daphile 16.07-i486 on my old thin client PC.

It is an old VIA C7 motherboard with 1GB RAM and a 2GB solid state IDE drive.

It has an integrated sound chip that I have disabled in Daphile settings.



Daphile output is set to my m2tech HiFace 2 USB to SPDIF converter.

Everything looks fine when I hit the "Play" button, all the songs seem to be playing just fine (the counter is counting time, etc), but there is no signal going from my HiFace 2 to my DAC.

The same HiFace works just fine wih my MacMini.

What could be the problem?

I am no Linux expert! :(



This is what "audioinfo.cgi" says regarding my USB device:

Card #2: M2Tech USB Audio 2.0
* Serial: 0000
* Driver: snd-usb-audio
* USB BUS: 003/003
* USB driver: uhci_hcd
* Device ID: 249c:930c
* IRQ: 21 (PRY:80)
* Mixer controls: none
* Device #0 (enabled): USB Audio
* * Player process: squeezelite (PID:3409)
* * Rates: 44100 48000 88200 96000
* * Format: S24_3LE
* * Settings:
* * * softvol_mode: bitperfect
* * * softvol_init_value: 50
* * * usedop: off
* * * ratelimit: 0
* * * volctrl: 'sw'
* * * decode: true
* * * lms_ds: false
* * * resample: exception
* * * resample_steep: false
* * * resample_quality: veryhigh
* * * resample_phase: minimum
* * * resample_attenuate: 1
* * * rcdelay: 0
* * * stream_buffer: 3072
* * * output_buffer: 4096
* * * pcm2dsd_rate: 2822400
* * * pcm2dsd_nsfilt: sdm-4
* * * cf_bypass_gain: 0.0
* * * buffertime: 100
* * * periodcount: 3
* * * period_eq_bfpart: true



Some lines from the Squeezelite log (the same lines are just repeating over and over again):

[01:16:55.218656] output_thread:716 open output device: hw:2,0
[01:16:55.218856] alsa_open:389 opening device at: 44100
[01:16:55.219390] alsa_open:460 opened device hw:2,0 using format: S24_3LE sample rate: 44100 mmap: 1
[01:16:55.219487] alsa_open:551 buffer: 100 period: 3 -> buffer size: 4410 period size: 1470
[01:16:55.221169] alsa_open:568 unable to set hw params: Input/output error


Please help! :)
 
It works now! :)

The problem was in my active extension cable with USB repeater.

I was using it because my MacMini is away from my hifi equipment rack.

When I moved my Daphile PC close to my DAC and plugged the HiFace directly*without the active extension cable,*it started working.

I never thought that this could be the problem, since HiFace works perfectly connected to my Mini with that cable.
 
Try the latest beta (Index of /firmware/beta) which is based on the latest Linux releases and has improved USB support.

Good evening,

as you suggested I was able to try the latest beta but the problem is still there... Each time I switch from HD to SD the audio mutes. I can paste the log file if can be of some help in more understanding:

/usr/bin/squeezelite -b 3072:4096 -R -u vME:::28 -m 5a:7e:48:cc:be:46 -c pcm,dsd,flac,mp3,ogg -r 44100,48000,88200,96000,176400,192000,352800 -D 0:u32be -d all=info -f /run/spacd/c/1/l/0/squeezelite.log -N /mnt/hdd/system/spac/PM7005/device0/squeezelite.name -M Daphile:17.03-b051206 -s 127.0.0.1 -o hw:1,0 -a 100:3:32:1:0 -p 45
[22:20:20.148399] stream_init:290 init stream
[22:20:20.150989] output_init_alsa:1030 init output
[22:20:20.151057] output_init_alsa:1069 requested alsa_buffer: 100 alsa_period: 3 format: 32 mmap: 1
[22:20:20.151166] output_init_common:410 supported rates: 352800 192000 176400 96000 88200 48000 44100
[22:20:20.169752] output_init_alsa:1091 memory locked
[22:20:20.170020] decode_init:152 init decode, include codecs: pcm,dsd,flac,mp3,ogg exclude codecs:
[22:20:20.170139] register_dsd:905 using dsd to decode dsf,dff
[22:20:20.206457] load_vorbis:300 loaded libvorbisfile.so.3
[22:20:20.206505] register_vorbis:329 using vorbis to decode ogg
[22:20:20.208277] output_thread:758 open output device: hw:1,0
[22:20:20.208325] alsa_open:431 opening device at: 44100
[22:20:20.208640] alsa_open:502 opened device hw:1,0 using format: S32_LE sample rate: 44100 mmap: 1
[22:20:20.208713] alsa_open:593 buffer: 100 period: 3 -> buffer size: 4410 period size: 1470
[22:20:20.240103] load_flac:266 loaded libFLAC.so.8
[22:20:20.240151] register_flac:294 using flac to decode flc
[22:20:20.240174] register_pcm:468 using pcm to decode aif,pcm
[22:20:20.256570] load_mad:383 loaded libmad.so.0
[22:20:20.256619] register_mad:412 using mad to decode mp3
[22:20:20.296179] load_soxr:268 loaded libsoxr.so.0
[22:20:20.296233] resample_init:361 resampling sync recipe: 0x36, flags: 0x00, scale: 0.89, precision: 28.0, passband_end: 0.00000, stopband_begin: 0.00000, phase_response: -1.0
[22:20:20.296331] slimproto:905 retrieved name PM7005 from /mnt/hdd/system/spac/PM7005/device0/squeezelite.name
[22:20:20.352559] slimproto:930 connecting to 127.0.0.1:3483
[22:20:20.353714] slimproto:964 connected
[22:20:20.354251] slimproto:970 JSON/RPC port: 9000
[22:20:20.354294] slimproto:979 local player
[22:20:20.354316] sendHELO:127 mac: 5a:7e:48:cc:be:46
[22:20:20.354336] sendHELO:129 cap: Model=daphile,AccuratePlayPoints=1,HasDigitalOut=1,HasPolarityInversion=1,Firmware=v1.8+ (Daphile),Firmware=17.03-b051206,ModelName=Daphile,MaxSampleRate=352800,wav,aif,pcm,dsf,dff,flc,mp3,ogg,loc
[22:20:20.756054] decode_flush:224 decode flush
[22:20:20.756108] output_flush:423 flush output buffer
[22:20:20.756863] decode_flush:224 decode flush
[22:20:20.756902] output_flush:423 flush output buffer
[22:21:36.592633] decode_flush:224 decode flush
[22:21:36.592702] output_flush:423 flush output buffer
[22:21:36.659359] codec_open:252 codec open: 'p'
[22:21:36.659427] pcm_open:449 pcm size: 16 rate: 705600 chan: 15 bigendian: 0
[22:21:36.659471] stream_sock:384 connecting to 127.0.0.1:9000
[22:21:36.659672] stream_sock:413 header: GET /stream.mp3?player=5a:7e:48:cc:be:46 HTTP/1.0


[22:21:36.707091] stream_thread:176 headers: len: 117
HTTP/1.1 200 OK
Server: Logitech Media Server (7.9.0 - git095dd88)
Connection: close
Content-Type: audio/x-wav


[22:21:38.344211] _check_header:77 WAVE
[22:21:38.344385] _check_header:101 header: fmt len: 40
[22:21:38.344414] _check_header:134 pcm size: 3 rate: 96000 chan: 2 bigendian: 0
[22:21:38.344435] _check_header:101 header: fact len: 4
[22:21:38.344454] _check_header:101 header: data len: 107627520
[22:21:38.344472] _check_header:111 audio size: 107627520
[22:21:38.344491] pcm_decode:203 setting track_start
[22:21:38.344512] resample_newstream:231 disable resampling - rates match
[22:21:38.344536] process_newstream:123 processing: inactive
[22:21:38.354952] _output_frames:61 start buffer frames: 139250
[22:21:38.355012] _output_frames:146 track start sample rate: 96000 replay_gain: 0
[22:21:38.365063] output_thread:758 open output device: hw:1,0
[22:21:38.369771] alsa_open:431 opening device at: 96000
[22:21:38.370195] alsa_open:502 opened device hw:1,0 using format: S32_LE sample rate: 96000 mmap: 1
[22:21:38.370265] alsa_open:593 buffer: 100 period: 3 -> buffer size: 9600 period size: 3200
[22:21:43.197702] decode_flush:224 decode flush
[22:21:43.197758] output_flush:423 flush output buffer
[22:21:43.261370] codec_open:252 codec open: 'p'
[22:21:43.261420] pcm_open:449 pcm size: 16 rate: 705600 chan: 15 bigendian: 0
[22:21:43.261463] stream_sock:384 connecting to 127.0.0.1:9000
[22:21:43.261616] stream_sock:413 header: GET /stream.mp3?player=5a:7e:48:cc:be:46 HTTP/1.0


[22:21:43.324636] stream_thread:176 headers: len: 117
HTTP/1.1 200 OK
Server: Logitech Media Server (7.9.0 - git095dd88)
Connection: close
Content-Type: audio/x-wav


[22:21:43.629302] _check_header:77 WAVE
[22:21:43.629358] _check_header:101 header: fmt len: 16
[22:21:43.629380] _check_header:134 pcm size: 2 rate: 44100 chan: 2 bigendian: 0
[22:21:43.629401] _check_header:101 header: data len: 48088992
[22:21:43.629425] _check_header:111 audio size: 48088992
[22:21:43.629445] pcm_decode:203 setting track_start
[22:21:43.629465] resample_newstream:231 disable resampling - rates match
[22:21:43.629483] process_newstream:123 processing: inactive
[22:21:43.648211] _output_frames:61 start buffer frames: 339957
[22:21:43.648286] _output_frames:146 track start sample rate: 44100 replay_gain: 0
[22:21:43.658347] output_thread:758 open output device: hw:1,0
[22:21:43.663101] alsa_open:431 opening device at: 44100
[22:21:43.663498] alsa_open:502 opened device hw:1,0 using format: S32_LE sample rate: 44100 mmap: 1
[22:21:43.663563] alsa_open:593 buffer: 100 period: 3 -> buffer size: 4410 period size: 1470
[22:21:50.180773] decode_flush:224 decode flush
[22:21:50.180851] output_flush:423 flush output buffer
[22:21:50.228032] codec_open:252 codec open: 'p'
[22:21:50.228086] pcm_open:449 pcm size: 16 rate: 705600 chan: 15 bigendian: 0
[22:21:50.228128] stream_sock:384 connecting to 127.0.0.1:9000
[22:21:50.228276] stream_sock:413 header: GET /stream.mp3?player=5a:7e:48:cc:be:46 HTTP/1.0


[22:21:50.266295] stream_thread:176 headers: len: 117
HTTP/1.1 200 OK
Server: Logitech Media Server (7.9.0 - git095dd88)
Connection: close
Content-Type: audio/x-wav

Many thanks,
Giuseppe.
 
Last edited:
@bebsx

I just tried switching from 24/96000 to 16/41000 and vice versa and had no such issues. But I am upsampling to dsd256 to my ifi nano idsd. I also tried output with no upsampling and still no issues.

Could be a timing issue with the DAC. Other players may be slower than Daphile in doing the transition and therefore it is not an issue. Have you tried changing the 'sample rate change' parameter on the advanced audio devices tab
 
Could be a timing issue with the DAC. Other players may be slower than Daphile in doing the transition and therefore it is not an issue. Have you tried changing the 'sample rate change' parameter on the advanced audio devices tab

Hi, and thanks for the suggestions :)

I tried to delay the sample rate change with the parameter you indicated me and I had no success. The player mutes and the only way to have sound from the speakers is to switch on/off the player through the LMS web interface (there is no similar option in the daphile interface).

When I upsample the file to a sample rate of 192, no sound comes out...at all. Only if I upsample to the max async frequency, both files are played without any issue:

[Decode] -F flc-wav-daphile-* -m 5a-7e-48-cc-be-46 -p daphile -f wav /srv/mediaserver/music/Internal Drives/Music/HD/John Lennon/Imagine (96,24) (1971)/John Lennon - Imagine - 01 - Imagine.flac
Clock: 21:57:40.753
Source: Music Folder/Internal Drives/Music/HD/John Lennon/Imagine (96,24) (1971)/John Lennon - Imagine - 01 - Imagine.flac
Input format: FLAC, 96kHz, 24bits
SoX effects: [gain -1]->[rate -vMn 192000]
Output format: WAV (S32LE), 192kHz, 32bits
Stream interrupted.
Exit status: 0
[Decode] -F flc-wav-daphile-* -m 5a-7e-48-cc-be-46 -p daphile -f wav /srv/mediaserver/music/Internal Drives/Music/SD/James Taylor/The Best of James Taylor (2003)/James Taylor - The Best of James Taylor - 04 - Country Road.flac
Clock: 21:57:46.857
Source: Music Folder/Internal Drives/Music/SD/James Taylor/The Best of James Taylor (2003)/James Taylor - The Best of James Taylor - 04 - Country Road.flac
Input format: FLAC, 44.1kHz, 16bits
SoX effects: [gain -1]->[rate -vMn 176400]
Output format: WAV (S32LE), 176.4kHz, 32bits

This last one could be an option, even if I would be curious to know where the problem lies...

Many thanks,
Giuseppe.
 
Member
Joined 2000
Paid Member
hi all
it seems ( A novel way to massively improve the SQ of the sMS-200 and microRendu ) that client- server direct connection dramatically improves sound quality.
Is anyone here able to suggest how to implement a Daphile two machines server-client direct connection?
Thanks in advance

Marco

Like components in networking cannot connect to each other unless a crossover Ethernet cable is used. That is, computer to computer, switch to switch or server to server require a crossover cable. Switch to switch conns have, most of the time, a manual or automatic flipping (MDX/MDI) of pins on ports.

If you throw in a third component like a NAS, you're SOL. Your Rendu, NAS and computer will need two Ethernet ports each. Rendu only has one port. Correction: You could do two ports on computer: one to nas and one to rendu. use wireless to internet/router/modem.

Switches are also repeaters. So the bits coming in 1 port are regenerated and strengthened signal wise and sent out only 1 port, the port that connects to the destination. There's some error checking, depending on the switch type, some tweaking is possible. It's best to let the end points handle error checking. Isn't streaming UDP anyway? Maybe that's broadcast streaming...anyway.

If you do what Julf said, it takes care of all your issues in one box.

Vince
 
Last edited:
there is abundant literature about this topic..main reason is splitting workload, leaving the hard work to server and let client-player working smoothly.
I'm running my own Daphile system in the same machine at the moment.

But my question was how and not why
Thanks

Marco

Ask directly from an email on the daphile site, the guy is very helpfull

he will tell where the changes have to be made

1. disabling LMS server on client pc
2. redirect the player to the host machine

maybe ask him to release a version with that options selectable from menu..

(but i think daphile don't Worth)
do you tried tinysqueeeze?
 
Tell us more! Noisy in what way?



OS/360?

when im not playing anything i can hear a lot of noises from daphile (through spdif out of the computer) that i don't hear with the other os(w10)!

i use a squeezebox touch as a server now(ethernet connection to transporter)! and a transporter conectected to the dac with bnc

both devices on second hand cost me around 600$
 
Last edited:
when im not playing anything i can hear a lot of noises from daphile (through spdif out of the computer) that i don't hear with the other os(w10)!

Coaxial or optical? What kind of noise? What kind of DAC?

In my experience Linux behaves far better from a stochastic perspective than Windows. The problem with Windows is that the user interface / windowing system is integrated deep in the OS kernel, and can interrupt other system processes.
 
Coaxial or optical? What kind of noise? What kind of DAC?

In my experience Linux behaves far better from a stochastic perspective than Windows. The problem with Windows is that the user interface / windowing system is integrated deep in the OS kernel, and can interrupt other system processes.

alc888 both coaxial and OPTICAL!!!!! mostly sata noise and some others....
i use lstb version (and only as ethernet music server)...tweaked obviously!)
the sound is better than all other os (i tried everything)
every os sounds different! (i don't know why)
the only one linux thats not too bad is fedolight (very nice timbre)

linux has crap drivers!!!!