amcviddec-omxgoogleh264decoder: OMX.google.h264.decoder] ERROR(0x80001001)

Sebastian Dröge sebastian at centricular.com
Tue May 6 11:55:32 PDT 2014


On Mi, 2014-04-23 at 03:00 -0700, cxphong wrote:
> Error:
> ====
> Hello, I streamed 1280x720 video to android. I used *ffdec_h264* but It's to
> slow to decode video. I read at 
> http://docs.gstreamer.com/display/GstSDK/Basic+tutorial+16%3A+Platform-specific+elements
> <http://docs.gstreamer.com/display/GstSDK/Basic+tutorial+16%3A+Platform-specific+elements>  
> and used *amcviddec-omxgoogleh264decoder* insteads of ffdec_h264.
> 
> My pipeline:
> data->pipeline = gst_parse_launch("udpsrc port=5000
> caps=\"application/x-rtp, media=video, clock-rate=90000, encoding-name=H264,
> sprop-parameter-sets=\\\"J2QAFKwrQLj/LwDxImo\\\\=\\\\,KO4fLA\\\\=\\\\=\\\"\",
> payload=96\" ! queue ! rtph264depay  ! queue !
> amcviddec-omxgoogleh264decoder ! autovideosink sync=false", &error);
> 
> But I got errors:
> //////////////////////////////////////////////////////////////////////////////////////////////
> 04-23 16:48:55.181: I/OMX(17146): width (0), height (0), fps (0)
> 04-23 16:48:55.201: E/SoftAVC(17146): Decoder failed: -2
> 04-23 16:48:55.201: E/ACodec(17146): [OMX.google.h264.decoder]
> ERROR(0x80001001)
> 04-23 16:48:55.206: E/MediaCodec(17146): Codec reported an error. (omx error
> 0x80001001, internalError -2147483648)
> ....

Note that the omx.google.* codecs are also just software codecs, and
won't usually be faster than the libav decoders.

The problem here is that for whatever reason the Google codec just
errors out. Without further debugging what is happening inside the codec
this will be very difficult to solve.

As a first step you could however try if the same problem still happens
with the very latest version of GStreamer (1.2.4), and if it works
better if you put h264parse in front of the decoder.

Also you can just use decodebin instead of the depayloader and the
decoder. It will automatically choose the correct depayloader and the
most optimal decoder, and will also insert a parser if necessary.
Then you also don't have to remember this long and complicated name for
the amcviddec-XXXX element... which will also be different on different
devices.

-- 
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: 966 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140506/be6a625a/attachment.sig>


More information about the gstreamer-devel mailing list