Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save stream as playable file #3

Open
bronko79 opened this issue Aug 26, 2013 · 7 comments
Open

Save stream as playable file #3

bronko79 opened this issue Aug 26, 2013 · 7 comments

Comments

@bronko79
Copy link

Is there a way to save a rtsp stream as a playable file (i.e. mp4)?
I want to separate a stream into different files, that's why I'm not using androids MediaRecorder directly.

Thanks.

@quider
Copy link

quider commented Aug 26, 2013

I think you can handle stream from camera and save as file without any problems.

@bronko79
Copy link
Author

Thanks for reply. You wrote "handle stream from camera", what does that mean?
How can I handle the stream from the camera and save as a file?

@quider
Copy link

quider commented Aug 26, 2013

Android camera to send stream through internet you need to set up local server and local client. Local client send stream to internet and here you can handle stream by creating new local client or just try read manual from android. There is all what you need. I don't give you ready code becouse it would be to simple to you.

Read libstreaming source there are nice comments ;)

@bronko79
Copy link
Author

I read the code/comments and I understand now how to stream with MediaRecorder and Sockets.
But I understand not how to access the stream and save a playable file on sd-card. I did some tests but my files was never playable. Can you give me some hint?
Thanks.

@quider
Copy link

quider commented Aug 26, 2013

As I remember you have file descriptor object and stream from camera. I think you can just direct your stream to file. If you want my code, I wrote similar library to this one but there is no stream to file too like in this one. But disadvantage of my code are comments in polish.

In conclusion just direct stream to file. I think thats all.

@gordonpro
Copy link

@quider where?

@chrisjowen
Copy link

+1 how

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants