[FFmpeg-trac] #7297(undetermined:new): RTSP over HTTP does not work (with some devices) since v2.0.7

FFmpeg trac at avcodec.org
Wed Jul 4 17:03:02 EEST 2018


#7297: RTSP over HTTP does not work (with some devices) since v2.0.7
-------------------------------------+-------------------------------------
             Reporter:  RafaG        |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  unspecified  |  undetermined
             Keywords:               |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by RafaG):

 Another not working output:

 ffmpeg-2.2.16$ ./ffmpeg -debug 100 -rtsp_transport http -i
 "rtsp://root:camera84@192.168.0.77:80/axis-media/media.amp" -codec copy -y
 /tmp/test.mkv
 ffmpeg version 2.2.16 Copyright (c) 2000-2015 the FFmpeg developers
   built on Jul  4 2018 15:32:58 with gcc 6.3.0 (Debian 6.3.0-18+deb9u1)
 20170516
   configuration:
   libavutil      52. 66.100 / 52. 66.100
   libavcodec     55. 52.102 / 55. 52.102
   libavformat    55. 33.100 / 55. 33.100
   libavdevice    55. 10.100 / 55. 10.100
   libavfilter     4.  2.100 /  4.  2.100
   libswscale      2.  5.102 /  2.  5.102
   libswresample   0. 18.100 /  0. 18.100
  matched as AVOption 'debug' with argument '100'.
 Reading option '-rtsp_transport' ... matched as AVOption 'rtsp_transport'
 with argument 'http'.
 Reading option '-i' ... matched as input file with argument
 'rtsp://root:camera84@192.168.0.77:80/axis-media/media.amp'.
 Reading option '-codec' ... matched as option 'codec' (codec name) with
 argument 'copy'.
 Reading option '-y' ... matched as option 'y' (overwrite output files)
 with argument '1'.
 Reading option '/tmp/test.mkv' ... matched as output file.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option y (overwrite output files) with argument 1.
 Successfully parsed a group of options.
 Parsing a group of options: input file
 rtsp://root:camera84@192.168.0.77:80/axis-media/media.amp.
 Successfully parsed a group of options.
 Opening an input file: rtsp://root:camera84@192.168.0.77:80/axis-
 media/media.amp.
 [http @ 0x559195831d20] request: GET /axis-media/media.amp HTTP/1.1
 User-Agent: Lavf/55.33.100
 Range: bytes=0-
 Connection: close
 Host: 192.168.0.77:80
 x-sessioncookie: a97334b03b812835
 Accept: application/x-rtsp-tunnelled
 Pragma: no-cache
 Cache-Control: no-cache


 [http @ 0x559195831d20] header='HTTP/1.0 200 OK'
 [http @ 0x559195831d20] http_code=200
 [http @ 0x559195831d20] header='Server: GStreamer RTSP Server'
 [http @ 0x559195831d20] header='Connection: close'
 [http @ 0x559195831d20] header='Cache-Control: no-store'
 [http @ 0x559195831d20] header='Pragma: no-cache'
 [http @ 0x559195831d20] header='X-Server-IP-Address: 192.168.0.77'
 [http @ 0x559195831d20] header='Content-Type: application/x-rtsp-
 tunnelled'
 [http @ 0x559195831d20] header='Date: Wed, 04 Jul 2018 13:57:49 GMT'
 [http @ 0x559195831d20] header=''
 [http @ 0x559195833780] request: POST /axis-media/media.amp HTTP/1.1
 User-Agent: Lavf/55.33.100
 Accept: */*
 Expect: 100-continue
 Connection: close
 Host: 192.168.0.77:80
 x-sessioncookie: a97334b03b812835
 Content-Type: application/x-rtsp-tunnelled
 Pragma: no-cache
 Cache-Control: no-cache
 Content-Length: 32767
 Expires: Sun, 9 Jan 1972 00:00:00 GMT


 rtsp://root:camera84@192.168.0.77:80/axis-media/media.amp: Input/output
 error
 Conversion failed!




 And yet another one with latest version:

 ffmpeg-4.0.1$ ./ffmpeg -debug 100 -rtsp_transport http -i
 "rtsp://root:camera84@192.168.0.77:80/axis-media/media.amp" -codec copy -y
 /tmp/test.mkv
 ffmpeg version 4.0.1 Copyright (c) 2000-2018 the FFmpeg developers
   built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
   configuration: --enable-shared --enable-pic --disable-doc --enable-
 ffplay --enable-gpl --enable-nonfree --enable-libtheora --enable-libvorbis
 --enable-libx264 --enable-libvpx --extra-ldflags='-Wl,-rpath,.
 -Wl,-rpath,../lib/'
   libavutil      56. 14.100 / 56. 14.100
   libavcodec     58. 18.100 / 58. 18.100
   libavformat    58. 12.100 / 58. 12.100
   libavdevice    58.  3.100 / 58.  3.100
   libavfilter     7. 16.100 /  7. 16.100
   libswscale      5.  1.100 /  5.  1.100
   libswresample   3.  1.100 /  3.  1.100
   libpostproc    55.  1.100 / 55.  1.100
  matched as AVOption 'debug' with argument '100'.
 Reading option '-rtsp_transport' ... matched as AVOption 'rtsp_transport'
 with argument 'http'.
 Reading option '-i' ... matched as input url with argument
 'rtsp://root:camera84@192.168.0.77:80/axis-media/media.amp'.
 Reading option '-codec' ... matched as option 'codec' (codec name) with
 argument 'copy'.
 Reading option '-y' ... matched as option 'y' (overwrite output files)
 with argument '1'.
 Reading option '/tmp/test.mkv' ... matched as output url.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option y (overwrite output files) with argument 1.
 Successfully parsed a group of options.
 Parsing a group of options: input url rtsp://root:camera84@192.168.0.77:80
 /axis-media/media.amp.
 Successfully parsed a group of options.
 Opening an input file: rtsp://root:camera84@192.168.0.77:80/axis-
 media/media.amp.
 [http @ 0x564ee4a48440] Setting default whitelist
 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
 [http @ 0x564ee4a48440] request: GET /axis-media/media.amp HTTP/1.1
 User-Agent: Lavf/58.12.100
 Range: bytes=0-
 Connection: close
 Host: 192.168.0.77:80
 Icy-MetaData: 1
 x-sessioncookie: 46fffc1559edd18e
 Accept: application/x-rtsp-tunnelled
 Pragma: no-cache
 Cache-Control: no-cache


 [http @ 0x564ee4a4a400] Setting default whitelist
 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
 [http @ 0x564ee4a4a400] request: POST /axis-media/media.amp HTTP/1.1
 User-Agent: Lavf/58.12.100
 Accept: */*
 Expect: 100-continue
 Connection: close
 Host: 192.168.0.77:80
 Icy-MetaData: 1
 x-sessioncookie: 46fffc1559edd18e
 Content-Type: application/x-rtsp-tunnelled
 Pragma: no-cache
 Cache-Control: no-cache
 Content-Length: 32767
 Expires: Sun, 9 Jan 1972 00:00:00 GMT


 rtsp://root:camera84@192.168.0.77:80/axis-media/media.amp: Input/output
 error

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7297#comment:1>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list