- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
android usb camera,Resolution and FPS are default value.(15 fps is wrong too.)
Error message:
12-05 11:33:36.564 2112-2149/com.remai.rmrobot I/org.webrtc.Logging: CameraEnumerator: Get supported formats for camera index 1.
12-05 11:33:36.564 2112-2149/com.remai.rmrobot I/org.webrtc.Logging: CameraEnumerator: Opening camera with index 1
12-05 11:33:36.694 2112-2149/com.remai.rmrobot I/org.webrtc.Logging: CameraEnumerator: Get supported formats for camera index 1 done. Time spent: 128 ms.
12-05 11:33:36.694 2112-2149/com.remai.rmrobot I/org.webrtc.Logging: CameraEnumerationAndroid: Supported formats for camera 1: [
{
"framerate": 30,
"height": 480,
"width": 640
},
{
"framerate": 30,
"height": 288,
"width": 352
},
{
"framerate": 30,
"height": 240,
"width": 320
},
{
"framerate": 30,
"height": 144,
"width": 176
},
{
"framerate": 30,
"height": 120,
"width": 160
}
]
12-05 11:33:36.694 2112-2149/com.remai.rmrobot D/WooGeen-LocalCameraStreamParameters: Creating media constraints, width: 320, height: 240, fps: 30
12-05 11:33:36.704 2112-2414/com.remai.rmrobot I/org.webrtc.Logging: VideoCapturerAndroid: startCapture requested: 320x240@30
12-05 11:33:36.704 2112-2599/com.remai.rmrobot I/org.webrtc.Logging: VideoCapturerAndroid: Opening camera 1
12-05 11:33:36.714 2112-2112/com.remai.rmrobot D/WooGeen-PeerClient: Send data:publish to peer:12
12-05 11:33:36.714 2112-2112/com.remai.rmrobot D/WooGeen-PeerConnectionChannel: SendData
12-05 11:33:36.714 2112-2112/com.remai.rmrobot D/WooGeen-PeerClient: Publish stream
12-05 11:33:36.714 2112-2112/com.remai.rmrobot D/WooGeen-PeerConnectionChannel: Change NegotiationState to WAIT_ACCEPT
12-05 11:33:36.714 2112-2406/com.remai.rmrobot D/WooGeen-PeerConnectionChannel: Add Stream
12-05 11:33:36.714 2112-2419/com.remai.rmrobot D/WooGeen-PeerConnectionChannel: onRenegotiationNeeded
12-05 11:33:36.734 2112-2599/com.remai.rmrobot I/org.webrtc.Logging: VideoCapturerAndroid: Camera orientation: 0 .Device orientation: 0
12-05 11:33:36.734 2112-2599/com.remai.rmrobot I/org.webrtc.Logging: VideoCapturerAndroid: startPreviewOnCameraThread requested: 320x240@30
12-05 11:33:36.744 2112-2599/com.remai.rmrobot I/org.webrtc.Logging: VideoCapturerAndroid: isVideoStabilizationSupported: false
12-05 11:33:36.744 2112-2599/com.remai.rmrobot I/org.webrtc.Logging: VideoCapturerAndroid: Start capturing: 320x240@[25000:30000]
12-05 11:33:36.744 2112-2599/com.remai.rmrobot E/org.webrtc.Logging: VideoCapturerAndroid: startCapture failed
12-05 11:33:36.744 2112-2599/com.remai.rmrobot E/org.webrtc.Logging: VideoCapturerAndroid: java.lang.RuntimeException: setParameters failed
12-05 11:33:36.744 2112-2599/com.remai.rmrobot E/org.webrtc.Logging: VideoCapturerAndroid: java.lang.RuntimeException: setParameters failed
at android.hardware.Camera.native_setParameters(Native Method)
at android.hardware.Camera.setParameters(Camera.java:1650)
at org.webrtc.VideoCapturerAndroid.startPreviewOnCameraThread(VideoCapturerAndroid.java:457)
at org.webrtc.VideoCapturerAndroid.startCaptureOnCameraThread(VideoCapturerAndroid.java:372)
at org.webrtc.VideoCapturerAndroid.access$1200(VideoCapturerAndroid.java:68)
at org.webrtc.VideoCapturerAndroid$7.run(VideoCapturerAndroid.java:331)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.os.HandlerThread.run(HandlerThread.java:61)
12-05 11:33:36.744 2112-2599/com.remai.rmrobot I/org.webrtc.Logging: VideoCapturerAndroid: stopCaptureOnCameraThread
12-05 11:33:36.744 2112-2599/com.remai.rmrobot I/org.webrtc.Logging: VideoCapturerAndroid: Stop preview.
12-05 11:33:36.744 2112-2599/com.remai.rmrobot I/org.webrtc.Logging: VideoCapturerAndroid: stopReturnBuffersToCamera called. All buffers have been returned.
12-05 11:33:36.744 2112-2599/com.remai.rmrobot I/org.webrtc.Logging: VideoCapturerAndroid: Release camera.
- Tags:
- HTML5
- JavaScript*
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This means that there were some parameter invalid or not supported.
From log, the paramaters were set up as:
parameters.setPreviewFpsRange(25000, 30000)
parameters.setPreviewSize(320, 240)
parameters.setPreviewFormat(ImageFormat.YV12)
parameters.setPictureSize(/*closest to 320*240*/)
Please try this snippet on your usb camera to see if the parameters are not supported.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
LocalCameraStreamParameters can't set setPreviewFormat。
How to use this?
SDK3.0 VideoCaptureAndroid.class: PreviewFormat change from 842094169 to 17 parameters.setPreviewFormat(17);
This error was solved,but video's color is black ,how to deal this color question?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Is the local video black? or remote one?

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page