Some error when I run the Android VLC

*nix specific usage questions
mcygogo
Blank Cone
Blank Cone
Posts: 15
Joined: 10 Oct 2011 07:14

Some error when I run the Android VLC

Postby mcygogo » 16 Oct 2011 11:18

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.

mcygogo
Blank Cone
Blank Cone
Posts: 15
Joined: 10 Oct 2011 07:14

Re: Some error when I run the Android VLC

Postby mcygogo » 17 Oct 2011 03:01

Anyone help ?? :?:

mcygogo
Blank Cone
Blank Cone
Posts: 15
Joined: 10 Oct 2011 07:14

Re: Some error when I run the Android VLC

Postby mcygogo » 17 Oct 2011 11:29

Nobody know ?? :(

XilasZ
Developer
Developer
Posts: 189
Joined: 16 Jun 2009 20:35

Re: Some error when I run the Android VLC

Postby XilasZ » 19 Oct 2011 17:26

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.

mcygogo
Blank Cone
Blank Cone
Posts: 15
Joined: 10 Oct 2011 07:14

Re: Some error when I run the Android VLC

Postby mcygogo » 25 Oct 2011 03:58

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 :)

XilasZ
Developer
Developer
Posts: 189
Joined: 16 Jun 2009 20:35

Re: Some error when I run the Android VLC

Postby XilasZ » 16 Nov 2011 15:30

see here

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


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: CloisteredNeuron and 6 guests