[FFmpeg-trac] #7639(undetermined:new): Unable to do 'rtsp stream' when 'rtsp_flags listen'

FFmpeg trac at avcodec.org
Sun Dec 30 09:17:09 EET 2018


#7639: Unable to do 'rtsp stream' when 'rtsp_flags listen'
-------------------------------------+-------------------------------------
             Reporter:               |                    Owner:
  dinesh.gupta01                     |                   Status:  new
                 Type:  defect       |                Component:
             Priority:  normal       |  undetermined
              Version:  git-master   |               Resolution:
             Keywords:  rtsp         |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by dinesh.gupta01):

 I downloaded latest nightly build run the below command

 C:\ffmpeg_latest>ffmpeg -loglevel trace -f gdigrab -i desktop -sdp_file
 stream1.sdp  -rtsp_flags listen -f rtsp rtsp://10.0.0.30:15450
 ffmpeg version N-92833-gfccba32b4c Copyright (c) 2000-2018 the FFmpeg
 developers
   built with gcc 8.2.1 (GCC) 20181201
   configuration: --disable-static --enable-shared --enable-gpl --enable-
 version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv
 --enable-libass --enable-libbluray --enable-libfreetype --enable-
 libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-
 libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy
 --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx
 --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265
 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp
 --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-
 libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-
 libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va
 --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-
 libopenmpt
   libavutil      56. 25.100 / 56. 25.100
   libavcodec     58. 42.104 / 58. 42.104
   libavformat    58. 25.100 / 58. 25.100
   libavdevice    58.  6.101 / 58.  6.101
   libavfilter     7. 46.101 /  7. 46.101
   libswscale      5.  4.100 /  5.  4.100
   libswresample   3.  4.100 /  3.  4.100
   libpostproc    55.  4.100 / 55.  4.100
 Splitting the commandline.
 Reading option '-loglevel' ... matched as option 'loglevel' (set logging
 level) with argument 'trace'.
 Reading option '-f' ... matched as option 'f' (force format) with argument
 'gdigrab'.
 Reading option '-i' ... matched as input url with argument 'desktop'.
 Reading option '-sdp_file' ... matched as option 'sdp_file' (specify a
 file in which to print sdp information) with argument 'stream1.sdp'.
 Reading option '-rtsp_flags' ... matched as AVOption 'rtsp_flags' with
 argument 'listen'.
 Reading option '-f' ... matched as option 'f' (force format) with argument
 'rtsp'.
 Reading option 'rtsp://10.0.0.30:15450' ... matched as output url.
 Finished splitting the commandline.
 Parsing a group of options: global .
 Applying option loglevel (set logging level) with argument trace.
 Applying option sdp_file (specify a file in which to print sdp
 information) with argument stream1.sdp.
 Successfully parsed a group of options.
 Parsing a group of options: input url desktop.
 Applying option f (force format) with argument gdigrab.
 Successfully parsed a group of options.
 Opening an input file: desktop.
 [gdigrab @ 0437db40] Capturing whole desktop as 1366x768x32 at (0,0)
 [gdigrab @ 0437db40] Cursor pos (1363,51) -> (1363,51)
     Last message repeated 1 times
 [gdigrab @ 0437db40] Probe buffer size limit of 5000000 bytes reached
 [gdigrab @ 0437db40] Stream #0: not enough frames to estimate rate;
 consider increasing probesize
 [gdigrab @ 0437db40] stream 0: start_time: 1546151393.403 duration:
 -9223372036854.775
 [gdigrab @ 0437db40] format: start_time: 1546151393.403 duration:
 -9223372036854.775 bitrate=1006131 kb/s
 Input #0, gdigrab, from 'desktop':
   Duration: N/A, start: 1546151393.403101, bitrate: 1006131 kb/s
     Stream #0:0, 2, 1/1000000: Video: bmp, 1 reference frame, bgra,
 1366x768, 0/1, 1006131 kb/s, 29.97 fps, 1000k tbr, 1000k tbn, 1000k tbc
 Successfully opened the file.
 Parsing a group of options: output url rtsp://10.0.0.30:15450.
 Applying option f (force format) with argument rtsp.
 Successfully parsed a group of options.
 Opening an output file: rtsp://10.0.0.30:15450.
 Successfully opened the file.
 Stream mapping:
   Stream #0:0 -> #0:0 (bmp (native) -> mpeg4 (native))
 Press [q] to stop, [?] for help
 cur_dts is invalid (this is harmless if it occurs once at the start per
 stream)
 detected 4 logical cores
 [graph 0 input from stream 0:0 @ 0428b480] Setting 'video_size' to value
 '1366x768'
 [graph 0 input from stream 0:0 @ 0428b480] Setting 'pix_fmt' to value '28'
 [graph 0 input from stream 0:0 @ 0428b480] Setting 'time_base' to value
 '1/1000000'
 [graph 0 input from stream 0:0 @ 0428b480] Setting 'pixel_aspect' to value
 '0/1'
 [graph 0 input from stream 0:0 @ 0428b480] Setting 'sws_param' to value
 'flags=2'
 [graph 0 input from stream 0:0 @ 0428b480] Setting 'frame_rate' to value
 '30000/1001'
 [graph 0 input from stream 0:0 @ 0428b480] w:1366 h:768 pixfmt:bgra
 tb:1/1000000 fr:30000/1001 sar:0/1 sws_param:flags=2
 [format @ 0428b9c0] Setting 'pix_fmts' to value 'yuv420p'
 [auto_scaler_0 @ 0428be80] Setting 'flags' to value 'bicubic'
 [auto_scaler_0 @ 0428be80] w:iw h:ih flags:'bicubic' interl:0
 [format @ 0428b9c0] auto-inserting filter 'auto_scaler_0' between the
 filter 'Parsed_null_0' and the filter 'format'
 [AVFilterGraph @ 04277200] query_formats: 4 queried, 2 merged, 1 already
 done, 0 delayed
 [auto_scaler_0 @ 0428be80] w:1366 h:768 fmt:bgra sar:0/1 -> w:1366 h:768
 fmt:yuv420p sar:0/1 flags:0x4
 [mpeg4 @ 04285e00] intra_quant_bias = 0 inter_quant_bias = -64
 [tcp @ 042a9940] No default whitelist set
 [tcp @ 042a9940] Original list of addresses:
 [tcp @ 042a9940] Address 10.0.0.30 port 15450
 [tcp @ 042a9940] Interleaved list of addresses:
 [tcp @ 042a9940] Address 10.0.0.30 port 15450
 [tcp @ 042a9940] Starting connection attempt to 10.0.0.30 port 15450

 ---------------------------------
 And tried to connect from VLC player then received error:
    VLC is unable to open the MRL 'rtsp://10.0.0.30/15450'

 So basically it is not waiting for client to connect the ffmepg rtsp.

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


More information about the FFmpeg-trac mailing list