FFmpegMediaPlayer icon indicating copy to clipboard operation
FFmpegMediaPlayer copied to clipboard

Not able to play RTSP stream

Open timsheu opened this issue 8 years ago • 13 comments

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?

timsheu avatar Feb 21 '17 10:02 timsheu

I am wondering, too. 👍

zznam avatar Apr 05 '17 09:04 zznam

I am also interested in this, any clue about this?

antucg avatar May 17 '17 18:05 antucg

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)

gryphon2411 avatar Jun 20 '17 10:06 gryphon2411

@Eido95 I can confirm same as you. Did you make it work in the end?

augmenter avatar Aug 26 '17 14:08 augmenter

@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)

gryphon2411 avatar Aug 26 '17 15:08 gryphon2411

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...

augmenter avatar Aug 26 '17 16:08 augmenter

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?

gryphon2411 avatar Aug 31 '17 14:08 gryphon2411

I have not tried it with sound… Do you have an online stream example that matches yours? Maybe I can try playing that...

augmenter avatar Aug 31 '17 21:08 augmenter

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.

Gopinathp avatar Oct 09 '17 14:10 Gopinathp

I'm streaming a webcam with: rtsp://username:[email protected]/stream1

WvanWaas avatar Oct 09 '17 14:10 WvanWaas

@WvanWaas how to use authentication with this lib?

erlangparasu avatar Nov 07 '17 14:11 erlangparasu

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);

WvanWaas avatar Nov 07 '17 14:11 WvanWaas

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

Double-Dude avatar Jan 22 '18 05:01 Double-Dude