| 78 | | Also setting -probesize and -analyzeduration to low values may help your stream start up more quickly (it uses these to scan for "streams" in certain muxers, like ts, where some can appears "later", and also to estimate the duration, which, for live streams, the latter you don't need anyway). |
| | 78 | Also setting -probesize and -analyzeduration to low values may help your stream start up more quickly (it uses these to scan for "streams" in certain muxers, like ts, where some can appears "later", and also to estimate the duration, which, for live streams, the latter you don't need anyway). |
| 88 | | There is also an option -fflags nobuffer which is said to [http://ffmpeg.org/ffmpeg.html#Format-AVOptions reduce latency]. |
| 89 | | |
| 90 | | Also note that by default, ffplay introduces a latency of its own, so if you use it for testing (see troubleshooting section) it may need some of these parameters, as well. Also useful is mplayer with its -nocache for testing latency. |
| | 88 | There is also an option -fflags nobuffer which might[http://ffmpeg.org/ffmpeg.html#Format-AVOptions reduce latency]. |
| | 89 | |
| | 90 | === testing latency === |
| | 91 | |
| | 92 | By default, ffplay introduces a small latency of its own, so if you use it for testing (see troubleshooting section) it may need some of these parameters, as well. NB that ffplay has somewhat poor video output, though, so don't base quality levels on that. Also some settings mentioned above like "probesize" might help it start more quickly. |
| | 93 | |
| | 94 | Also useful is mplayer with its -nocache for testing latency (or -benchmark). |
| | 95 | |
| | 96 | Using the SDL out is also said to view frames with minimal latency: "ffmpeg ... -f sdl -" |
| | 97 | |
| | 98 | === see also === |