android - libstreaming - videoQuality not being set -
i developing app stream live video android device via rtsp using libstreaming library.
i trying change video quality using following code:
private void initrtspclient() { msession = sessionbuilder.getinstance() .setcontext(getapplicationcontext()) .setaudioencoder(sessionbuilder.audio_none) .setvideoencoder(sessionbuilder.video_h264) .setvideoquality(new videoquality(480, 360, 30, 500)) .setsurfaceview(msurfaceview).setprevieworientation(0) .setcallback(this).build();
but when app running on device getting following error in logs:
12-16 12:03:32.601 4596-4609/com.example.glassapp e/encoderdebugger﹕ no usable encoder found on phone resolution 480x360 12-16 12:03:32.601 4596-4609/com.example.glassapp e/h264stream﹕ resolution not supported mediacodec api, fallback on old streamign method.
but resolution stated in suppored media format
doc (enoding in h.264) http://developer.android.com/guide/appendix/media-formats.html
what problem?
edit: should add android platform google glass (xe22)
i seemed able change resolution following 2 values:
.setvideoquality(new videoquality(640, 480, 20, 500000))
or
.setvideoquality(new videoquality(960, 720, 20, 500000))
the code did not seem work if framerate raised on 20
fps either.
Comments
Post a Comment