Performance issue x264enc streaming
FranckyBoy
fmorissette at gmail.com
Tue Feb 24 05:45:17 PST 2015
Hi,
I finally got a functional video streaming between 2 Android devices.
Following are the pipelines.
Sender :
androidvideosource ! video/x-raw, format=NV21, width=320, height=240,
framerate=20/1, pixel-aspect-ratio=1/1 ! videoconvert ! x264enc
tune=zerolatency ! h264parse ! video/x-h264,stream-format=byte-stream !
rtph264pay mtu=100000000 ! udpsink host=192.168.0.103 port=1234
Receiver:
udpsrc port=1234 ! application/x-rtp,payload=96,clock-rate=90000 !
rtph264depay ! decodebin ! autovideosink sync=false
Now my question is why i'm getting only 1 frame/sec.
So far, it seems to be related to x264enc which is not using Hardware
Accelaration. I tried to figure out how to use androidmedia to encode
(MediaCodec) but there is not much info about this plugin.
Can you guide me how i could get access to my Hardware Accelerated encoder.
Also, below is my /etc/media_codecs.xml
<Encoders>
<MediaCodec name="OMX.TCC.mp3enc" type="audio/x-mpeg-tcc" >
<Quirk name="requires-allocate-on-output-ports" />
</MediaCodec>
<MediaCodec name="OMX.TCC.ENC.mpeg4" type="video/mp4v-es" >
</MediaCodec>
<MediaCodec name="OMX.TCC.ENC.h263" type="video/3gpp" >
</MediaCodec>
<MediaCodec name="OMX.TCC.ENC.avc" type="video/avc" >
</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>
</MediaCodecs>
Thanks,
Francois,
--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Performance-issue-x264enc-streaming-tp4670891.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
More information about the gstreamer-devel
mailing list