You are right that it is straight forward to pass the receive buffer size when
opening a udp url.
But I'm working with an sdp file.
I could not find a way to specify a udp url when using an sdp file. Would you
mind explaining how to do that?
I actually looked at the sources quite a bit and could not see any way to
accomplish it.
When the rtp url is generated in sdp_read_header(), there is no buffer_size
parameter put on there
ff_url_join(url, sizeof(url), "rtp", NULL,
namebuf, rtsp_st->sdp_port,
"?localport=%d&ttl=%d&connect=%d", rtsp_st->sdp_port,
rtsp_st->sdp_ttl,
rt->rtsp_flags & RTSP_FLAG_FILTER_SRC ? 1 : 0);
if (ffurl_open(&rtsp_st->rtp_handle, url, AVIO_FLAG_READ_WRITE,
&s->interrupt_callback, NULL) < 0) {
err = AVERROR_INVALIDDATA;
goto fail;
}
Later, in rtp_open() there is also no option to specify the udp buffer size when
the udp url is generated:
build_udp_url(buf, sizeof(buf),
hostname, rtp_port, local_rtp_port, ttl, max_packet_size,
connect);
Message: 1
Date: Thu, 01 Jan 2015 14:49:59 +0100
From: Luca Barbato <[email protected]>
To: [email protected]
Subject: Re: [libav-api] does setting the UDP receive buffer size for
sdp streams require API change?
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8; format=flowed
On 31/12/14 14:58, Bernd Pfrommer wrote:
> Does this issue indeed require an API change (e.g. add an AVOption), and
> if yes, what is the cleanest way? If some of the developers can offer
> guidance I'm willing to implement and test.
The `buffer_size` url option is there for you.
udp://foo?buffer_size=100000000
Should work.
lu
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api