From 5c4ca7ed97a111e11d21415035ea0bffd016f4cd Mon Sep 17 00:00:00 2001 From: jiangdongguo <765067602@qq.com> Date: Mon, 15 Jan 2018 15:05:54 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E5=B8=A7=E7=8E=87=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E4=B8=BA30fps?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libusbcamera/libusbcamera.iml | 74 +++++++++---------- .../usb/encoder/biz/H264EncodeConsumer.java | 2 +- 2 files changed, 35 insertions(+), 41 deletions(-) diff --git a/libusbcamera/libusbcamera.iml b/libusbcamera/libusbcamera.iml index 6f13e12..82edf54 100644 --- a/libusbcamera/libusbcamera.iml +++ b/libusbcamera/libusbcamera.iml @@ -9,7 +9,6 @@ - + @@ -48,7 +47,6 @@ - @@ -56,7 +54,6 @@ - @@ -64,25 +61,22 @@ - - - - - - - - - - + + + + + + + @@ -102,30 +96,30 @@ - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/libusbcamera/src/main/java/com/serenegiant/usb/encoder/biz/H264EncodeConsumer.java b/libusbcamera/src/main/java/com/serenegiant/usb/encoder/biz/H264EncodeConsumer.java index df089a1..f35ae4e 100644 --- a/libusbcamera/src/main/java/com/serenegiant/usb/encoder/biz/H264EncodeConsumer.java +++ b/libusbcamera/src/main/java/com/serenegiant/usb/encoder/biz/H264EncodeConsumer.java @@ -255,7 +255,7 @@ public class H264EncodeConsumer extends Thread { final MediaFormat format = MediaFormat.createVideoFormat(MIME_TYPE, mWidth, mHeight); format.setInteger(MediaFormat.KEY_COLOR_FORMAT, mColorFormat); format.setInteger(MediaFormat.KEY_BIT_RATE, calcBitRate()); - format.setInteger(MediaFormat.KEY_FRAME_RATE, 15); + format.setInteger(MediaFormat.KEY_FRAME_RATE, 30); format.setInteger(MediaFormat.KEY_I_FRAME_INTERVAL, 1); try {