I am executing the following command:
ffmpeg -rtsp_transport tcp -i “rtsp://test:Password@172.17.4.2:554/vod/3c0b0475-53b0-4c67-82e3-290107acfc0b” -loglevel debug -ss 00:00:00 -frames:v 1 aa.jpg
And I am encountering the following authentication error.
ffmpeg version 6.0-full_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
libavutil 58. 2.100 / 58. 2.100
libavcodec 60. 3.100 / 60. 3.100
libavformat 60. 3.100 / 60. 3.100
libavdevice 60. 1.100 / 60. 1.100
libavfilter 9. 3.100 / 9. 3.100
libswscale 7. 1.100 / 7. 1.100
libswresample 4. 10.100 / 4. 10.100
libpostproc 57. 1.100 / 57. 1.100
Splitting the commandline.
Reading option ‘-rtsp_transport’ … matched as AVOption ‘rtsp_transport’ with argument ‘tcp’.
Reading option ‘-i’ … matched as input url with argument ‘rtsp://test:Password.@172.17.4.2:554/vod/3c0b0475-53b0-4c67-82e3-290107acfc0b’.
Reading option ‘-loglevel’ … matched as option ‘loglevel’ (set logging level) with argument ‘debug’.
Reading option ‘-ss’ … matched as option ‘ss’ (set the start time offset) with argument ‘00:00:00’.
Reading option ‘-frames:v’ … matched as option ‘frames’ (set the number of frames to output) with argument ‘1’.
Reading option ‘aa.jpg’ … matched as output url.
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 rtsp://test:Password.@172.17.4.2:554/vod/3c0b0475-53b0-4c67-82e3-290107acfc0b.
Successfully parsed a group of options.
Opening an input file: rtsp://test:Password.@172.17.4.2:554/vod/3c0b0475-53b0-4c67-82e3-290107acfc0b.
[tcp @ 00000148ac6d9140] No default whitelist set
[tcp @ 00000148ac6d9140] Original list of addresses:
[tcp @ 00000148ac6d9140] Address 172.17.4.2 port 554
[tcp @ 00000148ac6d9140] Interleaved list of addresses:
[tcp @ 00000148ac6d9140] Address 172.17.4.2 port 554
[tcp @ 00000148ac6d9140] Starting connection attempt to 172.17.4.2 port 554
[tcp @ 00000148ac6d9140] Successfully connected to 172.17.4.2 port 554
[rtsp @ 00000148ac6c12c0] method DESCRIBE failed: 401 Unauthorized
[rtsp @ 00000148ac6c12c0] CSeq: 3
Date: Wed, Jan 08 2025 11:31:46 GMT
WWW-Authenticate: Digest realm=“RtspServerLibrary”, nonce=“r5uyRrqAosKnHcev7jV2kyNBuyPyf6rZ”, algorithm=“MD5”
WWW-Authenticate: Digest realm=“RtspServerLibrary”, nonce=“r5uyRrqAosKnHcev7jV2kyNBuyPyf6rZ”, algorithm=“SHA-256”
rtsp://test:Password.@172.17.4.2:554/vod/3c0b0475-53b0-4c67-82e3-290107acfc0b: Server returned 401 Unauthorized (authorization failed)
What is the issue?
Thanks
