[FFmpeg-trac] #2761(avformat:open): RTSP DESCRIBE without a User-Agent causes some IP Cameras to close the connection
FFmpeg
trac at avcodec.org
Tue Jul 9 20:03:02 CEST 2013
#2761: RTSP DESCRIBE without a User-Agent causes some IP Cameras to close the
connection
------------------------------------+------------------------------------
Reporter: imavra | Owner:
Type: defect | Status: open
Priority: normal | Component: avformat
Version: git-master | Resolution:
Keywords: rtsp | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+------------------------------------
Comment (by imavra):
Yep the patch works!
Example of avprobe (technically the same patch would work here):
{{{
functor at ichigo:~/bin$ ffprobe rtsp://192.168.0.220:554/stream1/
avprobe version 0.8.6-6:0.8.6-1ubuntu2, Copyright (c) 2007-2013 the Libav
developers
built on Mar 30 2013 22:23:21 with gcc 4.7.2
rtsp://192.168.0.220:554/stream1/: Invalid data found when processing
input
}}}
Example of ffmpeg with your patch:
{{{
functor at ichigo:~/bin$ ./ffprobe rtsp://192.168.0.220:554/stream1/
ffprobe version git-2013-07-09-c5a1b18 Copyright (c) 2007-2013 the FFmpeg
developers
built on Jul 9 2013 18:42:27 with gcc 4.7 (Ubuntu/Linaro
4.7.3-1ubuntu1)
configuration: --prefix=/home/functor/ffmpeg_build --extra-
cflags=-I/home/functor/ffmpeg_build/include --extra-
ldflags=-L/home/functor/ffmpeg_build/lib --bindir=/home/functor/bin
--extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac
--enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis
--enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab
libavutil 52. 38.100 / 52. 38.100
libavcodec 55. 18.102 / 55. 18.102
libavformat 55. 11.101 / 55. 11.101
libavdevice 55. 2.100 / 55. 2.100
libavfilter 3. 79.101 / 3. 79.101
libswscale 2. 3.100 / 2. 3.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 3.100 / 52. 3.100
Input #0, rtsp, from 'rtsp://192.168.0.220:554/stream1/':
Metadata:
title : Test
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Baseline), yuv420p, 1280x1024, 90k tbr, 90k
tbn, 180k tbc
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2761#comment:6>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list