huceke / omxplayer

omxplayer
GNU General Public License v2.0
520 stars 502 forks source link

4 seconds of delay, rpi2 to rpi2 #244

Open luckyseoul opened 9 years ago

luckyseoul commented 9 years ago

Is there any way to decrease the amount of delay?

popcornmix commented 9 years ago

Have a look at these options:

        --audio_fifo  n         Size of audio output fifo in seconds
        --video_fifo  n         Size of video output fifo in MB
        --audio_queue n         Size of audio input queue in MB
        --video_queue n         Size of video input queue in MB
        --threshold   n         Amount of buffered data required to finish buffering [s]

But omxplayer is not designed to be a low latency media player. It is designed for maximising performance of high bitrate videos, which involves keeping buffers full with large packet sizes. Low latency playback requires no buffering and small packet sizes which requires different design decisions.