androidmedia encoder problems
Sebastian Dröge
sebastian at centricular.com
Sat Feb 8 11:05:29 PST 2014
On Fr, 2014-02-07 at 20:28 +0800, cee1 wrote:
> 2014-02-04 <stic at free.fr>:
> > Hi Sebastian,
> >
> > as you previously said, do you think you will have soon some time to review this patch ?
> > That would be really so great because it is almost working well, there are just few things that I am not able to manage myself to make it better and more stable.
> > And I would really like to be able to use it.
> Hi,
>
> Back from vacation, go through the thread, I've some questions:
> 1. I don't find any settings of stream-format in MediaFormat[1].
> Assuming the amcvideoenc(h264) generates stream in byte-stream format?
It will output whatever the codec decides to output... we'll have to
check with different devices. But I would for now assume that it always
outputs byte-stream.
> 2. We can get codec_data from csd-0 and csd-1 by a function similar as
> reassembleAVCC?
That's what existing code using MediaCodec suggests, yes.
> 2. The csd-0 and csd-1 array can't be processed because of a JNI
> problem? (i.e. With valid lengths but NULL addresses)
Maybe it's not a direct array but a normal one. Has to be tried.
> 3. The buffer marked with flag '0x00000002' is not in byte-stream
> format? so it needs to be converted to byte-stream and put in the
> stream. That means it needs to add some workaround code for this
> codec?
I don't know. Can you give the content of such a buffer? With
gst_util_dump_mem() for example.
> 4 If both csd-0/csd-1 and '0x2' flagged buffer return, which one be
> used in codec_data?
That's a very good question :) I would guess that the in-stream codec
data buffers are a copy of the csd-X data. Has to be checked.
--
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/20140208/e7fcecdf/attachment.pgp>
More information about the gstreamer-android
mailing list