[FFmpeg-trac] #7187(avformat:new): ffmpeg stops immediately when sending by libsrt

FFmpeg trac at avcodec.org
Thu May 3 04:56:12 EEST 2018


#7187: ffmpeg stops immediately when sending by libsrt
----------------------------------+--------------------------------------
             Reporter:  koba      |                     Type:  defect
               Status:  new       |                 Priority:  normal
            Component:  avformat  |                  Version:  git-master
             Keywords:  libsrt    |               Blocked By:
             Blocking:            |  Reproduced by developer:  0
Analyzed by developer:  0         |
----------------------------------+--------------------------------------
 Summary of the bug:

 Build ffmpeg on git tag 'n4.1-dev' with configure --enable-libsrt.
 Transmitting by SRT always fails.

 How to reproduce:
 Receiver
 {{{
 % ffplay -i 'srt://localhost:3000?mode=listener'
 }}}

 Sender
 {{{
 % ffmpeg -report -re -f lavfi -i testsrc=s=1280x720:r=30 -c:v libx264 -f
 mpegts 'srt://localhost:3000'
 }}}

 Sender ffmpeg stops with these error
 {{{
 18:46:44.038217/ffmpeg*E: SRT.c: LiveSmoother: payload size: 9024 exceeds
 maximum allowed 1316
 [srt @ 0x273f980] Operation not supported: Incorrect use of Message API
 (sendmsg/recvmsg)..
 av_interleaved_write_frame(): Unknown error occurred
 Error writing trailer of srt://localhost:3000: Unknown error occurred
 }}}

 I attach full error.log and output file by '-report' option.

 FYI: this quick dirty patch fixes this problem.
 {{{
 diff --git a/libavformat/libsrt.c b/libavformat/libsrt.c
 index 0f9529d..073261b 100644
 --- a/libavformat/libsrt.c
 +++ b/libavformat/libsrt.c
 @@ -466,6 +466,7 @@ static int libsrt_open(URLContext *h, const char *uri,
 int flags)
              }
          }
      }
 +    h->max_packet_size = 1316;
      return libsrt_setup(h, uri, flags);
  }
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7187>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list