History | View | Annotate | Download (67.8 KB)
Define AVMediaType enum, and use it instead of enum CodecType, whichis deprecated and will be dropped at the next major bump.
Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
Replace @returns by @return.
Originally committed as revision 22729 to svn://svn.ffmpeg.org/ffmpeg/trunk
Some spelling fixes.
Originally committed as revision 22720 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add a timeout to the select() call. Patch by Sam Gerstein <sgerstein bluefinlabcom>.
Originally committed as revision 22718 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reassemble the RTSP URL before replacing hostname with the numerical IP
Originally committed as revision 22681 to svn://svn.ffmpeg.org/ffmpeg/trunk
Simplify ff_rtsp_send_cmd_with_content_async, remove an unnecessary buffer
Originally committed as revision 22680 to svn://svn.ffmpeg.org/ffmpeg/trunk
Don't force basic auth in RTSP, but retry with the server-specified method on failure
Originally committed as revision 22678 to svn://svn.ffmpeg.org/ffmpeg/trunk
Actually parse the auth headers in RTSP
Originally committed as revision 22677 to svn://svn.ffmpeg.org/ffmpeg/trunk
Make RTSP use the generic http authentication code
Still hardcoded to use Basic auth, without parsing the reply headers
Originally committed as revision 22676 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add separate method/url parameters to the rtsp_send_cmd functions
Originally committed as revision 22675 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reindent
Originally committed as revision 22672 to svn://svn.ffmpeg.org/ffmpeg/trunk
Make ff_rtsp_send_cmd simply call ff_rtsp_send_cmd_with_content
Originally committed as revision 22663 to svn://svn.ffmpeg.org/ffmpeg/trunk
Issue a warning if the received CSeq isn't the expected one
Originally committed as revision 22661 to svn://svn.ffmpeg.org/ffmpeg/trunk
Handle errors returned from ff_rtsp_read_reply in udp_read_packet properly
Originally committed as revision 22657 to svn://svn.ffmpeg.org/ffmpeg/trunk
Handle multiple RTSP transport options properly by adding all of them into the mask
Originally committed as revision 22644 to svn://svn.ffmpeg.org/ffmpeg/trunk
Parse options in the RTSP URL only from the last question mark onwards
This helps if the URL (erroneously?) contains question marks within the path.
Originally committed as revision 22643 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reconstruct the RTSP URL, in order to remove the auth part from the URL sent to the server
Don't modify the user-specified s->filename at all, keep all modificationslocally and in rt->control_uri.
Originally committed as revision 22642 to svn://svn.ffmpeg.org/ffmpeg/trunk
Originally committed as revision 22635 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add support for TCP as lower transport in the RTSP muxer
Originally committed as revision 22634 to svn://svn.ffmpeg.org/ffmpeg/trunk
Use the caller's RTSPMessageHeader in rtsp_setup_input_streams
Currently, the caller doesn't get the status_code and location for rediects,since rtsp_setup_input_streams uses a copy of RTSPMessageHeader of its own.
Originally committed as revision 22630 to svn://svn.ffmpeg.org/ffmpeg/trunk
Make rtsp_skip_packet non-static, add ff prefix
Originally committed as revision 22547 to svn://svn.ffmpeg.org/ffmpeg/trunk
Originally committed as revision 22546 to svn://svn.ffmpeg.org/ffmpeg/trunk
RTSP: Synchronize the start time of the chained RTP muxers
This makes sure that the streams get correctly synchronized when viewed,previously the streams were out of sync by as much time as it tookbetween the initialization of the individual muxers.
Originally committed as revision 22545 to svn://svn.ffmpeg.org/ffmpeg/trunk
move ff_url_split() and ff_url_join() declarations to internal.hthose functions are not part of the public API
Originally committed as revision 22534 to svn://svn.ffmpeg.org/ffmpeg/trunk
Cosmetics, break a long line, fix brace placement
Originally committed as revision 22465 to svn://svn.ffmpeg.org/ffmpeg/trunk
RTSP muxer: Create the SDP with the numerical IP of the peerinstead of using the original host name
Originally committed as revision 22464 to svn://svn.ffmpeg.org/ffmpeg/trunk
Include os_support.h which has a fallback declaration of socklen_t
This fixes compilation on some OSes
Patch by Dave Yeo, daveryeo at telus dot net
Originally committed as revision 22426 to svn://svn.ffmpeg.org/ffmpeg/trunk
Use rt->control_uri consequently instead of s->filename in all RTSP commands
Originally committed as revision 22403 to svn://svn.ffmpeg.org/ffmpeg/trunk
RTSP: Resolve and use the actual IP address of the peer we're connected to,instead of using the original host name, since the RTP (and UDP) protocolsmay choose another IP address if the host name resolves into several differentaddresses.
Originally committed as revision 22398 to svn://svn.ffmpeg.org/ffmpeg/trunk
Originally committed as revision 22322 to svn://svn.ffmpeg.org/ffmpeg/trunk
Rename url_split to ff_url_split
Since this function isn't in the public API, it should have an ff_ prefix.
Originally committed as revision 22321 to svn://svn.ffmpeg.org/ffmpeg/trunk
Localize the #define _SVID_SOURCE needed for inet_aton() to os_support.c
Originally committed as revision 22284 to svn://svn.ffmpeg.org/ffmpeg/trunk
Use ff_url_join for assembling URLs, instead of snprintf
This ensures proper escaping of numerical IPv6 addresses.
The RTSP (de)muxer needs its own network initialization, since it isn'ta protocol and url_open hasn't been called yet.
Originally committed as revision 22226 to svn://svn.ffmpeg.org/ffmpeg/trunk
Rename RTP depacketizer files from rtp_* to rtpdec_*
Originally committed as revision 22109 to svn://svn.ffmpeg.org/ffmpeg/trunk
Cosmetics: reindent
Originally committed as revision 21995 to svn://svn.ffmpeg.org/ffmpeg/trunk
Prefix non-static RTSP functions with ff_.
Originally committed as revision 21974 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add an RTSP muxer
Originally committed as revision 21971 to svn://svn.ffmpeg.org/ffmpeg/trunk
Free metadata in chained RTP muxers in the RTSP muxer
This fixes a minor memory leak
Originally committed as revision 21970 to svn://svn.ffmpeg.org/ffmpeg/trunk
Originally committed as revision 21969 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add declarations and doxygen documentation of generic rtsp support functionsto rtsp.h, and make the functions non-static
Originally committed as revision 21968 to svn://svn.ffmpeg.org/ffmpeg/trunk
Cosmetics: reindent after applying patches
Originally committed as revision 21967 to svn://svn.ffmpeg.org/ffmpeg/trunk
Don't follow RTSP redirects when used as a muxer
Originally committed as revision 21966 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add a function rtsp_setup_output_streams for announcing the SDPand setting up the internal RTSPStream data structures when usingthe RTSP code in muxer mode.
Originally committed as revision 21965 to svn://svn.ffmpeg.org/ffmpeg/trunk
Create AVFormatContext objects as private transport for output RTSP sessions
Originally committed as revision 21964 to svn://svn.ffmpeg.org/ffmpeg/trunk
Split rtsp_read_header() into two functions, so that the main part (now alsoknown as rtsp_connect()) can be used in the RTSP muxer.
Patch by Martin Storsjö <$firstname $firstname st>.
Originally committed as revision 21915 to svn://svn.ffmpeg.org/ffmpeg/trunk
Split out input-specific parts of rtsp_read_header() into its own, new,function (rtsp_setup_input_streams()), as preparation for the upcomingRTSP muxer.
Originally committed as revision 21914 to svn://svn.ffmpeg.org/ffmpeg/trunk
Only send out NAT-punching RTP/RTCP packets when we're in demuxer mode, i.e.don't send them when acting as a RTSP muxer.
Originally committed as revision 21913 to svn://svn.ffmpeg.org/ffmpeg/trunk
Use mode=receive instead of mode=play if in RTSP muxer (instead of demuxer)mode.
Originally committed as revision 21912 to svn://svn.ffmpeg.org/ffmpeg/trunk
Make rtsp_close_streams() take a AVFormatContext instead of a RTSPStateargument, so we can use AVFormatContext->* here in the future.
Originally committed as revision 21911 to svn://svn.ffmpeg.org/ffmpeg/trunk
Rename RTSP_STATE_PLAYING to _STREAMING, since that better covers thefuture use of the rtsp* codebase for RTSP muxing.
Originally committed as revision 21896 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add functions to send RTSP commands with content attached to them. This willbe used eventually in the RTSP muxer (see thread "[PATCH] RTSP muxer, round3" on mailinglist).
Originally committed as revision 21862 to svn://svn.ffmpeg.org/ffmpeg/trunk
When using RTP-over-UDP, send dummy packets during stream setup, similar towhat e.g. RealPlayer does. This allows proper port forwarding setup in NAT-based environments.
Patch by Martin Storsjö <$firstname at $firstname dot st>.
Originally committed as revision 21856 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reindent after r21741.
Originally committed as revision 21742 to svn://svn.ffmpeg.org/ffmpeg/trunk
Don't forget to set known audio parameters (samplerate, etc.) if the codec isnot supported in FFmpeg. This will cause crashes later because the samplerateis used to initialize the timebase.
Originally committed as revision 21741 to svn://svn.ffmpeg.org/ffmpeg/trunk
Don't use tcp_fd if we're not using TCP-based connections (e.g. whenreading direct SDP files to set up UDP-based RTP-streams). Fixesissue 1713. Patch by Jeremy Morton <ffmpeg game-point net>.
Originally committed as revision 21461 to svn://svn.ffmpeg.org/ffmpeg/trunk
Use the control URI from the SDP (if present) rather than the input filename,if present. This fixes playback of a number of MS-RTSP streams, mostly thesefor which playback contains a session key in the URI. Fixes issue 1697.Patch by Alan Steremberg <$firstname dot $lastname () gmail com>....
Remove reply and content_ptr arguments from rtsp_send_cmd_async(), sincethey are unused.
Originally committed as revision 21371 to svn://svn.ffmpeg.org/ffmpeg/trunk
Change on rtsp_send_cmd() to the _async() version since we don't use theresponse anyway.
Originally committed as revision 21370 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reindent after r21368.
Originally committed as revision 21369 to svn://svn.ffmpeg.org/ffmpeg/trunk
Pretty embarassing bug; we shouldn't use av_strlcatf() on an uninitializedbuffer, that is doomed to not work at some point.
Originally committed as revision 21368 to svn://svn.ffmpeg.org/ffmpeg/trunk
Fix issue1658 (trailing space in rtpmap descriptor).
Originally committed as revision 21187 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add correct log context to av_log() calls in parse_rtpmap().
Originally committed as revision 21072 to svn://svn.ffmpeg.org/ffmpeg/trunk
Re-indent to more closely follow general coding standards used in otherparts of FFmpeg. Also change a starting condition; while (condition) {... bla = bla->next; } loop into a proper for() loop.
Originally committed as revision 21071 to svn://svn.ffmpeg.org/ffmpeg/trunk
Remove forward declarations.
Originally committed as revision 21020 to svn://svn.ffmpeg.org/ffmpeg/trunk
Fix typo.
Originally committed as revision 20990 to svn://svn.ffmpeg.org/ffmpeg/trunk
Remove residual use of the doxygen markup which is deprecated,consistent with r19122.
Originally committed as revision 20989 to svn://svn.ffmpeg.org/ffmpeg/trunk
Rename internal functionsdp_read_packet -> rtsp_fetch_packet
This way describes slightly better what it does.
Originally committed as revision 20982 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add some "#if"s to avoid compiling the RTSP code when the RTSP demuxeris disabled, and remove a useless "#if CONFIG_SDP_DEMUXER"
Originally committed as revision 20530 to svn://svn.ffmpeg.org/ffmpeg/trunk
Split the sdp_read_packet() function out of rtsp_read_packet().This allows to avoid compiling RTSP code when not needed.
Originally committed as revision 20526 to svn://svn.ffmpeg.org/ffmpeg/trunk
Move some some functions around, so that splitting the SDP code out ofrtsp_read_packet() is simpler.
Originally committed as revision 20525 to svn://svn.ffmpeg.org/ffmpeg/trunk
rtsp_close_streams frees the auth_b64 line already
Originally committed as revision 20370 to svn://svn.ffmpeg.org/ffmpeg/trunk
Support 3xx redirection in rtsp
All the error codes 3xx got managed the same way.After setup/early play redirection will not be managedREDIRECT method is yet to be supported (if somebody knows a server implementingit please contact me)
Originally committed as revision 20369 to svn://svn.ffmpeg.org/ffmpeg/trunk
Just remove params understood by the demuxer
This should unbreak certain urls.
Originally committed as revision 20364 to svn://svn.ffmpeg.org/ffmpeg/trunk
Suppress ?params in the rtsp uri
Right now rtsp demuxer receives it's ffmpeg specific params encoded in the urlThat made the server receiving requests with the url ending with "?udp","?multicast" and "?tcp". That may or may not cause problems to servers with...
Use sdp c= line if the rtsp Transport line doesn't have a destination
Transport:destination in rtsp is optional, c= line in sdp is compulsory
Patch from Armand Bendanan (name.surnameATfreeDOTfr)
Originally committed as revision 20362 to svn://svn.ffmpeg.org/ffmpeg/trunk
Remove ancient redir demuxer.HTTP supports redirection just fine without it.
Originally committed as revision 20361 to svn://svn.ffmpeg.org/ffmpeg/trunk
Unscrewup indentation (pointed out by Diego).
Originally committed as revision 19910 to svn://svn.ffmpeg.org/ffmpeg/trunk
RTSP basic authentication, patch originally by Philip Coombes(philip coombes zoneminder com), see "[PATCH]RTSP Basic Authentication" thread on mailinglist.
Originally committed as revision 19905 to svn://svn.ffmpeg.org/ffmpeg/trunk
Implement support for EOS as used by WMS and other RTSP servers that do notimplement RTCP/bye. See "[PATCH] rtsp.c: EOS support" thread from a fewmonths back.
Originally committed as revision 19517 to svn://svn.ffmpeg.org/ffmpeg/trunk
Support seeking as defined by the rfc
a PLAY with Range alone while in PLAY status should be interpretedas an enqueuea PAUSE followed by a PLAY with Range is the proper way to ask toseek to a point.
See rfc2326
Originally committed as revision 19143 to svn://svn.ffmpeg.org/ffmpeg/trunk
Move function for reading whole specified amount of data from RTSPdemuxer into more common place.
Originally committed as revision 19087 to svn://svn.ffmpeg.org/ffmpeg/trunk
fix compilation with DEBUG defined
Originally committed as revision 19016 to svn://svn.ffmpeg.org/ffmpeg/trunk
Fix crash when receiving from SDP
Originally committed as revision 18635 to svn://svn.ffmpeg.org/ffmpeg/trunk
Send dummy requests over the TCP connection (WMS wants GET_PARAMETER,Real wants OPTIONS) while the connection is idle, otherwise it willbe aborted after a short period (usually a minute). See the thread"[PATCH] rtsp.c: keep-alive" on the mailinglist.
Originally committed as revision 18525 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add a Vorbis payload parser. Implemented by Colin McQuillan as a GSoCqualification task, see "RTP/Vorbis payload implementation (GSoC qualtask)" thread on mailinglist.
Originally committed as revision 18509 to svn://svn.ffmpeg.org/ffmpeg/trunk
Increase the SDP buffer size (again!) and also increase the temporarybuffer size of the fmtp parameter buffer. For Vorbis RTP, thesecontain full Vorbis headers, which can be up to 12kb each, formattedin base64, so 16kb total. Patch required for proper Vorbis/RTP playback,...
strchr(string, '\0') returns non-NULL, and is thus not suited for use inredir_isspace(char) to check if '\0' is a space or not. Therefore, we nowuse memchr(), since then we can give the length of the string (i.e. thelength excluding the terminating '\0'). Fixes issue 919, see also the...
Remove slash-skipping code because the function called right after thatstatement (get_word_sep()) already does that all by itself. See summary in"[PATCH] rtsp.c small cleanups" thread on mailinglist.
Originally committed as revision 18128 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reindent something where a if () --> { <-- is on a newline rather than on thesame line as the if. See summary in "[PATCH] rtsp.c small cleanups" thread onmailinglist.
Originally committed as revision 18127 to svn://svn.ffmpeg.org/ffmpeg/trunk
Free metadata if already allocated; fixes a memleak if the header occurs twicein a stream (e.g. malicious input, broken file, etc.). See summary in "[PATCH]rtsp.c small cleanups" thread on mailinglist.
Originally committed as revision 18126 to svn://svn.ffmpeg.org/ffmpeg/trunk
Fix silly bug in hex_to_data() where it compares a string pointer for whetherit is '\0' rather than its content (char *p; if (p '\0') instead of if(*p '\0')). See summary in "[PATCH] rtsp.c small cleanups" thread onmailinglist.
Originally committed as revision 18125 to svn://svn.ffmpeg.org/ffmpeg/trunk
Remove useless comment about something that is deprecated. See summary in"[PATCH] rtsp.c small cleanups" thread on mailinglist.
Originally committed as revision 18124 to svn://svn.ffmpeg.org/ffmpeg/trunk
Use skip_spaces() in the "redir" demuxer instead of "while (isspace(&p)) p++".See summary in "[PATCH] rtsp.c small cleanups" thread on mailinglist.
Originally committed as revision 18123 to svn://svn.ffmpeg.org/ffmpeg/trunk
Merge functional code from get_word() and get_word_sep() into a singlefunction, since they both do approximately the same thing. At the same time,remove redir_isspace() altogether since code elsewhere (includingget_word_sep()) uses strchr() for the same purpose. See summary in "[PATCH]...
Allow (and parse) incoming server messages (notices) interleaved with TCPdata packets or in addition to UDP data packets, over the RTSP/TCP connection.See discussion in [PATCH] rtsp.c: read TCP server notifications/messages" thread on mailinglist.
Originally committed as revision 18121 to svn://svn.ffmpeg.org/ffmpeg/trunk
Reindent after r18023.
Originally committed as revision 18024 to svn://svn.ffmpeg.org/ffmpeg/trunk
Add RTP/ASF header parsing, which is part of the SDP of these streams. Seepatch discussion in "[PATCH] RTSP-MS 10/15: ASF header parsing" thread.
Originally committed as revision 18023 to svn://svn.ffmpeg.org/ffmpeg/trunk
rtpmap is case-insensitive, see comment from Luca in "[PATCH] rtsp.c:keep-alive" thread.
Originally committed as revision 17862 to svn://svn.ffmpeg.org/ffmpeg/trunk
Oops, very silly typo.
Originally committed as revision 17853 to svn://svn.ffmpeg.org/ffmpeg/trunk
Split rtsp_send_cmd() into two functions, one for the actual sending of thecommand and a second, new function to read the reply to this command. Thiswill make it possible to read server notices that are not in response to acommand in future versions, such as EOS or interrupt notices. See "[PATCH]...