Tunneling RTSP in HTTP
Status of this memo
This document is an internet-Draft and is in full conformanceAll provisions of section 10 of rfc2026.
Internet-drafts are working events of the Internet EngineeringTask Force (IETF), its areas, and its working groups. Note thatOther groups may also distribute working clients as Internet-Drafts. Internet-drafts are draft documents valid for a maximumSix months and may be updated, replaced, or obsoleted
Analysis of RTSP-RFC2326 protocol formats 3-DESCRIBE requestsThe customer initiates a DESCRIBE request to the server. In order to get the Session Description (SDP), the following is what I actually got from the Live555 server. The content is as follows: DESCRIBE rtsp: // 10.45.134.29: 8554/hsf-esvideotest
is the Application layer protocol and HTTP protocol very similar to the client and the server by passing text, informing how to make rtp/rtcp information interactive, we can see that RTSP can also use TCP to implement streaming media without RTP.RTSP Client Connection server passes information through SDP (Session Description Protocol)[HTML]View Plaincopy
C-
elementary Stream file". mkv" = a Matroska audio+video+ (optional) subtitles file". mp3" = a MPEG-1 or 2 Audio file". mpg" = a MPEG-1 or 2 program Stream (audio+video) file". ogg" or ". Ogv" or ". Opus" = "an ogg audio and/or video file". ts" = + a MPEG Transport Stream file(a ". TSX" index FILE-IF present-provides server ' trick play ' support)". VOB" = a VOB (MPEG-2 video with AC-3 audio) file". wav" = = a wav Audio file". WebM" = a WEBM Audio (Vor
+ (optional) subtitles file". mp3" = a MPEG-1 or 2 Audio file". mpg" = a MPEG-1 or 2 program Stream (audio+video) file". ogg" or ". Ogv" or ". Opus" = "an ogg audio and/or video file". ts" = + a MPEG Transport Stream file(a ". TSX" index FILE-IF present-provides server ' trick play ' support)". VOB" = a VOB (MPEG-2 video with AC-3 audio) file". wav" = = a wav Audio file". WebM" = a WEBM Audio (Vorbis) +video (VP8) fileIf you are not able to use FFmpeg
The RTSP server is not enabled in the crtmpserver default configuration. You need to modify it to support it. Buiders/cmake/crtmpserver. Lua
When a common user is started, an error is reported. The cause of the error is further verified.
Switch to root and start successfully.
Use FFMPEG to virtualize files into RTSP streams
In this case, the
Hoi Hong rtsp fetch stream URL format
First, preview the fetch stream
The RTSP URL for the device preview fetch stream has a new and old version, and devices prior to 2012 (such as the V2.0 version of NetraThe old fetch stream format, after which the new old stream format is supported by the device.
Rtsp.jpg1. Old version
URL Provisions:
Rtsp://username:passw
to real-time requirements are very high, such as 0.5s or less, this is a good choice. The former mimic Spydroid wrote a proposed RTSP server, in fact, is options,describe,setup,play,pause,teardown these steps, the agreement with the most extensive, on-line introduction is more. To really understand the RTSP protocol, the C + + language is good to see live555.RTM
The minimum RTSP Protocol is required to support RTSP Streaming Media for videos in the project. This article is translated from the RFC2326 protocol document Appendix D: Minimal RTSP implementation section of RTSP. 1. The client must implement: 1. implementation request: SETUP, TEARDOWN, PLAY/RECORD + ANNOUNCE 2. head
I downloaded a RTSP protocol from the device manufacturer. According to the instructions in the document, I didn't respond to the issue, dizzy, and finally connected it with its demo, use Wireshark to track a complete process,
I made another complete process.
An RTSP process uses a camera that supports RTSP and uses Delphi's tclientsocket to send a string using a
Use the library in live555 to write a simple rtspserver program for learning purposes only. The Code in the following example shows the function call process of the rtspserver.
# Include # include "livemedia. HH "static servermediasession *
RTSP paused, quick turn
Environment Linux apache+php
Tool Software MPLAYER+VLC
function to achieve the recording and playback of the camera (only the playback is used here)
Technical route with MPlayer to record the camera, after recording, the recorded video file with the RTSP protocol to play, VLC used to do RTSP server
Objective:
Using the javacv1.2 version, refer to the code on the Internet, encountered a number of very serious problems, the last one to eliminate the solution. The main issues to be addressed are:
Problem one, ffmpeg default is the way to use UDP, often the problem of packet loss, you need to change the UDP to TCP can be resolved, the following is the content of the error:
Input #0, RTSP, from ' RTSP://A
1, first from FFPLAY.C main ()is = Stream_open (Input_filename, File_iformat);2, inside the Straem_open.Is->read_tid = Sdl_createthread (Read_thread, is);3,read_threadErr = Avformat_open_input (ic, Is->filename, Is->iformat, format_opts);4,avformat_open_inputif (ret = Init_input (s, filename, tmp)) The real drama is from Init_input ();Our goal is to know how to interact with the server for RTSP messages, so
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.