Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

squeezelite can't play some m4a files #59

Closed
m-reiter opened this issue Feb 7, 2019 · 1 comment
Closed

squeezelite can't play some m4a files #59

m-reiter opened this issue Feb 7, 2019 · 1 comment

Comments

@m-reiter
Copy link

m-reiter commented Feb 7, 2019

I'm experiencing a problem with some m4a files in squeezelite on Linux (ARM and x86): Playback of these files fails with the following output on decode=debug:

[18:07:33.303794] decode_flush:229 decode flush
[18:07:33.420717] codec_open:257 codec open: 'a'
[18:07:33.420766] faad_open:541 opening mp4 stream
[18:07:33.959528] read_mp4_header:295 type: ftyp len: 24 consume: 24
[18:07:33.959588] read_mp4_header:236 type: mdat len: 7256342 pos: 32
[18:07:33.959606] faad_decode:373 samplerate: 44100 channels: 2
[18:07:33.959627] faad_decode:378 setting track_start
[18:07:33.959668] faad_decode:415 error: 32 Bitstream value not allowed by specification
[18:07:33.959689] faad_decode:454 unable to decode further
[18:07:33.959710] decode_thread:100 decode error
[18:07:34.060552] decode_flush:229 decode flush

Here's the mediainfo output for one of the files in question:

General
Complete name                            : Jayme Stone/Jayme Stone's Lomax Project/01 Lazy John.m4a
Format                                   : MPEG-4
Format profile                           : Base Media / Version 1
Codec ID                                 : mp41 (mp41/isom)
File size                                : 7.22 MiB
Duration                                 : 3 min 1 s
Overall bit rate mode                    : Constant
Overall bit rate                         : 334 kb/s
Album                                    : Jayme Stone's Lomax Project
Track name                               : Lazy John
Track name/Position                      : 1
Performer                                : Jayme Stone
Encoded date                             : UTC 2014-12-24 16:16:01
Tagged date                              : UTC 2015-09-27 19:27:04
Cover                                    : Yes

Audio
ID                                       : 1
Format                                   : AAC LC
Format/Info                              : Advanced Audio Codec Low Complexity
Codec ID                                 : mp4a-40-2
Duration                                 : 3 min 1 s
Bit rate mode                            : Constant
Bit rate                                 : 320 kb/s
Channel(s)                               : 2 channels
Channel layout                           : L R
Sampling rate                            : 44.1 kHz
Frame rate                               : 43.066 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 6.92 MiB (96%)
Language                                 : English
Encoded date                             : UTC 2014-12-24 16:16:01
Tagged date                              : UTC 2015-09-27 19:27:04

Linux distributions are Raspbian stretch on ARM and Debian stretch on x86. On the latter, I have tried a self-compiled version of squeezelite with identical results to the packaged version.

The faad binary linked against the same libfaad is able to decode the file without issues.

I can provide one of the affected files on request.

Thanks very much in advance for any help!

@m-reiter m-reiter changed the title squeezelite can't play some ma4 files squeezelite can't play some m4a files Feb 7, 2019
@m-reiter
Copy link
Author

m-reiter commented Feb 7, 2019

Update: Solution was pointed out to me in the Slimdevices Forum here: Seems like the files in question have some audio index at the end of the file and are therefore not suitable for streaming.

I'll leave this open for a couple of days in case anybody wants to comment. Issue is solved though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants