aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/rtsp.c
Commit message (Collapse)AuthorAgeFilesLines
* Replace dprintf with av_dlogLuca Barbato2011-01-301-5/+5
| | | | | dprintf clashes with POSIX.1-2008 (cherry picked from commit dfd2a005eb29e4b9f2fdb97036eb7d5c38ae4bd4)
* rtsp: make ff_sdp_parse return value forwardedLuca Barbato2011-01-301-1/+2
| | | | | | the sdp demuxer did not forward it at all while the rtsp demuxer assumed a single kind of error (cherry picked from commit f81c7ac70a7e5e82b0ab0839faf8d22d555efb9d)
* os: replace select with pollLuca Barbato2011-01-301-25/+30
| | | | | | Select has limitations on the fd values it could accept and silently breaks when it is reached. (cherry picked from commit a8475bbdb64e638bd8161df9647876fd23f8a29a)
* Prefix all _demuxer, _muxer, _protocol from libavformat and libavdevice.Diego Elio Pettenò2011-01-281-2/+2
| | | | | | This also lists the objects from those two libraries as internal (by adding the ff_ prefix) so that they can then be hidden via linker scripts. (cherry picked from commit c6610a216ed2948885772154a2eed696e0cb4aca)
* Make ff_rtsp_send_cmd_with_content_async static to rtsp.c.Diego Elio Pettenò2011-01-261-5/+18
| | | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net> (cherry picked from commit 57c4d01ec9286b3b9f9a0101654f7bc8a00edb63)
* rtspdec: Retry with TCP if UDP failedMartin Storsjö2011-01-261-1/+3
| | | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net> (cherry picked from commit 2762a7a28b261a505a9002b92d4f7c04eeaacc1b)
* rtsp: Use ff_rtsp_undo_setup in the cleanup code in ff_rtsp_make_requestMartin Storsjo2011-01-261-6/+1
| | | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net> (cherry picked from commit aeb2de1c82f95b74e184992a10523606f4b341fa)
* rtsp: Split out a function undoing the setup made by ff_rtsp_make_setup_requestMartin Storsjo2011-01-261-22/+37
| | | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net> (cherry picked from commit 93e7490ee0c456d7e0fa43e3bf2cb4a8eed19194)
* rtsp: Make make_setup_request a nonstatic functionMartin Storsjo2011-01-261-2/+2
| | | | | Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net> (cherry picked from commit fef5649a820b30432578e1440776e7a71bd523cc)
* rtsp: Properly fail if unable to open an input RTP portMartin Storsjö2011-01-091-0/+4
| | | | Originally committed as revision 26285 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Allow requesting of filtering of source packetsMartin Storsjö2011-01-061-3/+7
| | | | | | | | | | | | | | | | | If filtered, only packets from the right source address and port are received. To test, play back e.g. some mpeg4 video RTSP stream (where the video stream is the first stream in the presentation) over UDP. While receiving this stream, send another stream to the same port: ffmpeg -re -i <whatever> -vcodec mpeg4 -an -f rtp rtp://127.0.0.1:5000?localport=1234 Normally, the RTSP playback reports lots of errors at this point. If the RTSP stream has the ?filter_src option enabled, these interferring packets are ignored. Originally committed as revision 26246 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Parse RTP-Info headersMartin Storsjö2011-01-051-0/+59
| | | | Originally committed as revision 26236 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Store the Content-Base header value straight to the targetMartin Storsjö2011-01-021-2/+3
| | | | | | | This avoids having a large temporary buffer in the struct used for storing the rtsp reply headers. Originally committed as revision 26192 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Pass the method name to ff_rtsp_parse_lineMartin Storsjö2011-01-021-2/+2
| | | | Originally committed as revision 26191 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Pass RTSPState to ff_rtsp_parse_line, instead of HTTPAuthStateMartin Storsjö2011-01-021-6/+6
| | | | | | | | This allows ff_rtsp_parse_line to do more changes directly in RTSPState when parsing the reply, instead of having to store large amounts of temporary data in RTSPMessageHeader. Originally committed as revision 26190 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Add a method parameter to ff_rtsp_read_replyMartin Storsjö2011-01-021-3/+3
| | | | Originally committed as revision 26189 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtpdec: Emit timestamps for packets before the first RTCP packet, tooMartin Storsjö2011-01-011-2/+12
| | | | | | | | Emitted timestamps in each stream start from 0, for the first received RTP packet. Once an RTCP packet is received, that one is used for sync, emitting timestamps that fit seamlessly into the earlier ones. Originally committed as revision 26187 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Check if the rtp stream actually has an RTPDemuxContextMartin Storsjö2010-12-271-1/+4
| | | | | | | | For example MS-RTSP doesn't have RTPDemuxContexts for all streams. This fixes issue 2448. Originally committed as revision 26107 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Require the transport reply from the server to match the requestMartin Storsjö2010-12-231-5/+6
| | | | | | | | | This fixes a crash if we requested TCP interleaved transport, but the server replies with transport data for UDP. According to the RFC, the server isn't allowed to respond with another transport type than the one requested. Originally committed as revision 26077 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Don't set the RTP time base from the sample rate if no sample rate is setMartin Storsjö2010-12-151-1/+2
| | | | | | | | | This also reverts SVN rev 26016, which incorrectly overwrote the time base with 90 kHz for all streams, regardless of what was set by the SDP parsing. The stream that triggered the fix in 26016 still works after this commit. Originally committed as revision 26022 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp/rtpdec: Set the AVStream time_base directly in rtsp when it is knownMartin Storsjö2010-12-071-2/+8
| | | | | | | | | | | | This fixes cases where the RTP time base and the sample rate of the stream differ. Previously, the AVStream time_base was unconditionally set to the sample rate (which initially was set to one value when parsing the rtpmap field in the SDP, but later overridden by an a=SampleRate field). Additionally, this makes the code actually use the stream time base set in rtpmap for video codecs, instead of hardcoding it to always be 90 kHz. Originally committed as revision 25908 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Parse RealRTSP sample rate declarations from the SDPMartin Storsjö2010-12-071-0/+4
| | | | | | The RTP time base can be different from the actual content sample rate. Originally committed as revision 25907 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Look for RTP payload handlers for static payload types, tooMartin Storsjö2010-12-051-0/+5
| | | | Originally committed as revision 25893 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Factorize code for initializing the rtp payload handlerMartin Storsjö2010-12-051-12/+14
| | | | Originally committed as revision 25892 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Do a forgotten reindentingMartin Storsjö2010-11-281-17/+17
| | | | Originally committed as revision 25839 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Parse and use the Content-Base reply header, if presentMartin Storsjö2010-11-151-0/+3
| | | | | | This fixes playing RTSP urls with query parameters. Originally committed as revision 25755 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Split out the RTSP demuxer functions to a separate, new fileMartin Storsjö2010-10-291-351/+7
| | | | Originally committed as revision 25601 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Move rtsp_setup_output_streams into rtspenc.cMartin Storsjö2010-10-291-73/+1
| | | | Originally committed as revision 25600 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Add stub declarations of the setup_in/output_streams functionsMartin Storsjö2010-10-271-2/+14
| | | | | | | This may be needed to avoid calls to implicitly defined functions (that will be removed by dead code elimination later anyway). Originally committed as revision 25585 to svn://svn.ffmpeg.org/ffmpeg/trunk
* drop rtsp_default_protocols which is not part of public API and not used anymoreAurelien Jacobs2010-10-231-4/+0
| | | | Originally committed as revision 25557 to svn://svn.ffmpeg.org/ffmpeg/trunk
* use rtp_get_local_rtp_port() instead of the deprecated rtp_get_local_port()Aurelien Jacobs2010-10-231-1/+1
| | | | Originally committed as revision 25554 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Move the rtsp_probe function to the demuxer code blockMartin Storsjö2010-10-211-7/+7
| | | | | | This function is only used by the RTSP demuxer. Originally committed as revision 25537 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Untangle the dependencies between the RTSP/SDP demuxers and RTSP muxerMartin Storsjö2010-10-211-10/+23
| | | | | | | This allows compilation of one of them without requiring the others' dependencies to be present. Originally committed as revision 25535 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Reorder functionsMartin Storsjö2010-10-211-38/+38
| | | | Originally committed as revision 25534 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add a demuxer for receiving raw rtp:// URLs without an SDP descriptionMartin Storsjö2010-10-191-0/+104
| | | | | | | The demuxer inspects the payload type of a received RTP packet and handles the cases where the content is fully described by the payload type. Originally committed as revision 25527 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Factorize out code for opening a chained RTP muxerMartin Storsjö2010-10-081-60/+4
| | | | | | | | The new object file is added to the SDP demuxer in the makefile, since it is needed in both the RTSP muxer and demuxer and in the SDP demuxer, due to the current code coupling. Originally committed as revision 25410 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Make rtsp_rtp_mux_open reusableMartin Storsjö2010-10-081-4/+5
| | | | Originally committed as revision 25409 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Remove the start_time field from RTSPState, use ↵Martin Storsjö2010-10-081-3/+2
| | | | | | AVFormatContext->start_time_realtime instead Originally committed as revision 25408 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp/sdp: Move code into correct ifdefsMartin Storsjö2010-10-051-81/+87
| | | | | | | | | This makes the code dependencies correct. Previously, the SDP demuxer wasn't buildable on its own. This also reverts rev 25343. Originally committed as revision 25354 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Remove some pointless CONFIG_RTSP_DEMUXER #ifdefs.Diego Biurrun2010-10-051-4/+0
| | | | | | They reside within a large CONFIG_RTSP_DEMUXER block and are thus pointless. Originally committed as revision 25343 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Add some #endif comments to ease understanding.Diego Biurrun2010-10-051-2/+2
| | | | Originally committed as revision 25342 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: In the muxer, show the generated with verbose log levelMartin Storsjö2010-10-031-1/+1
| | | | | | It is only useful for debugging, so it doesn't have to be shown every time. Originally committed as revision 25323 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Show the received SDPMartin Storsjö2010-10-031-0/+1
| | | | Originally committed as revision 25322 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Return a queued packet if it has been in the queue for longer than ↵Martin Storsjö2010-10-011-3/+29
| | | | | | max_delay Originally committed as revision 25295 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtpdec: Reorder received RTP packets according to the seq numberMartin Storsjö2010-10-011-1/+4
| | | | | | Reordering is enabled only when receiving over UDP. Originally committed as revision 25294 to svn://svn.ffmpeg.org/ffmpeg/trunk
* Reindent/rewrapMartin Storsjö2010-10-011-8/+7
| | | | Originally committed as revision 25291 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Reorganize if statements in rtsp_read_playMartin Storsjö2010-10-011-1/+3
| | | | Originally committed as revision 25290 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp/rtpdec: Allow rtp_parse_packet to take ownership of the packet bufferMartin Storsjö2010-10-011-2/+2
| | | | | | | Do the same change for ff_rdt_parse_packet, too, to keep the interfaces similar. Originally committed as revision 25289 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Use a dynamically allocated receive bufferMartin Storsjö2010-10-011-5/+12
| | | | Originally committed as revision 25288 to svn://svn.ffmpeg.org/ffmpeg/trunk
* rtsp: Handle standard assigned codec names for private payload types, tooMartin Storsjö2010-09-151-0/+6
| | | | Originally committed as revision 25126 to svn://svn.ffmpeg.org/ffmpeg/trunk