FFMpeg Milestone Open Network Bridge Error 401

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

Hi,

Please look at :

https://developer.milestonesys.com/s/article/changes-digest-authentication-RTSP-service-in-2021-R1-troubleshooting?t=1651655384508

and

https://supportcommunity.milestonesys.com/s/question/0D53X0000AGEVOoSQP/disable-sha256-authentication-in-open-network-bridge?language=en_US

Kind Regards,

Svetlana

Hi,

I have changed the registry to the indicated values, but the error persists.

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:Dorlet2024.@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:Dorlet2024.@172.17.4.2:554/vod/3c0b0475-53b0-4c67-82e3-290107acfc0b.

Successfully parsed a group of options.

Opening an input file: rtsp://test:Dorlet2024.@172.17.4.2:554/vod/3c0b0475-53b0-4c67-82e3-290107acfc0b.

[tcp @ 000001c413479140] No default whitelist set

[tcp @ 000001c413479140] Original list of addresses:

[tcp @ 000001c413479140] Address 172.17.4.2 port 554

[tcp @ 000001c413479140] Interleaved list of addresses:

[tcp @ 000001c413479140] Address 172.17.4.2 port 554

[tcp @ 000001c413479140] Starting connection attempt to 172.17.4.2 port 554

[tcp @ 000001c413479140] Successfully connected to 172.17.4.2 port 554

[rtsp @ 000001c4134612c0] method DESCRIBE failed: 401 Unauthorized

[rtsp @ 000001c4134612c0] CSeq: 3

Date: Fri, Jan 10 2025 09:00:09 GMT

WWW-Authenticate: Digest realm=“RtspServerLibrary”, nonce=“aG4nx27foxCW0N5qqYutudYaoKKSrxBT”, algorithm=“MD5”

rtsp://test:Dorlet2024.@172.17.4.2:554/vod/3c0b0475-53b0-4c67-82e3-290107acfc0b: Server returned 401 Unauthorized (authorization failed)

Fermin

Do you experience same issue with VLC or Onvif Device Manager?

Have you added your user to the Open Network Bridge via tray manager?

Which version of ONB you use?

Do you experience same issue with VLC or Onvif Device Manager? Yes

Have you added your user to the Open Network Bridge via tray manager? Yes

Which version of ONB you use? 24.1a

Please check RTSP logs for errors (those should be in [C:\ProgramData\Milestone\Milesotne](file:C:/ProgramData/Milestone/Milesotne) Open Network Bridge\Logs)

Is it possible you 've changed password, after adding the user in tray manager? If that is the case please re-add

I removed and re-added the user to Open Network Bridge, and it is working correctly.

Thank you very much.