Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-01-20rtpdec: Split mpegts parsing to a normal depacketizerMartin Storsjö
This gets rid of a number of special cases from the common rtpdec code. Signed-off-by: Martin Storsjö <martin@martin.st>
2013-01-15rtsp: Support decryption of SRTP signalled via RFC 4568 (SDES)Martin Storsjö
This only takes care of decrypting incoming packets; the outgoing RTCP packets are not encrypted. This is enough for some use cases, and signalling crypto keys for use with outgoing RTCP packets doesn't fit as simply into the API. If the SDP demuxer is hooked up with custom IO, the return packets can be encrypted e.g. via the SRTP protocol. If the SRTP keys aren't available within the SDP, the decryption can be handled externally as well (when using custom IO). Signed-off-by: Martin Storsjö <martin@martin.st>
2013-01-12rtsp: Remove an outdated commentMartin Storsjö
It is unclear what the bug exactly was and if it ever was fixed, and we don't even support decoding via faad any longer. The comment has been present since d0deedcb in 2006. Signed-off-by: Martin Storsjö <martin@martin.st>
2013-01-12rtsp: Remove references to weirdly named variables in other filesMartin Storsjö
One of them is renamed now, but mentioning it by name serves no purpose here. The other table mentioned ceased to exist under that name in 4934884a1 in 2006. Signed-off-by: Martin Storsjö <martin@martin.st>
2013-01-08rtpdec: Support sending RTCP feedback packetsMartin Storsjö
This sends NACK for missed packets and PLI (picture loss indication) if a depacketizer indicates that it needs a new keyframe, according to RFC 4585. This is only enabled if the SDP indicated that feedback is supported (via the AVPF or SAVPF profile names). The feedback packets are throttled to a certain maximum interval (currently 250 ms) to make sure the feedback packets don't eat up too much bandwidth (which might be counterproductive). The RFC specifies a more elaborate feedback packet scheduling. The feedback packets are currently sent independently from normal RTCP RR packets, which is not totally spec compliant, but works fine in the environments I've tested it in. (RFC 5506 allows this, but requires a SDP attribute for enabling it.) Signed-off-by: Martin Storsjö <martin@martin.st>
2013-01-08rtsp: Respect max_delay for the reordering queue when using custom IOMartin Storsjö
Signed-off-by: Martin Storsjö <martin@martin.st>
2013-01-08rtsp: Recheck the reordering queue if getting a new packetMartin Storsjö
If we timed out and consumed a packet from the reordering queue, but didn't return a packet to the caller, recheck the queue status. Otherwise, we could end up in an infinite loop, trying to consume a queued packet that has already been consumed. CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
2013-01-03rtsp: Add support for depacketizing RTP data via custom IOMartin Storsjö
To use this, set sdpflags=custom_io to the sdp demuxer. During the avformat_open_input call, the SDP is read from the AVFormatContext AVIOContext (ctx->pb) - after the avformat_open_input call, during the av_read_frame() calls, the same ctx->pb is used for reading packets (and sending back RTCP RR packets). Normally, one would use this with a read-only AVIOContext for the SDP during the avformat_open_input call, then close that one and replace it with a read-write one for the packets after the avformat_open_input call has returned. This allows using the RTP depacketizers as "pure" demuxers, without having them tied to the libavformat network IO. Signed-off-by: Martin Storsjö <martin@martin.st>
2013-01-03rtpdec: Move the URLContext used for RTCP RR out from the context, to a ↵Martin Storsjö
parameter Signed-off-by: Martin Storsjö <martin@martin.st>
2012-11-14rtp: set the payload type as stream idLuca Barbato
Support multiple video/audio streams with different format in the same session. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2012-10-29rtsp: Avoid a cast when calling strtolMartin Storsjö
This gets rid of this warning: libavformat/rtsp.c: In function ‘rtsp_parse_transport’: libavformat/rtsp.c:794: warning: cast discards qualifiers from pointer target type Signed-off-by: Martin Storsjö <martin@martin.st>
2012-10-20rtsp: Make sure the ret variable is initialized in ff_rtsp_fetch_packetMartin Storsjö
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-10-19rtsp: Allow setting the reordering buffer size via an AVOptionMartin Storsjö
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-10-01avformat: Remove non-compiling and/or silly commented-out printf/av_log ↵Diego Biurrun
statements
2012-09-05avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union memberMartin Storsjö
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-09-05avopt: Store defaults for AV_OPT_TYPE_FLAGS in the i64 union memberMartin Storsjö
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-09-05avopt: Store defaults for AV_OPT_TYPE_CONST in the i64 union memberMartin Storsjö
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-08-27rtsp: Free the rtpdec context properlyMartin Storsjö
The condition for calling the rtpdec cleanup was broken in df8cf076c86. This fixes a memory leak. Signed-off-by: Martin Storsjö <martin@martin.st>
2012-08-17rtsp.c: use ffurl_get_multi_file_handle() instead of ↵Jordi Ortiz
ff_rtp_get_rtcp_file_handle() Signed-off-by: Martin Storsjö <martin@martin.st>
2012-08-09rtsp: Support mpegts in raw udp packetsMartin Storsjö
This is basically the same way as mpegts packets are parsed in rtpdec.c. Signed-off-by: Martin Storsjö <martin@martin.st>
2012-08-09rtsp: Support receiving plain data over UDP without any RTP encapsulationMartin Storsjö
EvoStream Media Server can serve data in this format, and VLC/live555 already supports it. Signed-off-by: Martin Storsjö <martin@martin.st>
2012-08-07Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov
2012-07-30avformat: Drop pointless "format" from container long namesDiego Biurrun
2012-07-28Add missing libavutil/time.h includes.Anton Khirnov
2012-07-21rtsp: remove terminal comma in FF_RTP_FLAG_OPTS macro.Ronald S. Bultje
This makes usage of the macro look more natural when used with array entries. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2012-07-10rtsp: Add listen modeJordi Ortiz
This makes the RTSP demuxer act as a server, listening for an incoming connection. Signed-off-by: Martin Storsjö <martin@martin.st>
2012-07-10rtsp: Make rtsp_open_transport_ctx() non-staticJordi Ortiz
This is required for the upcoming RTSP listen mode. Signed-off-by: Martin Storsjö <martin@martin.st>
2012-07-10rtsp: Parse the mode=receive/record parameter in transport linesJordi Ortiz
We need to support the nonstandard mode=receive, for compatibility with older libavformat clients. Signed-off-by: Martin Storsjö <martin@martin.st>
2012-06-20Remove unnecessary inclusions of [sys/]time.hMans Rullgard
Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-06-18rtsp: Send mode=record instead of mode=receiveMartin Storsjö
This seems to be the correct mode to send, according to the original RTSP RFC, and matches the method RECORD which is sent later when starting to send data. Darwin Streaming Server works fine with either of them. Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-26rtsp: Check for dynamic payload handlers if no static payload mapping was foundMartin Storsjö
Some systems abuse the static payload types 35 or 36 (which according to IANA are unassigned) for H264. Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-26rtpenc_chain: Return an error code instead of just a plain pointerMartin Storsjö
Also check the return value in sapenc. Signed-off-by: Martin Storsjö <martin@martin.st>
2012-05-08rtsp: Add content-type message header parsingJordi Ortiz
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
2012-05-06rtsp: avoid const warnings from strtol() callMans Rullgard
The strtol() interface makes it difficult to use with const-qualified pointers. With this change, although the const is still lost, the compiler does not warn about it. Signed-off-by: Mans Rullgard <mans@mansr.com>
2012-04-08rtsp: Don't use uninitialized data if there are no streamsMartin Storsjö
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-04-08rtsp: Don't expose the MS-RTSP RTX data stream to the callerMartin Storsjö
This avoids exposing a dummy AVStream which won't get any data and which will make avformat_find_stream_info wait for info about this stream. Signed-off-by: Martin Storsjö <martin@martin.st>
2012-03-28Replace memset(0) by zero initializations.Diego Biurrun
Also remove one pointless zero initialization in rangecoder.c.
2012-03-20rtsp: Set the default delay to 0.1 s for the RTSP/SDP/RTP demuxersMartin Storsjö
This enables reordering of UDP packets by default, unless the caller explicitly sets -max_delay 0. Signed-off-by: Martin Storsjö <martin@martin.st>
2012-03-20libavformat: Set the default for the max_delay option to -1Martin Storsjö
Make the muxers/demuxers that use the field handle the default -1 in the same way as 0. This allows distinguishing an intentionally set 0 from the default value where the user hasn't set it. Signed-off-by: Martin Storsjö <martin@martin.st>
2012-03-19cosmetics: Align some AVInput/OutputFormat declarationsMartin Storsjö
Also add missing trailing commas. Signed-off-by: Martin Storsjö <martin@martin.st>
2012-03-13rtsp: Retry authentication if failed due to being staleMartin Storsjö
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-03-12rtsp: Fix a typoMartin Storsjö
Signed-off-by: Martin Storsjö <martin@martin.st>
2012-03-09rtsp: Only set the ttl parameter if the server actually gave a valueMartin Storsjö
Passing ttl=0 to the rtp/udp url contexts makes packets never leave the host machine. Signed-off-by: Martin Storsjö <martin@martin.st>
2012-02-27rtsp: Handle requests from server to clientTommy Winther
This returns 200 OK for OPTIONS requests and 501 Not Implemented for all other requests. Even though this doesn't do much actual handling of the requests, it makes the code properly identify server requests as such, instead of interpreting it as a reply to the client's request as it did before. Signed-off-by: Martin Storsjö <martin@martin.st>
2012-02-23rtpenc: Move the trailing comma into FF_RTP_FLAG_OPTSMartin Storsjö
This simplifies adding more flags to the macro. Signed-off-by: Martin Storsjö <martin@martin.st>
2012-02-16rtp: Factorize the check for distinguishing RTCP packets from RTPMartin Storsjö
The binary doesn't change after this patch. Signed-off-by: Martin Storsjö <martin@martin.st>
2012-02-16sdp: Ignore RTCP packets when autodetecting RTP streamsMartin Storsjö
The rtp demuxer which listens for RTP packets and detects the RTP payload type will currently get confused if the first packet received is an RTCP packet. Thus ignore such packets. Signed-off-by: Martin Storsjö <martin@martin.st>
2012-01-30rtsp: Remove some unused variables from ff_rtsp_connect().Diego Biurrun
2012-01-28cosmetics: Remove extra newlines at EOFAlex Converse
2012-01-27lavf: remove disabled FF_API_RTSP_URL_OPTIONS cruftAnton Khirnov