HardwareVideoCodec
HardwareVideoCodec copied to clipboard
HardwareVideoCodec is an efficient video recording library for Android. Supports software and hardware encode. With it, you can record a video at any resolution, no need to care about camera resolutio...
`final TextureView textureView=new TextureView(this); setContentView(textureView); videoRecorder=new VideoRecorderImpl(this); videoRecorder.reset(); // videoRecorder.setOutputUri("rtmp://192.168.16.125:1935/live/livestream"); videoRecorder.setOutputUri(Environment.getExternalStorageDirectory().getAbsolutePath()+"/test.mp4"); videoRecorder.setOutputSize(720,1280); videoRecorder.setFps(20); // videoRecorder.setFilter(getDefaultFilter()); videoRecorder.setPreviewDisplay(textureView); // videoRecorder.enableHardware(true); videoRecorder.setOnStateListener(new VideoRecorder.OnStateListener() { @Override public void onStop() { } @Override public void...
Pts linear increase
Switch to 4:3 first, then switch the camera, and finally switch back to the default, it will crash