Hello i am using Snapdragon 805. I want to encode video using OMX hardware accelarator and stream over ethernet with low latency.
I have developed application using Android Studio that uses MediaRecorder/MediaCodec and Libstreaming Library https://github.com/fyhertz/libstreaming. But i am getting latancy og 2-3 sec for 1080p 30 fps 2Mbps bitrate.
So if i use encoding and streaming application based on "qcom_video_codec_sample" on Hexagon SDK will it improve latency? and Hardware Encoding is same using MediaCodec in Android studio and using OMX Apis in Hexagon SDK?
inshort is Hexagon SDK will improve latency than android studio?
or any ther solution anyone can suggest?
I used the OMX decoder. the latency for that is cut in half(you have to set a flag) vs Mediacodec.
But the problem is that I only got the sample to work on 600 series.
I tried the sample on my 810 phone the decoder works but the flags dont do anything. Basically on the 810 MediaCodec is exactly the same as OMX (decode latency is the same.) Because if this I cant say if the sample works properly on 800 devices.
I would suggest you look through the sample code and see if you can find a ENUM which you can set for better encoder performence. check the QcomOmxEncoder.cpp file.