Opened 5 years ago

Last modified 5 years ago

#7873 new enhancement

ffmpeg as rtsp server with authentication is not working

Reported by: duttaparthib Owned by:
Priority: wish Component: avformat
Version: git-master Keywords: rtsp
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce:

ffmpeg -loglevel debug  -listen 1 -i rtmp://admin:admin@0.0.0.0:8888/live out.m3u8

Here I am using ffmpeg as the streaming server with credentials . But when I stream to the endpoint without credentials , it should give me 401 but instead credentials are totally bypassed and I was able to stream to the url without credentials . Am I doing something wrong or is this a bug ?

Change History (2)

comment:1 by Carl Eugen Hoyos, 5 years ago

Component: undeterminedavformat
Keywords: rtsp added
Priority: importantwish
Type: defectenhancement
Version: unspecifiedgit-master

Complete, uncut console output missing but I guess this is an enhancement request.

comment:2 by duttaparthib, 5 years ago

I am sorry , here is the output

ffmpeg version N-93634-geeca67e023 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 8.3.1 (GCC) 20190414
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --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. 26.100 / 56. 26.100
  libavcodec     58. 52.100 / 58. 52.100
  libavformat    58. 27.103 / 58. 27.103
  libavdevice    58.  7.100 / 58.  7.100
  libavfilter     7. 49.100 /  7. 49.100
  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 'debug'.
Reading option '-listen' ... matched as AVOption 'listen' with argument '1'.
Reading option '-i' ... matched as input url with argument 'rtmp://admin:admin@0.0.0.0:8888/live out.m3u8'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url rtmp://admin:admin@0.0.0.0:8888/live out.m3u8.
Successfully parsed a group of options.
Opening an input file: rtmp://admin:admin@0.0.0.0:8888/live out.m3u8.
[NULL @ 0000022a86ab8f40] Opening 'rtmp://admin:admin@0.0.0.0:8888/live out.m3u8' for reading
[rtmp @ 0000022a86aba200] No default whitelist set
[rtmp @ 0000022a86aba200] Detected librtmp style URL parameters, these aren't supported by the libavformat internal RTMP handler currently enabled. See the documentation for the correct way to pass parameters.
[tcp @ 0000022a86aba140] No default whitelist set
}}
Note: See TracTickets for help on using tickets.