[Libav-user] rtsp transport protocol

Dmitry Adjiev adjiev.dmitry at gmail.com
Thu Aug 14 20:25:20 CEST 2014


AVDictionary *d = NULL;
av_dict_set(&d, "rtsp_transport", "udp", 0);
ret = avformat_write_header(stream->rtp_ctx, &d);
av_dict_free(&d);

Has no effect, what I do wrong?


2014-08-14 22:18 GMT+04:00 Dmitry Adjiev <adjiev.dmitry at gmail.com>:

> Ah, may be I should pass options to avformat_write_header?
>
>
> 2014-08-14 22:12 GMT+04:00 Dmitry Adjiev <adjiev.dmitry at gmail.com>:
>
> Thanks for your reply!  It will output stream :-)
>>
>>
>>
>> 2014-08-14 22:08 GMT+04:00 wm4 <nfxjfg at googlemail.com>:
>>
>> On Thu, 14 Aug 2014 22:00:49 +0400
>>> Dmitry Adjiev <adjiev.dmitry at gmail.com> wrote:
>>>
>>> > This string doesn't work:
>>> > av_opt_set_from_string(stream->rtp_ctx->priv_data,
>>> "rtsp_transport:udp",
>>> > opts, ":", ":");
>>> >
>>> > This string crashes:
>>> > av_opt_set_from_string(stream->rtp_ctx->priv_data,
>>> "rtsp_transport:udp",
>>> > opts, ":", NULL);
>>> >
>>> > What I do wrong?
>>>
>>> You need to pass it as entry in an AVDictionary to
>>> avformat_open_input(). (Not very intuitive, I know.)
>>> _______________________________________________
>>> Libav-user mailing list
>>> Libav-user at ffmpeg.org
>>> http://ffmpeg.org/mailman/listinfo/libav-user
>>>
>>
>>
>>
>> --
>> Regards,
>> Dmitry
>>
>
>
>
> --
> Regards,
> Dmitry
>



-- 
Regards,
Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20140814/05128921/attachment.html>


More information about the Libav-user mailing list