[FFmpeg-trac] #10539(avformat:new): SRT listen on IPv6 fails
FFmpeg
trac at avcodec.org
Sun Aug 27 19:40:04 EEST 2023
#10539: SRT listen on IPv6 fails
----------------------------------+--------------------------------------
Reporter: Sesse | Type: defect
Status: new | Priority: normal
Component: avformat | Version: git-master
Keywords: libsrt | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
----------------------------------+--------------------------------------
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.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/10539>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list