Dhiraj Tayade
Dhiraj Tayade

Reputation: 417

android Mediarecorder send videostream over bluetooth

i want to send android camera video over bluetooth to the PC. but it seems there is no way of sending video over bluetooth in android.

Upvotes: 2

Views: 1131

Answers (1)

braden
braden

Reputation: 1506

I would say for STREAMING this is not possible. The bandwidth of bluetooth isn't large enough. Please see: www.palowireless.com/bluetooth/docs/mmichthesis.pdf

... up to 432kbps symmetrical, 721/57.6kbps asymmetrical.

Most cameras in recent Android devices are 5 megapixel or greater. The video generated from these cameras is much too large for the bluetooth pipe. Some front facing cameras are less (1 megapixel or so) but even this would be pushing or exceeding the bluetooth limitations.

I don't have a front facing camera on my phone, but I took a 60 second video with my phone on two settings (the highest quality and the lowest):

"HD": (1280x720) : 42 MBytes ... 42x8 = 336 Mbits ... / 60 seconds = 5.6 Mbit/s

"Youtube" (720x480) : 21 MBytes ... 21x8 = 168 Mbits ... / 60 seconds = 2.8 Mbits/s


According to: http://developer.android.com/guide/appendix/media-formats.html

There are 3 encoding settings. The middle one would be almost equal to the max datarate for bluetooth (according to mmichthesis.pdf), you probably don't want to be on the verge of maxing out the hardware. The lowest one is probably your safe bet, but it's only 12 FPS and a terribly small resolution (176 x 144). The lowest setting would definitely work, though.

Also, there are FFMPEG builds available for Android, so you could encode the video to custom settings (somewhere between the lowest and the middle encoding setting on the second link) but this would be a bit more work.

Upvotes: 1

Related Questions