androidmedia encoder problems

stic at free.fr stic at free.fr
Wed Jan 22 14:39:52 PST 2014


i would be happy to do it, but it's not clear to me of how to retrieve csd-0 and csd-1 values.
Are they sent in the buffer, and with what kind of structure ??

----- Mail original -----
De: "Sebastian Dröge" <sebastian at centricular.com>
À: "Discussions about GStreamer on Android" <gstreamer-android at lists.freedesktop.org>
Envoyé: Mercredi 22 Janvier 2014 09:09:47
Objet: Re: androidmedia encoder problems

On Di, 2014-01-21 at 18:48 +0100, stic at free.fr wrote:
> same kind of problem using mp4v-es encoder instead of avc.
> I cannot display anything even if the receiver did connect at startup.
> It seems config do not arrive in the stream from the encoder element.
> All frames are dropped by mpeg4videoparse.

Ok, that's most likely the problem with the codec_data then that I
outlined in the previous mail. For h264 you need to do the same as in
line 261 (reassembleAVCC) here:
https://android.googlesource.com/platform/frameworks/av/+/db170bb1cae145d07efc803a3c208963de0c6087/media/libstagefright/Utils.cpp

For MPEG4 it is probably enough to just put csd-0 in codec_data.

-- 
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source

_______________________________________________
gstreamer-android mailing list
gstreamer-android at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-android


More information about the gstreamer-android mailing list