[FFmpeg-devel] [PATCH] libavformat: add librist protocol

Marton Balint cus at passwd.hu
Sun Jan 31 13:46:38 EET 2021



On Sun, 31 Jan 2021, Paul B Mahol wrote:

> On Sun, Jan 31, 2021 at 12:29 PM Marton Balint <cus at passwd.hu> wrote:
>
>>
>>
>> On Sun, 31 Jan 2021, Paul B Mahol wrote:
>>
>> > On Sun, Jan 31, 2021 at 12:00 PM Marton Balint <cus at passwd.hu> wrote:
>> >
>> >>
>> >>
>> >> On Tue, 26 Jan 2021, Paul B Mahol wrote:
>> >>
>> >> > This work is sponsored by Open Broadcast Systems.
>> >> >
>> >> > Signed-off-by: Paul B Mahol <onemda at gmail.com>
>> >> > ---
>> >> > configure               |   5 +
>> >> > doc/protocols.texi      |  32 +++++
>> >> > libavformat/Makefile    |   1 +
>> >> > libavformat/librist.c   | 251 ++++++++++++++++++++++++++++++++++++++++
>> >> > libavformat/protocols.c |   1 +
>> >> > 5 files changed, 290 insertions(+)
>> >> > create mode 100644 libavformat/librist.c
>> >>
>> >>
>> >> [...]
>> >>
>> >>
>> >> > --- a/doc/protocols.texi
>> >> > +++ b/doc/protocols.texi
>> >> > @@ -690,6 +690,38 @@ Example usage:
>> >> > -f rtp_mpegts -fec prompeg=l=8:d=4 rtp://@var{hostname}:@var{port}
>> >> > @end example
>> >> >
>> >> > + at section rist
>> >> > +
>> >> > +Reliable Internet Streaming Transport protocol
>> >> > +
>> >> > +The accepted options are:
>> >> > + at table @option
>> >> > + at item rist_profile
>> >> > +Supported values:
>> >> > + at table @samp
>> >> > + at item simple
>> >> > + at item main
>> >> > +This one is default.
>> >> > + at item advanced
>> >> > + at end table
>> >> > +
>> >> > + at item buffer_size
>> >> > +Set internal RIST buffer size for retransmission of data.
>> >> > +
>> >> > + at item pkt_size
>> >> > +Set internal RIST buffer size for receiving and sending data.
>> >>
>> >> You should mention the default here. And by the way, why have you
>> selected
>> >> 9968 as default? I thought primaryly mpegts is targeted, so maybe 1316
>> >> makes more sense no?
>> >>
>> >>
>> > NO
>>
>> Please explain why, and give a reason for 9968 then.
>>
>
> because that is max allowed value that works,

And is this some librist or protocol limitation?

> I really wonder why it should  be lowered.

I suggested to lower it for write only. 9968 is not divisible by 188, so 
libavformat will split packets inside mpegts packet, instead of at mpegts 
packet boundaries, which will surely cause issues on the some receivers.

Regards,
Marton


More information about the ffmpeg-devel mailing list