<div dir="ltr">If I want to print more debug info, how could I build gstreamer-sdk with my modified code by "cerbero"?<div><br></div><div>Thanks<div class="gmail_extra"><div><div dir="ltr"><div><br></div><div>Yi-Lung (Bruce) Tsai</div>

</div></div>
<br><br><div class="gmail_quote">On Mon, Sep 2, 2013 at 9:50 AM, Bruce Tsai <span dir="ltr"><<a href="mailto:wagamama.tsai@gmail.com" target="_blank">wagamama.tsai@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">I tested the same app on my recently bought new Nexus 7 (2013). <div>The media_codecs.xml of Nexus 7 is listed in [1].<br><div>The screen is blank rather than weird video frames while playing content. </div>


<div>And the errors, see logs in [2], are a little different from Note 2. </div><div>There are no errors like <span style="font-size:13px;font-family:arial,sans-serif">"gstamcvideodec.c:1053:gst_</span><span style="font-size:13px;font-family:arial,sans-serif">amc_video_dec_loop:<</span><span style="font-size:13px;font-family:arial,sans-serif">amcvideodec-omxsecavcdec0> Failed to allocate buffer". </span></div>


<div><font face="arial, sans-serif">But </font><span style="font-size:13px;font-family:arial,sans-serif">"gstamc.c:701:gst_amc_codec_</span><span style="font-size:13px;font-family:arial,sans-serif">dequeue_output_buffer Failed to call Java method" still exists.</span><div>


<div class="gmail_extra"><font face="arial, sans-serif"><br></font></div><div class="gmail_extra"><font face="arial, sans-serif">For the unknown color formats, I found that some codecs have color format (0x7fa30c03) that is not mentioned in Android Java API [3].</font></div>


<div class="gmail_extra"><font face="arial, sans-serif">But I do find this number is defined as "COLOR_QCOM_FormatYUV420PackedSemiPlanar64x32Tile2m8ka" in gst-plugins-bad-static-0.10.23/sys/androidmedia/gstamc-constants.h.</font></div>


<div class="gmail_extra"><font face="arial, sans-serif">This is weird to consider a known color format as an unknown color format while scanning codec information.<br clear="all"></font><div><div dir="ltr"><div><br></div>


<div>[1] <a href="https://dl.dropboxusercontent.com/u/72809300/GoogleNexus7/media_codecs.xml" target="_blank">https://dl.dropboxusercontent.com/u/72809300/GoogleNexus7/media_codecs.xml</a><br></div><div>[2] <a href="https://dl.dropboxusercontent.com/u/72809300/GoogleNexus7/log_no_mp4_video.txt" target="_blank">https://dl.dropboxusercontent.com/u/72809300/GoogleNexus7/log_no_mp4_video.txt</a><br>


</div><div>[3] <a href="http://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatSurface" target="_blank">http://developer.android.com/reference/android/media/MediaCodecInfo.CodecCapabilities.html#COLOR_FormatSurface</a></div>


<div><br></div><div>Yi-Lung (Bruce) Tsai</div></div></div>
<br><br><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"><br>
Message: 2<br>
Date: Fri, 30 Aug 2013 09:54:40 +0200<br>
From: Sebastian Dr?ge <<a href="mailto:slomo@circular-chaos.org" target="_blank">slomo@circular-chaos.org</a>><br>
To: Discussions about GStreamer on Android<br>
        <<a href="mailto:gstreamer-android@lists.freedesktop.org" target="_blank">gstreamer-android@lists.freedesktop.org</a>><br>
Subject: Re: Failed to allocate buffer while playing mp4 file<br>
Message-ID: <1377849280.4321.8.camel@thor.lan><br>
Content-Type: text/plain; charset="utf-8"<div><div class="h5"><br>
<br>
On Do, 2013-08-29 at 16:40 +0800, Bruce Tsai wrote:<br>
> Hi Sebastian,<br>
><br>
><br>
> The media_codecs.xml is<br>
> put <a href="https://www.dropbox.com/s/02m5g8gms9t798k/media_codecs.xml" target="_blank">https://www.dropbox.com/s/02m5g8gms9t798k/media_codecs.xml</a><br>
> And the video frame is look<br>
> like <a href="https://dl.dropboxusercontent.com/u/72809300/SamsungNote2/2013-08-29%2016.16.32.jpg" target="_blank">https://dl.dropboxusercontent.com/u/72809300/SamsungNote2/2013-08-29%2016.16.32.jpg</a><br>
><br>
><br>
> The ogv file, also download from sintel, is playable on Note 2.<br>
<br></div></div>
That one doesn't use the hardware codecs though :)<br>
<br>
<br>
Not sure what else I could do here without actual access to the device.<br>
You would need to check why exactly it fails to call the Java method,<br>
and also debug why the color format that is used by the decoder does not<br>
match what we assume in the androidmedia plugin... and try to reverse<br>
engineer how it is supposed to be used.<br>
<br>
-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: signature.asc<br>
Type: application/pgp-signature<br>
Size: 198 bytes<br>
Desc: This is a digitally signed message part<br>
URL: <<a href="http://lists.freedesktop.org/archives/gstreamer-android/attachments/20130830/91be2dcd/attachment-0001.pgp" target="_blank">http://lists.freedesktop.org/archives/gstreamer-android/attachments/20130830/91be2dcd/attachment-0001.pgp</a>><br>



<br>
------------------------------<br><br>
</blockquote></div><br></div></div></div></div></div>
</blockquote></div><br></div></div></div>