android h264 hardware encoding

Sebastian Dröge slomo at coaxion.net
Thu Oct 17 20:39:09 CEST 2013


On Do, 2013-10-17 at 09:40 -0700, yoyosuper8 wrote:
> So I implemented gstreamer 1.0 and patched androidmedia plugin to support
> hardware encoding. Everything compiles fine, but I get an error when a
> client tries to connect to my rtsp server running on android.
> The pipeline in the server is the following: 
> 
>       gst_rtsp_media_factory_set_launch (factory,
> 	     "( videotestsrc is-live=true do-timestamp=true ! capsfilter
> caps=video/
> 	     x-raw,width=480,height=640,framerate=12/1 !
> amcvidenc-omxtiducati1videoh264e
> 	     bitrate=1024 i-frame-interval=8 ! h264parse ! rtph264pay name=pay0
> pt=96 )");
> 
> When a client (using vlc on a laptop) tries to connect to the rtsp server, I
> get the following errors:
> 
> gstamcvideoenc.c:581:create_amc_format:<amcvideoenc-omxtiducati1videoh264e0>
> Unsopported profile 'constrained-baseline'
> 
> gstvideoencoder.c:606:gst_video_encoder_setcaps:<amcvideoenc-omxtiducati1videoh264e0>
> rejected caps video/x-raw, format=(string)NV12, width=(int)480,
> height=(int)640, framerate=(fraction)12/1
> 
> gstvideoencoder.c:1366:gst_video_encoder_chain:<amcvideoenc-omxtiducati1videoh264e0>
> error: encoder not initialized
> 
> rtsp-media.c:1454:default_handle_message 0x5967b130: got error GStreamer
> error: negotiation problem. (gstvideoencoder.c(1366):
> gst_video_encoder_chain ():
> /GstPipeline:media-pipeline/GstBin:bin0/GstAmcVideoEnc-OmxTiDucati1VideoH264e:amcvideoenc-omxtiducati1videoh264e0:encoder
> not initialized)
> 
> Any ideas what this means? I sounds like it does not understand when I
> specify the h264 hw encoder.

First of all try if the encoder can work standalone. Also debug why 
gstamcvideoenc.c:581 gives this error about unsupported profile. It
should be supported, most likely there's a bug in that code.
-------------- 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/20131017/4837e3fc/attachment.pgp>


More information about the gstreamer-devel mailing list