<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Message: 5<br>
Date: Mon, 02 Sep 2013 09:48:48 +0200<br>
From: Sebastian Dr?ge <<a href="mailto:slomo@circular-chaos.org">slomo@circular-chaos.org</a>><br>
To: Discussions about GStreamer on Android<br>
<<a href="mailto:gstreamer-android@lists.freedesktop.org">gstreamer-android@lists.freedesktop.org</a>><br>
Subject: Re: Failed to allocate buffer while playing mp4 file<br>
Message-ID: <1378108128.4380.14.camel@thor.lan><br>
Content-Type: text/plain; charset="UTF-8"<br>
<br>
On Mo, 2013-09-02 at 10:43 +0800, Bruce Tsai wrote:<br>
> If I want to print more debug info, how could I build gstreamer-sdk<br>
> with my modified code by "cerbero"?<br>
<br>
You should first of all build the SDK completely for Android according<br>
to the documentation. Then you could use the cerbero shell to apply your<br>
changes in<br>
cerbero/sources/android*/gst-plugins-bad-*-static/sys/androidmedia<br>
run make and copy .libs/*.a to<br>
cerbero/dist/android*/lib/gstreamer*/static<br><br>
</blockquote></div><br></div><div class="gmail_extra">This is really really interesting!</div><div class="gmail_extra">I rebuilt libgstandroidmedia according your instruction without modifying anything.</div><div class="gmail_extra">
Then every thing is fine though the error, "Failed to call Java method", still exists!<br>The video frames are correctly presented with audio.</div><div class="gmail_extra"><br></div><div class="gmail_extra">By outputting exception detail, I also found "Failed to call Java method" is due to an exception from calling "dequeueOutputBuffer".</div>
<div class="gmail_extra">There is a similar question on StackOverflow, [1].</div><div class="gmail_extra"><br></div><div class="gmail_extra">[1] <a href="http://stackoverflow.com/questions/13734400/mediacodec-encode-decode-simultaneously">http://stackoverflow.com/questions/13734400/mediacodec-encode-decode-simultaneously</a></div>
</div>