Android Media amcvidenc-omxgoogleh264encoder plugin issues

Stefan Persson johli392 at student.liu.se
Tue May 14 14:35:35 UTC 2019


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



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list