[FFmpeg-devel] FFMPEG RTSP parameters support
Sun Nov 14 17:15:02 CET 2010
It's very normal, e.g. for session IDs or so.
> There is no solution. You can't give parameters a=1 in the URL if the
> server doesn't support that. The ?tcp is a hack and should become a
> commandline option (using AVClass/AVOptions) instead of an appendage
> to the URI, but nobody has done that so far.
Perhaps we can expand the rtsp.c for that, as another option to AVContext?
> > - rtsp://126.96.36.199/stream.sdp?a=1/trackID=1
> > - rtsp://188.8.131.52/stream.sdp/trackID=1?a=1
> > - rtsp://184.108.40.206/stream.sdp/trackID=1
> > The first one is what we do now (as far as I know), I guess one of the
> > other ones is what this server requires. Can you find any standard
> > document saying that this way of handling it (whichever the server wants)
> > really is the one mandated by some standard, too? Otherwise we might
> > encounter some other server wanting the parameters formatted in some
> > way at some point.
> The second one is what we use right now if we want custom options, and
> the third is what it should be if that was the original URI in e.g.
> the playlist.
About 2nd one, is this supported from command line?
I get "460 Only Aggregate Option Allowed" when trying the following form:
ffmpeg -i "rtsp://192.168.0.150/loadtest.sdp/trackID=1?a=1"
ffmpeg -i "rtsp://192.168.0.150/loadtest.sdp/trackID=1?a=1&tcp"
More information about the ffmpeg-devel