FFmpegMediaPlayer
FFmpegMediaPlayer copied to clipboard
Not able to play RTSP stream
Hi wseemann, Does FFmpegMediaPlayer support playing RTSP stream? RTSP is not listed in Readme.md overview but is written in function comment of setDataSource in file "FFmpegMediaPlayer.java". I am not able to make it work on wowza rtsp stream "rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov " I am wondering if FFmpegMediaPlayer supports playing RTSP stream? If not, how should I make it work?
I am wondering, too. 👍
I am also interested in this, any clue about this?
I tried to play an rtsp based video stream without a success too.
In the other hand, I've successfully played http based video stream (for example http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4)
@Eido95 I can confirm same as you. Did you make it work in the end?
@augmenter in my specific case, I didn't use RTSP protocol directly because FFmpegMediaPlayer doesn't support for it.
What I did use is HTTP protocol as follows:
HTTP server which serves as proxy between my RTSP video resource to FFmpegMediaPlayer instance, and set the instance data source to the HTTP server.
(RTSP VIDEO resource -> HTTP proxy server -> FFmpegMediaPlayer instance)
Oh I see. You can also use VLClib to play rtsp directly, so you wont need the proxy anymore. However this does not suit me because im looking for a way to grab frames from a rtsp h264 stream… I can give you some notes on vlc if you wish...
This sounds interesting @augmenter , in my specific case my RTSP video resource streams a MKV stream file consist of both H.265 encoded video data and AAC encoded audio data, do you think that "VLClib" can decode, display and make it sound?
I have not tried it with sound… Do you have an online stream example that matches yours? Maybe I can try playing that...
Will this SDK ever support RTSP streaming with authentication support? This is the only use why anybody would try this library. Else, there is EXOPLAYER for all other things. They took a stand to not support RTSP.
I'm streaming a webcam with: rtsp://username:[email protected]/stream1
@WvanWaas how to use authentication with this lib?
Like you see above:
String loginURL = http://" + username + ":" + password + "@webcamaddress + video port + stream;
Intent(AppConstants.VIDEO_PLAY_ACTION).putExtra(AppConstants.VIDEO_PLAY_ACTION_EXTRA_URL, loginURL);
Hi @augmenter , I have used VLC sometime ago. But I found there is a latency, a few seconds, that was not acceptable for my project. Do you know how to reduce that? Thanks