Page 1 of 1

Some error when I run the Android VLC

Posted: 16 Oct 2011 11:18
by mcygogo
I just compiled the Android VLC , And I run it on a real Android(not the emulator) . But it crushed , I just got one video picture. The video is MP4 with H264 and AAC
and the ERROR log from LogCat is :
01-01 00:12:06.420: ERROR/VLC/VideoPlayerActivity(1410): MediaPlayerPlaying
01-01 00:12:06.530: ERROR/AudioTrack(1410): Invalid buffer size: minFrameCount 15052, frameCount 8192
01-01 00:12:06.530: ERROR/AudioTrack-JNI(1410): Error initializing AudioTrack
01-01 00:12:06.530: ERROR/AudioTrack-Java(1410): [ android.media.AudioTrack ] Error code -20 when initializing AudioTrack.
01-01 00:12:06.590: ERROR/vlc(1410): [0x3b1664] main generic error: Failed to set on top, add by tszhao
01-01 00:12:06.900: ERROR/AndroidRuntime(1410): FATAL EXCEPTION: Thread-12
01-01 00:12:06.900: ERROR/AndroidRuntime(1410): java.lang.IllegalStateException: play() called on uninitialized AudioTrack.
01-01 00:12:06.900: ERROR/AndroidRuntime(1410): at android.media.AudioTrack.play(AudioTrack.java:764)
01-01 00:12:06.900: ERROR/AndroidRuntime(1410): at org.videolan.vlc.android.Aout.playBuffer(Aout.java:45)
01-01 00:12:06.900: ERROR/AndroidRuntime(1410): at org.videolan.vlc.android.LibVLC.playAudio(LibVLC.java:131)
01-01 00:12:06.900: ERROR/AndroidRuntime(1410): at dalvik.system.NativeStart.run(Native Method)
01-01 00:12:06.920: ERROR/VLC/VideoPlayerActivity(1410): MediaPlayerPaused


I guess there is some error for the audio , HOW can I fix the error ? thanks.

Re: Some error when I run the Android VLC

Posted: 17 Oct 2011 03:01
by mcygogo
Anyone help ?? :?:

Re: Some error when I run the Android VLC

Posted: 17 Oct 2011 11:29
by mcygogo
Nobody know ?? :(

Re: Some error when I run the Android VLC

Posted: 19 Oct 2011 17:26
by XilasZ
looks like audioTrack buffer has a minimum size on some devices.

maybe using getMinBufferSize() in Aout.java will help.

Edit: it's fixed now, update and retry.

Re: Some error when I run the Android VLC

Posted: 25 Oct 2011 03:58
by mcygogo
looks like audioTrack buffer has a minimum size on some devices.

maybe using getMinBufferSize() in Aout.java will help.

Edit: it's fixed now, update and retry.
XilasZ, are you sure that , you have fixed the error????
I just got the code from git, but it still can not work well, and I got the same error, and I found that the code in Aout.java is NOT changed , so where you changed the error?
can you put some code here? tks :)

Re: Some error when I run the Android VLC

Posted: 16 Nov 2011 15:30
by XilasZ
see here

Which repo are you using ? the new one (vlc-ports/android.git) or the old locked one (vlc/vlc-android.git) ?