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 <[email protected]>:

> Ah, may be I should pass options to avformat_write_header?
>
>
> 2014-08-14 22:12 GMT+04:00 Dmitry Adjiev <[email protected]>:
>
> Thanks for your reply!  It will output stream :-)
>>
>>
>>
>> 2014-08-14 22:08 GMT+04:00 wm4 <[email protected]>:
>>
>> On Thu, 14 Aug 2014 22:00:49 +0400
>>> Dmitry Adjiev <[email protected]> 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
>>> [email protected]
>>> http://ffmpeg.org/mailman/listinfo/libav-user
>>>
>>
>>
>>
>> --
>> Regards,
>> Dmitry
>>
>
>
>
> --
> Regards,
> Dmitry
>



-- 
Regards,
Dmitry
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to