RTMP request with body - streaming

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.

Related

How do I publish a video compressed with h265?

I set up a nginx server and I can broadcast using rtmp. I do this by compressing it with h264, but I also need to compress it with h265. rtmp and flv do not support h265.
as a result can you offer me a server and protocol to use h265? get open source if possible.
edit:
okey should not explain the problem a little more. I can send a video to my nginx server with a client and watch this video in hls and dash.
But what I have to do is compress this video with a h265 applet with a converter like ffmpeg and then watch it or send it to another client. I couldn't find anything other than rtmp to send and receive videos.
MP4 and MKV both support H.265 video streams.
You can use DASH or HLS to stream your MP4 segments.

Linux server vlc to restream rtsp feed from ip cam

Im new i streaming so sorry for stupid questions, I tried to find info in web but nothing seems to work.
What Im trying to do
I have IP Cam that puts out RTSP stream to internet its IP is: rtsp://89.79.16.127:2550
When Im accessing that stream in windows VLC (win xp) every thing works (you can tryit for yourself)
Now I have dedicated linux debian serwer with ip: 109.95.153.133
I want to setup VLC serwer that will grap rtsp feed from camera IP and restream it via my serwer, so I can show that stream on my website (located on that dedicated serwer)
Can You help mi accomplish that?
Open VLC, select Open location from clipboard
Enter the proper camera url. For example, the axis M7014 streams in H264 so its url will look like rtsp://Camera-IP/axis-media/media.amp?codec=h264
Enter the login at the prompt or encode it to the rtsp link
rtsp://user:pass#Camera-IP/axis-media/media.amp?codec=INFO.)
If the stream is playing on the screen it means you support this codec. If not, then you shouldn't try to transcode it. For example, the axis M7014 uses an H264 variant that only quicktime fully supports.
The previous steps were to determine if you can transcode or if you should just forward the traffic.
Menu-Stream, select your RTSP as a source, then add an RTSP destination and stream. If you cant see the video play you can only forward it to a player that can. beware, some RTSP headers might get tweaked and disable the ability to pause video. I can looking for a fix right now.

Play FLV stored on Red5 server

so I have a flash video recorder that uses Red5 media server. After recording the video, it saves an FLV file to the Red5 RTMP server. My question is, if I wanted to use just a regular free FLV player (JWPlayer) would I just use the regular player and set the video source as something like rtmp://domain.com/recorder/streams/test.flv ? Or would I set the player to use single rtmp stream with this player builder? http://www.longtailvideo.com/support/jw-player-setup-wizard?example=204 I dont know if that requires some actual streaming app in rtmp. Thanks.
I think there is no "OR" in what you could do. It results in the same thing.
If you want to stream the FLV from the server you specify an URL that starts with "rtmp".
I guess the link will just exactly do that. However you can of course also configure your FLV player manually.
I dont know if that requires some actual streaming app in rtmp. Thanks.
=> Usually FLV players can play a rtmp stream. But of course you need a Red5 server and the FLV must be available in the streams directory of the webapp. Similar to:
rtmp://domain.com/recorder/streams/test.flv
Usually you could specify the URL also with: rtmp://domain.com:1935/recorder/test[.flv]
recorder is the webapp.
test[.flv] is the file you want to stream (It might be that "test" is enough, without the .flv suffix)
no need to put "streams" into the URL to stream the video. "streams" in the default folder for the video in Red5, comparable to your FLV_VIDEO_ROOT directory of this webapp "recorder".

How to play RTSP[live streaming] link in android?

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)

HLS Streaming media player for iPhone4

I am looking for a good HLS streaming media player for my iPhone-4.
I have developed one sample Http live media streaming server which stream MPEG2/TS transport stream and i want to test this server on iPhone4. For this i want one MPEG2/TS stream player. Where i will provide name of my HLS server and it will request playlist and then will play it accordingly.
Does anyone know simple HLS player for iPhone4.
Thanks.
The built-in media player in iOS (from 3.0) supports HLS.
You can type the m3u8 path in safari address bar and it will play it.