Android Media amcvidenc-omxgoogleh264encoder plugin issues

Matthew Waters ystreet00 at gmail.com
Wed May 15 03:09:33 UTC 2019


Just a note that omxgoogle elements are usually software implementations.

A GStreamer debug log is definitely a good start for looking into this.

Cheers
-Matt

On 15/5/19 12:35 am, Stefan Persson wrote:
> I'm trying to replace x264enc in my Android app with the hardware accelerated
> amcvidenc-omxgoogleh264encoder but I get error messages when I test it with
> videotestsrc.
>
> Pipeline for testing: videotestsrc ! amcvidenc-omxgoogleh264encoder !
> rtph264pay ! udpsink host=192.168.1.3 port=47372
>
> Error log:
> D/MediaCodec: init()++ name=OMX.google.h264.encoder,nameIsType=0,encoder=0
> I/ACodec: [OMX.google.h264.encoder] Now Loaded
> D/MediaCodec: kWhatComponentAllocated received
> D/MediaCodec: init()--
> D/MediaCodec: kWhatConfigure received
> I/ExtendedACodec: setupVideoEncoder()
> I/ACodec: setupAVCEncoderParameters with [profile: Baseline] [level:
> Level41]
> I/ACodec: [OMX.google.h264.encoder] cannot encode color aspects. Ignoring.
> I/ACodec: [OMX.google.h264.encoder] cannot encode HDR static metadata.
> Ignoring.
> I/ACodec: setupVideoEncoder succeeded
> W/ExtendedACodec: Failed to get extension for extradata parameter
> D/MediaCodec: onComponentConfigured()
> D/MediaCodec: kWhatComponentConfigured received
> D/MediaCodec: start()
> D/MediaCodec: kWhatStart received
> [OMX.google.h264.encoder] Now Idle->Executing
> [OMX.google.h264.encoder] Now Executing
> gstpad.c:4226:gst_pad_peer_query:<amcvideoenc-omxgoogleh264encoder0:src>
> could not send sticky events
> gstamcvideoenc.c:1143:gst_amc_video_enc_loop:<amcvideoenc-omxgoogleh264encoder0>
> error: Internal data stream error.
> gstamcvideoenc.c:1143:gst_amc_video_enc_loop:<amcvideoenc-omxgoogleh264encoder0>
> error: streaming stopped, reason not-negotiated (-4)
>
> How supported is the wrapper for amcvideoenc-omxgoogleh264encoder? I'd like
> to get more debug logs from amcvideoenc-omxgoogleh264encoder to see if I'm
> missing any parameters or undocumented caps. I've tried adding videoconvert
> before the encoder and setting the caps for the encoder
> ("video/x-h264,width=320,height=240") but that didn't solve the issue.
> I would of course like to replace videotestsrc with something more useful
> like ahcsrc as source but I'm a bit confused that it doesn't even work with
> the simple test source.
>
> Thanks in advance.
> Stefan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190515/2b787ed5/attachment.sig>


More information about the gstreamer-devel mailing list