Android Question How to upload video for live rtmp server?

Lilo

New Member
Licensed User
Longtime User
i use FFMpeg lib,
I can play rtmp video m3u8.

I use CamEx2 camera video,i think upload video to rtmp server with FFMpeg,How should I operate?

Thank U.
 

moster67

Expert
Licensed User
Longtime User
Which ffmpeg library? The video player? If yes, you can only decode with it.

I have written a ffmpeg-encoder as well but, as far as I know, out of the box you can not stream the camera data i.e. ffmpeg doesn't provide direct access to Android camera. It could be possible using a two steps implementation; from your application you will write the camera stream to one file and you can stream that file using ffmpeg. I did something similar for a client-project and it worked quite well.
Some say that the camera preview interface can be used as integration layer with ffmpeg input device and could be implemented as as an MediaSource (generic libstagefright media interface). Never tried it though...

I believe there is a libstreamer-wrapper available here on the forum although the original project is no longer maintained or updated.
I have wrapped another streaming library - if someone is interested, you can contact me by PM.
 
Upvote 0
Top