I am trying to play RTSP live streaming url "rtsp://164.100.51.207/broadcast/DDLive".
But i am getting this error (1,-1).
I am trying this code
VideoView myVideoView = (VideoView) findViewById(R.id.videoPlayer);
myVideoView.setVideoURI(Uri.parse(url.toString()));
myVideoView.setMediaController(new MediaController(this));
myVideoView.requestFocus();
myVideoView.start();
this code giving error(1,-1).
I am unable to play this link.If anyone tell me idea to play this url.
thinks.
Roundabout suggestion -
download the rtsp stream to a local filesink using VLC which has just been compiled on android.
once the download is complete, simply play that file using the normal Intent field values for a local file and mimetype of mp4.
snip below should play what was downloaded.
new Intent(Intent.ACTION_VIEW).setDataAndType(Uri.parse("file:///mnt/sdcard/myfile.mp4"), "video/mp4");
VLC on android links:
http://forum.xda-developers.com/showthread.php?t=1517415
http://code.google.com/p/android-vlc-remote/source/browse/AndroidManifest.xml
Get an rtsp link from any youtube vide - slightly involved process
You can stream just about any youtube video as RTSP if you do the following:
Get the youtube video ID - like videoID=kgfctMNeDtg
Get the youtube feed for the videoID
Find the rtsp url for the appropriate youtube format . Formats 1,5 6 all have rtsp
request the rtsp uri with an instance of HttpClient
Details:
http://snipplr.com/view/63341/youtube-rtsp-cli-request--audio-track-only-p2/
http://snipplr.com/view/57846/curl--rtsp-to-get-sdp-descriptor-for-media-stream/
I tried playing rtsp://164.100.51.207/broadcast/DDLive on VLC but was unsuccessful in doing so, here is the error I get
Try another link that works like rtsp://217.146.95.166:554/playlist/ch12zqcif.3gp (Some indian channel)
Related
I used to watch online streaming videos by using mobile app, and would like to get its real streaming url for playing in VLC media player on my computer.
The following is the screenshot of captured network packet of the streaming video:
RTMP streaming scrrenshot
I tried to use VLC media player to play "tcUrl" part of the screenshot, but it failed to open this MRL...
I noticed that when mobile app sends out this RTMP request, it has RTMP body.
Is there any way that I can send out RTMP request with Body in VLC player? or is there any other tool capable to do that?
Thanks.
You should take a look at the play command, which specifies the stream.
The tcUrl is similar to a directory, and the play command specifies the stream like file.
Compare to the HTTP URL:
http://server/dir/livestream.flv
rtmp://server/dir/livestream
The tcUrl is rtmp://server/dir and the stream is livestream. Then you could play or forward if you get the entire url, for example:
ffplay rtmp://server/dir/livestream
ffmpeg -f flv -i rtmp://server/dir/livestream -c copy dvr.mp4
You could use VLC to play the RTMP url also.
So I have a streaming link generated from encoding azure media services. Video plays on the test player there but now want to use the URL on flutter video player.
Below is an example of the link type to expect https://itvnnows-sano13.streaming.media.azure.net/be344295-3f54-4537-abd4-87435a3d51ea/ITVNNow.ism/manifest
On flutter video player, when I use URL with .mp4 extension it works but when using the above mentioned link nothing happens. Is there a possible workaround?
I am trying to develop an iPhone app which will be able to show live stream video on iPhone.The link is in format 'http://192.168.111.18:8002/testlink'.
I went through all the apple documentation and have downloaded mediastreamsegmenter and also it has been installed properly as I can see its details using 'man mediastreamsegmenter' command.I couldn't understand it after that.Please guide me regarding this.
You should use a link with suffix ".m3u8", which contains the TS segments of the live video stream. When you click on the "m3u8" link, then the video player will be launched to request for those TS segments, otherwise, the browser won't know it is a live video link.
https://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/StreamingMediaGuide/Introduction/Introduction.html
I want to implement video streaming in my project. So, Is there any tutorial that works? Videos are stored at server side. So, to fetch video using url and play it on MPMoviePlayerViewController .
Thank You.
For video streaming in iPhone you can use ffmpeg concept.FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec - the leading audio/video codec library.Have a look at these sites for samples,
https://github.com/FFmpeg/FFmpeg
http://www.ioncannon.net/programming/452/iphone-http-streaming-with-ffmpeg-and-an-open-source-segmenter/
Check this solution, it's a full audio and video streamer.
In one Application i use YouTube Video for display i want first that video download from YouTube then it play from locally from downloaded source.
This is Possible.....If yes then provide suggestion...
You can use PSYouTubeExtractor.h class
It can get youtube mp4 video url and than downloading and viewing is not a problem
Here is my example
https://github.com/comonitos/youtube_video
You have to download your video through file location url using NSURLConnection .After that you can MPMovieplayerContoller to run that video.you can google to get example for NSURLConnection and MPMovieplayerController.