androidmedia encoder problems

Sebastian Dröge sebastian at centricular.com
Sat Jan 25 08:27:38 PST 2014


On Sa, 2014-01-25 at 15:27 +0100, stic at free.fr wrote:
> Hi,
> 
> I finally had time to look again, but I am really not familiar enough
> with all of this.
> At the beginning of the stream it receives INFO_OUTPUT_FORMAT_CHANGED,
> the format seems to contains csd-0 and csd-1 fields (see log bellow),
> but when I look to the values it seems to always be empty or unfilled.
> I tried to reassemble avcc, and put its value in codec_data of caps as
> a GStBuffer, but it does not give anything (I think again because
> csd-0 and csd-1 values seem to be empty).

Maybe the JNI code to access the arrays is wrong? How do you detect that
they're empty?

> We can see also that it receives a buffer of size 21 with flag
> 0x00000002 (BUFFER_FLAG_CODEC_CONFIG). Is is the size of csd-0 + csd-1
> buffers ... ? but I can't see any values also there.

21 seems a bit small. Is there only exactly one such buffer or two in a
row? Can you show the content of them?

gst_util_dump_mem() could output the content in a useful way.

-- 
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20140125/0bc9b2ea/attachment.pgp>


More information about the gstreamer-android mailing list