android h264 hardware encoding
Sebastian Dröge
slomo at coaxion.net
Wed Oct 16 11:00:17 CEST 2013
On Di, 2013-10-15 at 12:54 -0700, yoyosuper8 wrote:
> So here is what I found in the Samsung Galaxy S2 media_codecs.xml
>
> The following is located all the way at the end of the xml file under the
> tag <Encoders>
>
> <Encoders>
> <MediaCodec name="OMX.TI.DUCATI1.VIDEO.MPEG4E" >
> <Type name="video/mp4v-es" />
> <Type name="video/3gpp" />
> <Quirk name="requires-allocate-on-input-ports" />
> <Quirk name="requires-allocate-on-output-ports" />
> </MediaCodec>
>
> <MediaCodec name="OMX.TI.DUCATI1.VIDEO.H264E" type="video/avc" >
> <Quirk name="requires-allocate-on-input-ports" />
> <Quirk name="requires-allocate-on-output-ports" />
> </MediaCodec>
>
> <MediaCodec name="OMX.google.amrnb.encoder" type="audio/3gpp" />
> <MediaCodec name="OMX.google.amrwb.encoder" type="audio/amr-wb" />
> <MediaCodec name="OMX.google.aac.encoder" type="audio/mp4a-latm" />
> <MediaCodec name="OMX.google.flac.encoder" type="audio/flac" />
> </Encoders>
>
>
> Does this mean that the encoder is OMX.TI.DUCATI1.VIDEO.H264E?
Yes, and .MPEG4E too
> So the pipeline would look something like this, right?
>
> videotestsrc is-live=true do-timestamp=true ! capsfilter
> caps="video/x-raw,width=480,height=640,framerate=30/1" !
> amcvidenc-omxtiducati1videoh264e bitrate=1024 i-frame-interval=8 !
> rtph264pay !
> queue ! udpsink host=192.168.1.104 port=3057
You probably should add a h264parse between encoder and payloader. Other
than that this looks correct.
Also consider using encodebin to automatically select the best usable
elements based on a profile you provide.
-------------- 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/20131016/b71e8ffe/attachment.pgp>
More information about the gstreamer-devel
mailing list