2

I want to live stream video from android device. I found out that ffserver (ffmpeg) can be compiled and run on android. Now i need to get video from camera in android device and get it to the ffserver in real-time.

Any ideas?

Regards, MM

miham
  • 395
  • 3
  • 14

1 Answers1

0

I would look at android.hardware.Camera and android.media.MediaRecorder. You set the "camera" for the media recorder and it has a start/stop methods. It streams the output to a file when you start it, and closes the file when you stop.

This may be another good reference to look at.

Ryan Conrad
  • 6,870
  • 2
  • 36
  • 36
  • 1
    Thanks for answer! I already look at Camera and MediaRecorder, but with MediaRecorder I can save video into mp4 or 3gpp format, this formats may cause problems to real-time streaming. If I'll not found other solution, I will try with this. Currenty I'm looking for how to send video from camera directly to ffserver without MediaRecorders encoding. regards, – miham Jun 21 '10 at 18:40
  • hmmm, would android.hardware.Camera work with an external USB webcam and a slate PC running Android, do you know? – Mawg says reinstate Monica Jul 31 '10 at 03:08