[transcode] Set ffmpeg options so that it will attempt to reconnect streams

This commit is contained in:
ejurgensen 2018-08-12 19:50:54 +02:00
parent ab1ded35e4
commit 5ee0b69d39

View File

@ -748,6 +748,10 @@ open_input(struct decode_ctx *ctx, const char *path, struct evbuffer *evbuf)
user_agent = cfg_getstr(cfg_getsec(cfg, "general"), "user_agent");
av_dict_set(&options, "user_agent", user_agent, 0);
av_dict_set(&options, "reconnect", "1", 0);
av_dict_set(&options, "reconnect_at_eof", "1", 0);
av_dict_set(&options, "reconnect_streamed", "1", 0);
}
// TODO Newest versions of ffmpeg have timeout and reconnect options we should use