NerdGr8 / aacdecoder-android

Automatically exported from code.google.com/p/aacdecoder-android
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Cannot start native decoder #29

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Try the following code in your own project:
MultiPlayer multiPlayer = null;
multiPlayer = new MultiPlayer(this, 1500, 700);
multiPlayer.playAsync(url);
2. Pass a valid url paramater to playAsync.  It is a remote AAC file.
3. Observe the following error:
playAsync(): E/AACPlayer(21045): java.lang.RuntimeException: Cannot start 
native decoder
 E/AACPlayer(21045):    at com.spoledge.aacdecoder.Decoder.start(Decoder.java:217)
 E/AACPlayer(21045):    at com.spoledge.aacdecoder.AACPlayer.playImpl(AACPlayer.java:355)
 E/AACPlayer(21045):    at com.spoledge.aacdecoder.AACPlayer.play(AACPlayer.java:317)
 E/AACPlayer(21045):    at com.spoledge.aacdecoder.AACPlayer.play(AACPlayer.java:285)
 E/AACPlayer(21045):    at com.spoledge.aacdecoder.AACPlayer$1.run(AACPlayer.java:248)

 E/AACPlayer(21045):    at java.lang.Thread.run(Thread.java:856)
 E/PlayerNetwork(21045): Cannot start native decoder

What is the expected output? What do you see instead?
It should start playing the AAC file.  I just see this error instead.

What version of the product are you using? On which device ?
Latest code.  Droid Bionic, ICS 4.0.4

What is the URL of the stream ?
http://fp-limelight.musicnet.com/mp3/mn_mp3_10_16/downloads/a090/040/003/4000344
1_2_019.mp4?e=1350330460&h=18ad5c08bedb5a8e7d29429dbeb31481

Please provide any additional information below.
This code worked for me at some point.  And the example project works as well.  
However, I cannot run this code in my own project anymore.  I don't know why 
this error occurs.

Original issue reported on code.google.com by iganapol...@raditaz.com on 15 Oct 2012 at 8:23

GoogleCodeExporter commented 8 years ago
I also see the following error before the above error occurs:
"E/Decoder(22534): start() failed - ADTS sync word not found"

Original comment by iganapol...@raditaz.com on 15 Oct 2012 at 8:27

GoogleCodeExporter commented 8 years ago
I cannot get any valid AAC/MP3 stream response. Please verify that the URL is 
correct and confirm.
Thanks. Vaclav

HTTP/1.1 400 Bad Request
Server: EdgePrism/4.0.2.0
Mime-Version: 1.0
Content-Type: text/plain
Date: Wed, 24 Oct 2012 06:47:03 GMT
Content-Length: 0
Connection: keep-alive

Original comment by vbarta...@gmail.com on 24 Oct 2012 at 6:53

GoogleCodeExporter commented 8 years ago
Here you go, try these AAC's:
https://www.dropbox.com/sh/x21e13tfz5vvxsw/LdZIocGx2J

Original comment by iganapol...@raditaz.com on 24 Oct 2012 at 6:27

GoogleCodeExporter commented 8 years ago
Hi !

I've the same problem with recorded Raw AAC (stored on a website, or localy on 
sdcard).

Best regards.

Original comment by j...@radiofr.ch on 11 Jan 2013 at 11:41

GoogleCodeExporter commented 8 years ago
P.S: Raw AAC without ADTS...

Original comment by j...@radiofr.ch on 16 Jan 2013 at 9:35

GoogleCodeExporter commented 8 years ago
Hi,

even raw AAC stored in a file must contain either ADTS or ADIF headers.  
Currently the player is searching only for the ADTS sync word. So if your files 
contain ADIF, then it will not be working.

Original comment by vbarta...@gmail.com on 29 May 2013 at 2:19