question about streaming video and media API

All your problems with Audio, Video and Images.

question about streaming video and media API

Postby leopold » Tue Jun 08, 2010 1:53 am

Hello I would like to ask you if it is possible to stream captured video from an android phone without saving the whole video first. I studied the MediaRecorder class and it seems that media APIS doenst support streaming and that you cannot access the video or audio stream during the recording process before save it to a file first, encode it etc. Any clue about this?

Thx
leopold
Freshman
Freshman
 
Posts: 4
Joined: Tue Jun 08, 2010 1:45 am

Top

Re: question about streaming video and media API

Postby winkle » Wed Jul 07, 2010 9:40 pm

Yes, you right. The standart API doesn't provide any functions for getting raw encoded video stream from MediaRecorder. However there is one dirty workaround. As you know the MediaRecorder can write to file or you can pass to it FileDescriptor. The last one you can get from LocalSocket class. So you need to create a socket interlayer for receiving a video stream. But you need to remember that video is still in 3GPP container. Extract it and have fun.
winkle
Junior Developer
Junior Developer
 
Posts: 10
Joined: Tue Jun 15, 2010 7:54 am

Re: question about streaming video and media API

Postby chinky19 » Tue Jul 13, 2010 1:36 pm

Hey Leopold,

Were you able to resolve this issue ? Any pointers would be of great help !
chinky19
Once Poster
Once Poster
 
Posts: 1
Joined: Thu May 27, 2010 2:48 pm

Re: question about streaming video and media API

Postby leopold » Sat Sep 04, 2010 4:26 am

Cheers about the Filedescriptor,

But what exactly u mean by this?

winkle wrote:... But you need to remember that video is still in 3GPP container. Extract it and have fun.


what should i do in the receiver part in order to play the video properly?

regards
leopold
Freshman
Freshman
 
Posts: 4
Joined: Tue Jun 08, 2010 1:45 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 13 guests