Encodebin not Picking up h264 Encoder

Eric Babyak eric at eyesee360.com
Wed Jul 23 10:11:45 PDT 2014


I’ve made some more progress on this and have determined that the issue lies in the i-frame-interval property on the android video encoder.  This cannot be 0 (the default) in my case.  Is there a way to pass a value for this property through the encodebin down to its selected encoder?

-Eric

On Jul 22, 2014, at 12:24 PM, Eric Babyak <eric at eyesee360.com> wrote:

> Thanks Tim, Removing stream-format seemed to make it pick up the amc encoder, however, running into this now:
> 
> gstvideoencoder.c:650:gst_video_encoder_setcaps:<amcvideoenc-omxsecavcenc0> rejected caps video/x-raw, width=(int)1920, height=(int)476, pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive, framerate=(fraction)23/1, format=(string)NV12
> 
> -Eric
> 
> On Jul 21, 2014, at 6:27 PM, Tim Müller <tim at centricular.com> wrote:
> 
>> On Mon, 2014-07-21 at 18:06 -0400, Eric Babyak wrote:
>> 
>>> I’m still stuck on this, but it really does seem like encodebin just
>>> is not picking up the h264 hardware encoder on Android.  Here are my
>>> caps which result in the x264enc:
>>> 
>>> 
>>> "video/quicktime,variant=(string)iso:video/x-h264,stream-format=(string)avc,alignment=(string)au:audio/mpeg,stream-format=(string)raw,mpegversion=4”
>> 
>> Have you tried other container/stream-format combinations, such as e.g.
>> 
>> video/mpegts +
>> video/x-h264,stream-format=(string)byte-stream
>> 
>> and/or have you tried leaving out the stream-format altogether? I
>> suspect your hardware encoder outputs byte-stream.
>> 
>> Cheers
>> -Tim
>> 
>> -- 
>> Tim Müller, Centricular Ltd - http://www.centricular.com
>> 
>> _______________________________________________
>> 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