xiaobingyu / andless

Automatically exported from code.google.com/p/andless
1 stars 0 forks source link

Certain .flac files give the "Initialization Error" message. #23

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Upload certain types of flacs files to the sdcard
2. Try to play them in andLess
3. You receive the error: "Initialization Error"

What is the expected output? What do you see instead?
The .flac should play normally like other flacs.

What version of the product are you using? On what operating system?
1.2.3

Please provide any additional information below.
About 20% of the flac files I own do not play and give me this error when 
played back in andLess. I have experienced this on Android 2.1 and Android 2.2 
on my Nexus One. I have attached a .flac file so that you can see this error.

Original issue reported on code.google.com by triune on 8 Jul 2010 at 9:38

GoogleCodeExporter commented 9 years ago
file attachment was too large. hosted it myself here:
http://tmp.tehk.org/Bomb%20The%20Bass_Bug%20Powder%20Dust__La%20Funk%20Mob%20Rem
ix.flac

Original comment by triune on 8 Jul 2010 at 9:44

GoogleCodeExporter commented 9 years ago
Getting "Initialization Error" on all flac files.
Issue only started after recently updating phone to official SonyEricsson build 
number R2BA020. Flawless playback prior to that.
Have tried uninstalling and reinstalling app, including with a phone reboot 
(battery taken out) in between.
Have not yet tried deleting and replacing flac files on sdcard.

andless v1.2.3.
SonyEricsson X10i. Android v1.6. SE Build R2BA020.

Original comment by shanemc...@gmail.com on 12 Jul 2010 at 3:46

GoogleCodeExporter commented 9 years ago
Update: 
1)deleting and replacing flac files on sdcard makes no difference, 
2)selecting direct hardware option makes no difference to error message.

Original comment by shanemc...@gmail.com on 12 Jul 2010 at 12:13

GoogleCodeExporter commented 9 years ago
Perhaps it could be time to update the flac decoder in andLess? A brief once 
over seems like its using some pretty old code... circa 2003-2005. Maybe 
there's a better reference decoder thats more recent?

Original comment by triune on 12 Jul 2010 at 2:54

GoogleCodeExporter commented 9 years ago
Same problem for me too.

Samsung Galaxy S (Android 2.1).

Original comment by ryc...@gmail.com on 14 Jul 2010 at 9:54

GoogleCodeExporter commented 9 years ago
Same problem. However, can play again after disable "Direct Hardware Access" 

Original comment by edwardp...@gmail.com on 14 Jul 2010 at 4:23

GoogleCodeExporter commented 9 years ago
Amazing! Disabling that and I seem to be able to play all flac's now!

Original comment by triune on 14 Jul 2010 at 4:31

GoogleCodeExporter commented 9 years ago
Makes no difference for me. "Direct Hardware Access" on or off still gives me 
the same response "Initialization Error". I've also tried suggestions made in 
comment 2 and 3 too.

Original comment by ryc...@gmail.com on 14 Jul 2010 at 11:25

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I'm using the only version available for download here, 1.2.1. In the original 
notification of this issue, the version is stated as 1.2.3. Am I missing 
something here?

Original comment by ryc...@gmail.com on 15 Jul 2010 at 8:43

GoogleCodeExporter commented 9 years ago
Download 1.2.3 from the Android Market

Original comment by triune on 15 Jul 2010 at 1:05

GoogleCodeExporter commented 9 years ago
Thanks. Problem still exists, however.

Original comment by ryc...@gmail.com on 16 Jul 2010 at 2:11

GoogleCodeExporter commented 9 years ago
Initalization problem after update in x10

Original comment by luisla...@gmail.com on 4 Aug 2010 at 1:03

GoogleCodeExporter commented 9 years ago
Initalization problem after update in x10

Original comment by luisla...@gmail.com on 4 Aug 2010 at 1:05

GoogleCodeExporter commented 9 years ago
Actually, I'm still getting errors on a lot of flacs, still. Weird how the 
hardware option solved some of them, but not all.

Original comment by triune on 4 Aug 2010 at 1:31

GoogleCodeExporter commented 9 years ago
I'm use v.1.2.3 in NexusOne 2.2(Froyo)
same problem.

Original comment by WonMo....@gmail.com on 7 Aug 2010 at 4:39

GoogleCodeExporter commented 9 years ago
I am using the Market version (does not have verion number except that it's a 
June edition, not sure if it's different from the XDA version).  I  tried three 
FLAC files that all caused initialization error on Samsung Galaxy S on 2.1.  
All three play fine on SGS's own media player.  I would use the default player 
but it does not support .cue sheet and auto bookmarking.

Original comment by madavi...@gmail.com on 9 Aug 2010 at 3:23

GoogleCodeExporter commented 9 years ago
Same problem here, also Galaxy S (T-Mobile Vibrant aka T959) and Android 2.1u1: 
I get "Initialization Error" on all FLAC files I try to play with Andless; they 
work fine with the built in Samsung Music Player -- except the tags aren't read 
properly. I'd like to be able to use andless because it should support the FLAC 
tags properly.

On a related note: ALAC in M4A containers doesn't work either in my Galaxy S / 
Android 2.1u1.

Original comment by afinfa...@gmail.com on 9 Aug 2010 at 8:40

GoogleCodeExporter commented 9 years ago
... and to expand further: rooting the phone and enabling Direct hardware 
access doesn't fix it either; still get "Initialization Error".

Original comment by afinfa...@gmail.com on 10 Aug 2010 at 11:00

GoogleCodeExporter commented 9 years ago
on my X10 mini pro, this issue fixed when doing the following:
- enable direct hardware access
- exit andLess
- disnable direct hardware access
- exit andLess
- open andLess

plays flac well!

Original comment by lun...@gmail.com on 11 Aug 2010 at 10:47

GoogleCodeExporter commented 9 years ago
In my case the procedure outlined by luny74 did *not* work still. I think 
there's some serious incompatibility between andless and the Galaxy S.

Original comment by afinfa...@gmail.com on 11 Aug 2010 at 3:22

GoogleCodeExporter commented 9 years ago
That procedure does work to some degree. It allowed my Nexus One to play around 
60% of flac files versus only 40% as it was playing before. I think the 
underlying flac decoder needs to be upgraded in this app. I wonder if the app 
author is even still alive tho, this issue as been open for months and no sign 
of him. Someone may need to fork() this project and pick up the work on their 
own.

Original comment by triune on 11 Aug 2010 at 4:09

GoogleCodeExporter commented 9 years ago
This problem is caused by the buffer passed to libmedia being too small. 
Changing the value of DEFAULT_CONF_BUFSZ in 'jni/main.h' from (4800*4) to 
(4800*4*4) fixes the issue.

Works flawlessly on my Galaxy S after the fix.

Original comment by sgsoftw...@gmail.com on 20 Aug 2010 at 11:47

GoogleCodeExporter commented 9 years ago
@sgsoftware: good catch. Do you mind putting up the fixed .apk somewhere we can 
download it? I could go ahead, make the same fix and rebuild the code but if 
you make it available it's much faster... :-)

Original comment by afinfa...@gmail.com on 21 Aug 2010 at 3:12

GoogleCodeExporter commented 9 years ago
finally... v1.2.4!

Original comment by triune on 21 Aug 2010 at 3:21

GoogleCodeExporter commented 9 years ago
@afinfante: I can try it but I am not sure how to build .apk file properly (it 
seems to require some signing so it may not install on the device unless you 
uninstall the original version). Anyway here it is in the attachment (I am not 
sure that andless itself is of the latest version there but liblossless.so is 
built from trunk with my fix so you may replace it in your version).

One of the project developers is aware of the problem so I hope he will release 
a version soon.

Original comment by sgsoftw...@gmail.com on 21 Aug 2010 at 11:18

Attachments:

GoogleCodeExporter commented 9 years ago
@sgsoftware: do you by any chance know where in the Android filesystem does 
liblossless.so end up? 

Original comment by afinfa...@gmail.com on 21 Aug 2010 at 8:37

GoogleCodeExporter commented 9 years ago
@afinfante: it is inside the .apk file. APK is actually a zip archive. If you 
unpack it then you'll see the .so file in lib/armeabi directory.

I took andless.apk, unpacked it with unzip, replaced lib/armeabi/liblossless.so 
and packed it again by apkbuilder (normal zip seems not to work).

Original comment by sgsoftw...@gmail.com on 21 Aug 2010 at 9:11

GoogleCodeExporter commented 9 years ago
@sgsoftware: I know that part -- my question is about where liblossless.so ends 
up *after* the .apk is installed... not inside the .apk. :-)

Original comment by afinfa...@gmail.com on 21 Aug 2010 at 9:15

GoogleCodeExporter commented 9 years ago
@afinfante: on my phone it is here: '/disk/data/net.avs234/lib/liblossless.so'

Original comment by sgsoftw...@gmail.com on 21 Aug 2010 at 9:47

GoogleCodeExporter commented 9 years ago
@sgsoftware: AWESOME! Got it. I simply replaced the liblossless.so (rather than 
the whole .apk) and it works great now! Thanks so much!

Original comment by afinfa...@gmail.com on 21 Aug 2010 at 10:07

GoogleCodeExporter commented 9 years ago
@sgsoftware:  installed the app you posted at comment 26. Works GREAT - just 
like it used to for me (pre-phone update). Many many thanks. X10i.

FYI to couldn't install app from Gmail, until after I installed APKatcher from 
market. Recommended!

Original comment by shanemc...@gmail.com on 15 Sep 2010 at 9:45

GoogleCodeExporter commented 9 years ago
AndLess, Meridian Media Player, and Audio Player all still give me the 
initialization error.

On 10/16/2010, I received a large update for my T-Mobile Galaxy S Vibrant.  
It's still Eclair, but updated.  Anyway, the default Music Player built into 
the phone now plays all of my FLAC files with no problems.  I don't know about 
Galaxy S phones under the other carriers.  Hope that helps some of you.

Original comment by john.ris...@gmail.com on 23 Oct 2010 at 9:39

GoogleCodeExporter commented 9 years ago
Yeah I can confirm that .flac plays fine on my Samsung Captivate running 2.1. I 
am just using the stock music player.

Original comment by backgamm...@gmail.com on 5 Nov 2010 at 12:31

GoogleCodeExporter commented 9 years ago
Same thing happened for me.
At the beginning there was no problem with the flac, but since perhaps one 
month andLess doesn't manage anymore to read it (when PowerAmp still does) The 
default player doesn't read this flac.
Today I reinstalled andLess through the market, and the problem seems to be 
solved
Motorola Flipout 2.1
andLess version 25 Jan 2011

Original comment by gjar...@gmail.com on 5 Mar 2011 at 1:21

GoogleCodeExporter commented 9 years ago
Same issue, HTC Desire. Reinstall solved it.

Original comment by johanhel...@gmail.com on 11 Aug 2011 at 11:36