wseemann / FFmpegMediaPlayer

FFmpegMediaPlayer can be used to control playback of audio/video files and streams.
675 stars 200 forks source link

Not able to play RTSP stream #130

Open timsheu opened 7 years ago

timsheu commented 7 years ago

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?

zznam commented 7 years ago

I am wondering, too. đź‘Ť

antucg commented 7 years ago

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

gryphon2411 commented 7 years ago

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)

augmenter commented 7 years ago

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

gryphon2411 commented 7 years ago

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

augmenter commented 7 years ago

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

gryphon2411 commented 7 years ago

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?

augmenter commented 7 years ago

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

Gopinathp commented 6 years ago

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.

WvanWaas commented 6 years ago

I'm streaming a webcam with: rtsp://username:password@10.7.0.12/stream1

erlangparasu commented 6 years ago

@WvanWaas how to use authentication with this lib?

WvanWaas commented 6 years ago

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

Double-Dude commented 6 years ago

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