Search code examples
ffmpegrtmpflvlive-streaming

What's the default value of timeout for rtmpproto.c in ffmpeg?


I made a rtmp streaming android app using ffmpeg. I want to know the timeout while streaming but network offline. I checked the rtmpproto.c implementation:

{"timeout", "Maximum timeout (in seconds) to wait for incoming connections. -1 is infinite. Implies -rtmp_listen 1", OFFSET(listen_timeout), AV_OPT_TYPE_INT, {.i64 = -1}, INT_MIN, INT_MAX, DEC, "rtmp_listen" },

I think the timeout option is what i want. But i didn't find the default value of it.

What's the default value of the timeout option ?


Solution

  • The default value {.i64 = -1} meaning infinite, according to the code you quoted.