[FFmpeg-devel] [PATCH] avformat/rtsp: support rtsps

wm4 nfxjfg at googlemail.com
Mon Oct 17 13:08:31 EEST 2016


On Sun, 16 Oct 2016 21:20:04 +0000
Jay <jayridge at gmail.com> wrote:

> This is the approach present in avformat/rtsp.c, but I can modify. What is
> preferred?
> 
> For clarity, this patch does not copy url params from the `rtsps://` input.
> It passes tls params provided as cmd line options to the `tls://` protocol
> handler.
> 
> Personally, I would like tls negotiation to be recognized in the tcp
> handler and the connection upgraded to tls. This would allow for `rtsp://`
> schemes to work with tls - nice if you do not initially know the connection
> is secure ( parity with gstreamer ). Unfortunately I am new to ffmpeg and
> there is a lot of code to digest. It also does not address encrypted udp.
> 
> Let me know how best to proceed. Thank you.
> Jay

ffurl_open_whitelist() has an options parameter. This is a AVDictionary
that contains one option/value pair per entry. It _should_ be possible
to pass down the options you want to set with this, instead of
appending them to the URL. Although I haven't tried this myself, and
can't be sure there isn't something else that breaks this.


More information about the ffmpeg-devel mailing list