kefferb / squeezelite

Automatically exported from code.google.com/p/squeezelite
Other
0 stars 0 forks source link

faad_decode:387 error reading stream header #64

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Just tried to play a m4a album and squeezelite exploded with the `error reading 
stream` message. None of the tracks played (but they work in other places: vlc, 
other hardware squeezeboxes).

I've tried 1.3, upgraded to 1.5 and then built from trunk. All showed the same 
error. Other music plays fine.

I'm happy to give you as much header information as I can about this file but I 
obviously can't upload it for copyright reasons. This was ripped *years* ago so 
again, no idea how I did this, let alone a way to reproduce it. Here's a avconv 
dump to get you started :)

$ avconv -i ~/Music/Coldplay/A\ Rush\ of\ Blood\ to\ the\ Head/01\ Politik.m4a 
avconv version 0.8.10-6:0.8.10-0ubuntu0.13.10.1, Copyright (c) 2000-2013 the 
Libav developers
  built on Feb  6 2014 20:53:28 with gcc 4.8.1
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x8ed340] max_analyze_duration reached
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/oli/Music/Coldplay/A Rush of 
Blood to the Head/01 Politik.m4a':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42isom
    creation_time   : 2006-03-29 01:48:06
    title           : Politik
    artist          : Coldplay
    album           : A Rush of Blood to the Head
    genre           : Rock; Alternative; Alternative Rock
    track           : 1/11
    disc            : 1/1
    date            : 2002-08-26
    album_artist    : Coldplay
  Duration: 00:05:18.67, start: 0.000000, bitrate: 339 kb/s
    Stream #0.0(eng): Audio: aac, 44100 Hz, stereo, s16, 336 kb/s
    Metadata:
      creation_time   : 2006-03-29 01:48:06
    Stream #0.1(eng): Data: mp4s / 0x7334706D
    Metadata:
      creation_time   : 2006-03-29 01:48:06
    Stream #0.2(eng): Data: mp4s / 0x7334706D
    Metadata:
      creation_time   : 2006-03-29 01:48:06

Original issue reported on code.google.com by o...@thepcspy.com on 27 Mar 2014 at 4:12

GoogleCodeExporter commented 8 years ago
Can you edit the file to only include the first second of audio and upload it?  
Can't do anything with this data without the file I'm afraid.

Also can you enable debugging and post what the output is?

Original comment by trio...@btinternet.com on 27 Mar 2014 at 9:20

GoogleCodeExporter commented 8 years ago
Attached is:

 - a 5 second excerpt that triggers the same broken response
 - The `-l all=sdebug` log of that trying to play.

I've tested the file again in other players and they seem to cope with it just 
fine. Warning, it starts quiet and gets quiet loud but that's Coldplay's fault, 
not mine :)

Original comment by o...@thepcspy.com on 28 Mar 2014 at 11:28

Attachments:

GoogleCodeExporter commented 8 years ago
This will play on squeezelite if you disable native playback for mp4 and rely 
on faad to decode on the server.  However, I don't believe it will play on 
hardware players with native mp4/aac decode either - Touch or Radio.

The problem is that the metadata necessary to decode the audio comes after the 
audio data.  When transcoding on the server or reading the file from a local 
application it is possible to skip to the end of the file to find it.  However 
when streaming to a player, the player doesn't get this information.

Original comment by trio...@btinternet.com on 28 Mar 2014 at 5:54

GoogleCodeExporter commented 8 years ago
That makes sense, thank you. It is working on our Radio so I had a quick look 
in the webmin while it was playing and say this:

 Bitrate: 335kbps CBR (Converted to 705kbps FLAC) 

So I assume this is the server transcoding it. No idea why.

Original comment by o...@thepcspy.com on 28 Mar 2014 at 6:05

GoogleCodeExporter commented 8 years ago
HODOR HODOR!

It was synced with two other players so it was proxied. After unsyncing it 
fails very much as it did locally with the squeezelite! So that's good. Crappy 
files are the problem.

Sorry for making you trawl through a problem that isn't really yours. I'll see 
if I can badger this album into working. Thanks again.

Original comment by o...@thepcspy.com on 28 Mar 2014 at 6:09

GoogleCodeExporter commented 8 years ago

Original comment by trio...@btinternet.com on 28 Mar 2014 at 6:20