Opened 8 months ago

#10539 new defect

SRT listen on IPv6 fails

Reported by: Sesse Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: libsrt
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

How to reproduce:

% ./ffmpeg -i 'srt://[::]:9710?mode=listener' foo.mp4
ffmpeg version N-111830-gc48ec95ba3 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 13 (Debian 13.2.0-1)
  configuration: --enable-libsrt
  libavutil      58. 17.100 / 58. 17.100
  libavcodec     60. 23.100 / 60. 23.100
  libavformat    60. 10.101 / 60. 10.101
  libavdevice    60.  2.101 / 60.  2.101
  libavfilter     9. 11.100 /  9. 11.100
  libswscale      7.  3.100 /  7.  3.100
  libswresample   4. 11.100 /  4. 11.100
[srt @ 0x557d57e23600] Operation not supported: Bad parameters
[in#0 @ 0x557d57e22cc0] Error opening input: Unknown error occurred
Error opening input file srt://[::]:9710?mode=listener.
Error opening input files: Unknown error occurred

It seems this broke with libsrt 1.5.0, cf.: https://github.com/Haivision/srt/issues/2764

Seemingly FFmpeg needs to add a setsockopt call to SRTO_IPV6ONLY (preferably to zero, so that one can listen on IPv4+IPv6), or listening is forever restricted to legacy IP.

Change History (0)

Note: See TracTickets for help on using tickets.