androidmedia encoder problems

Sebastian Dröge sebastian at centricular.com
Mon Jan 27 12:13:16 PST 2014


On Mo, 2014-01-27 at 12:30 +0100, stic at free.fr wrote:
> here is the content of the buffer when flag is 0x00000002 (now it has a size of 20):
> 01-27 12:24:58.842: I/GLib+stdout(21360): 00000000 (0x4fc7c000): 00 00 00 01 67 42 80 28 e9 07 86 72 00 00 00 01  ....gB.(...r....
> 01-27 12:24:58.842: I/GLib+stdout(21360): 00000010 (0x4fc7c010): 68 ee 06 f2                                      h...            

Ok, putting that in codec_data is wrong. The avcC does not contain start
codes and also has some other info in front of the SPS and PPS. See
gst_h264_parse_make_codec_data() in
gst-plugins-bad/gst/videpoarse/gsth264parse.c

You will have to handle this as stream-format=byte-stream and put the
codec data buffer into the stream instead of the caps. Or convert this
to avcC and make sure the other parts of the output are avc compatible
too.

-- 
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/20140127/1603e6ba/attachment.pgp>


More information about the gstreamer-android mailing list