ralphy wrote: 
> Upon further investigations, I found that those 2 files don't have all
> their mp4 atoms at the beginning of the file.
> 
> The specific ffmpeg library error is 'moov atom not found'
> 
> This has always been the case with alac and aac files and Triode talked
> about it many times first when he added those decoders to squeezelite.
> 
> When that's the case, squeezelite can't play the file, it needs to find
> the moov atom before the audio stream.
> 
> The alac files convert to wav using ffmpeg -i file.m4a file.wav as
> ffmpeg can seek to the end of the file to read the atoms and then seek
> back to the audio stream.  
> 
> I've encounter this before and fixed it using the mp4file program from
> 'mp4v2 2.0.0'
> (https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/mp4v2/mp4v2-2.0.0.tar.bz2)
> 
> The files play fine after running
> 
> mp4file --optimize filename.m4a
> 
> I can upload the "fixed" files, however you're likely to run into this
> problem again in the future and I'd suggest installing mp4v2 2.0+ or
> build it from source.

Thank you Ralph for you efforts !
I'll try the mp4v2 thing.

Also to be completely honest, these two files where converted from flac
to alac by foobar (I use itunes to manage my music library and itunes
does not support flac).
So I guess foobar has a flawed alac converter?



'Cambridge Audio 851D-S'
(https://www.cambridgeaudio.com/products/851/851d) -> 'Focal MP1200'
(http://www.mp1200.co.nf/) -> 'Focal Electra 1028 Be'
(http://www.focal.com/en/electra-1000-be-2/209-electra-1028-be-3544053695099.html)
1 x SB Boom, 1 x SB Radio, 1 x SB Touch and 2 x RPI 2B
1 x SB3 and 1 x SB Touch in storage 
ReadyNAS NVX running LMS 7.9.0.
iPeng on iPhone, SqueezePad & iPeng on iPad.
http://www.last.fm/user/phibon
------------------------------------------------------------------------
Pascal Hibon's Profile: http://forums.slimdevices.com/member.php?userid=7969
View this thread: http://forums.slimdevices.com/showthread.php?t=107352

_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix

Reply via email to