Skip to content
Video Experts Group1 edited this page Jul 14, 2017 · 2 revisions

Basic questions

1. How to capture logs?

  1. Connect Android device to PC
  2. Capture logs: adb logcat -v time > 1.txt

2. What are low latency settings?

conf.setDecodingType( 0 );  - uncheck “Video decoding acceleration”
conf.setSynchroEnable( 0 ); - uncheck “A/V sync”
conf.setDecoderLatency( 1 ); - check “Low latency video decoder”
conf.setNumberOfCPUCores( 0 ); - not available in UI
conf.setConnectionBufferingType(0); Buffering on start only  
conf.setConnectionDetectionTime( 1000 );  - “ProbeTime”
conf.setConnectionBufferingTime( 0 ); - “Buffering on start”, this is not available in UI of Network Player (Low Latency).

3. How to minimize the package size?

Minimal package size is 10 Mbytes for 4 platfroms: armeabi, armeabi-v7a, armeabi-v7a-noneon, x86

There can be various configurations:

  1. RTSP

Decoders: aac,adpcm_ima_smjpeg,mjpeg,aac_latm,g723_1, mjpegb,adpcm_g722,g729,pcm_alaw,adpcm_g726,h264,pcm_mulaw,adpcm_g726le
Muxers: mov,mp4
Protocols: rtsp,http,srtp,udp,rtp,tcp,sdp

  1. Audio only

Decoders: All audio decoders
Network protocols: All network protocols

4. SDK crashes with arm64-v8a platform

Add following in build.gradle script:

productFlavors {
armv7_armeabi_x86 {
ndk
{ abiFilter "armeabi-v7a" abiFilter "armeabi" abiFilter "x86" }
}

Zoom & Move

1. How to move picture 10% to the left or right?

For example video resolution is 1920x1080, View size is 1280x720.

Picture is in the center of the screen, only part of the picture is presented.

setAspectRatioMoveModeX(50); // 50% center of screen
setAspectRatioMoveModeY(50); // 50% center of screen
player.getConfig().setAspectRatioZoomModePercent(100);

Picture is in the center of the screen, ~all picture is presented.

setAspectRatioMoveModeX(50); // 50% center of screen
setAspectRatioMoveModeY(50); // 50% center of screen
player.getConfig().setAspectRatioZoomModePercent(1280*100/1920);

Picture is moved to the left from the center and only part of the picture is presented.

setAspectRatioMoveModeX(50); // 40% Move to Left
setAspectRatioMoveModeY(50); // 50% center of screen
player.getConfig().setAspectRatioZoomModePercent(100);

Picture is moved on top and only part of the picture is presented.

setAspectRatioMoveModeX(50); 
setAspectRatioMoveModeY(40); 
player.getConfig().setAspectRatioZoomModePercent(100);

2. How to reset the original view?

player.getConfig().setAspectRatioMode(1);
UpdateView();

3. How to scale picture in the center of the screen and 25% from original size. (100)

player.getConfig().setAspectRatioMoveModeX(50); // 50% center of the screen
player.getConfig().setAspectRatioMoveModeY(50); // 50% center of the screen
player.getConfig().setAspectRatioZoomModePercent(25);// 100% is original size of output video. 
player.getConfig().setAspectRatioMode(5); // Zoom and move mode
player. UpdateView();