Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Cannot play flac 96\24 files
#1
I have a raspberry pi 3B+ with HiFiBerry DAC+ Pro running the latest release of Moode.

I can get regular files to play, but not high-res flax files.

Here is the Audio Info details from the Moode interface. Any ideas?

Charlie


INPUT PROCESSING
Source: 
USB/MUSIC/Cuarteto Casals/Schubert - String Quartets D/._02 - String Quartet No.10 in E flat Major Op.125 - II. Scherzo. Prestissimo.flac
Encoded at: 
bit, kHz, , FLAC
Decoded to: 
0 bps

DSP OPERATIONS
Resampling: 
off
Crossfeed: 
off
Equalizer: 
Graphic EQ: (off), Parametric EQ: (off}
Crossfade: 
0 seconds
Other: 
Volume normalize (no}, Replaygain (off)
Chip options: 
FIR interpolation with de-emphasis, gain=0 dB, boost=0 dB
Volume ctl: 
Disabled (100% volume level is output by MPD)

OUTPUT STREAM
Destination: 
Local
Encoded at: 
0 bps

AUDIO DEVICE
Device: 
HiFiBerry DAC+ Pro
Chip: 
Burr Brown PCM5122
Interface: 
I2S
Reply
#2
What does the MPD log show when you try to play the file?

Code:
cat /var/log/mpd/log
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
So I just downloaded a sample Sony 96/24 FLAC file and played it on moOde r4.4 through a HiFiBerry DAC+ Pro:

Code:
Audio Information
INPUT PROCESSING
Source:     SDCARD/KARtest/Sample_BeeMoved_96kHz24bit.flac
Encoded at:     24 bit, 96 kHz, Stereo, FLAC
Decoded to:     24 bit, 96 kHz, Stereo, 3.159 mbps
DSP OPERATIONS
Resampling:     off
Crossfeed:     off
Equalizer:     Graphic EQ: (off), Parametric EQ: (off}
Crossfade:     0 seconds
Other:     Volume normalize (no}, Replaygain (off)
Chip options:     FIR interpolation with de-emphasis, gain=0 dB, boost=0 dB
Volume ctl:     Software (MPD 32-bit float with dither)
OUTPUT STREAM
Destination:     Local
Encoded at:     24 bit, 96 kHz, Stereo, 4.608 mbps
AUDIO DEVICE
Device:     HiFiBerry DAC+ Pro
Chip:     Burr Brown PCM5122
Interface:     I2S

I'm wondering about your file. Can you play it through something else such as VLC? 

Here's what mediainfo says about mine:

Code:
pi@moodeLR:~ $ mediainfo Sample*
General
Complete name                            : Sample_BeeMoved_96kHz24bit.flac
Format                                   : FLAC
Format/Info                              : Free Lossless Audio Codec
File size                                : 15.9 MiB
Duration                                 : 39 s 876 ms
Overall bit rate mode                    : Variable
Overall bit rate                         : 3 341 kb/s
Album                                    : Bee Moved
Album/Performer                          : Blue Monday FM
Track name                               : Bee Moved
Performer                                : Blue Monday FM
Cover                                    : Yes
Cover description                        : image/jpeg
Cover type                               : Cover (front)
Cover MIME                               : image/jpeg
MRAT                                     : 0

Audio
Format                                   : FLAC
Format/Info                              : Free Lossless Audio Codec
Duration                                 : 39 s 876 ms
Bit rate mode                            : Variable
Bit rate                                 : 3 329 kb/s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 96.0 kHz
Bit depth                                : 24 bits
Stream size                              : 15.8 MiB (100%)
Writing library                          : libFLAC 20080709 (UTC 2008-07-09)


Regards,
Kent
Reply
#4
Here is the output from the MPD log:

Dec 11 13:15 : flac: FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC
Dec 11 13:15 : ffmpeg/flac: Could not find codec parameters for stream 0 (Audio: flac, 0 channels): unspecified sample format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Dec 11 13:15 : ffmpeg: Unsupported libavcodec SampleFormat value: name   depth (-1)
Dec 11 13:15 : exception: Failed to decode USB/MUSIC/Cuarteto Casals/Schubert - String Quartets D/._01 - String Quartet No.10 in E flat Major Op.125 - I. Allegro moderato.flac
Dec 11 13:15 : player: played "USB/MUSIC/Cuarteto Casals/Schubert - String Quartets D/._01 - String Quartet No.10 in E flat Major Op.125 - I. Allegro moderato.flac"
Dec 11 13:15 : flac: FLAC__STREAM_DECODER_ERROR_STATUS_LOST_SYNC
Dec 11 13:15 : ffmpeg/flac: Could not find codec parameters for stream 0 (Audio: flac, 0 channels): unspecified sample format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Dec 11 13:15 : ffmpeg: Unsupported libavcodec SampleFormat value: name   depth (-1)
Dec 11 13:15 : exception: Failed to decode USB/MUSIC/Cuarteto Casals/Schubert - String Quartets D/._01 - String Quartet No.10 in E flat Major Op.125 - I. Allegro moderato.flac
Dec 11 13:15 : player: played "USB/MUSIC/Cuarteto Casals/Schubert - String Quartets D/._01 - String Quartet No.10 in E flat Major Op.125 - I. Allegro moderato.flac"
Reply
#5
Zip up a couple of the files that are generating the errors in the MPD log and email me a download link. I'll see if I can repro.

-Tim
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#6
Excuse my ignorance, but how do I email you a download link?
Reply
#7
OK, I pulled the BeeMoved sample from Sony's website, put it on my USB drive and Moode gave me the same errors.

I imported the same file into Reaper and exported it at 24/96 and now it plays fine.

What I have noticed is that on my USB disk, the filename is correct: Sample_BeeMoved_96kHz24bit.flac BUT on the Moode player, it is named" ._Sample_BeeMoved_96kHz24bit.flac

Something wrong with the naming convention or tags?
Reply
#8
(12-18-2018, 02:17 AM)CButterworth Wrote: Excuse my ignorance, but how do I email you a download link?

First zip up a few of the files then upload the zip file to a file sharing site like google drive, dropbox, etc, then email the zip file download link to tim at moodeaudio dot org.

Given that @TheOldPresbyope has already verified that the Sony 24/96 test file plays in moOde 4.4 same DAC without issue suggests that there is some breakage or configuration issue in your particular install of moOde.

Try reinstalling from a fresh moOde 4.4 image.
Setup guide https://github.com/moode-player/moode/bl.../setup.txt

-Tim
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#9
On a whim, I installed Kid3 and removed the id3 tags. The files now play.

Could there be something strange in how my MAC deals with the file names and tags compared with Windows?

I’ll make linked files available tomorrow.

Thanks,
Charlie
Reply
#10
(12-18-2018, 05:49 AM)CButterworth Wrote: On a whim, I installed Kid3 and removed the id3 tags. The files now play.

Could there be something strange in how my MAC deals with the file names and tags compared with Windows?

I’ll make linked files available tomorrow.

Thanks,
Charlie

FLAC files contain a variety of metadata blocks which encapsulate a variety of data. According to the FLAC spec, the data we commonly call "tags" are contained in the block type "METADATA_BLOCK_VORBIS_COMMENT". 

Many tag editors (MP3tag is one example) allow one to display and edit VORBIS comments. Unfortunately, some also allow one to embed ID3 tags in a FLAC file, separately from the VORBIS comment block. This practice is not defined in the FLAC spec. I've seen FLAC files containing both VORBIS and ID3 tags confuse some software and not others. You'll find a thread or two on this forum which touch on the issue.

Regards,
Kent
Reply


Forum Jump: