extra ffmpeg params to reduce latency

This commit is contained in:
blakeblackshear 2019-06-04 21:39:07 -05:00 committed by Blake Blackshear
parent 7028b05856
commit c41b104997

View File

@ -21,6 +21,9 @@ def fetch_frames(shared_arr, shared_frame_time, frame_lock, frame_ready, frame_s
ffmpeg_cmd = ['ffmpeg', ffmpeg_cmd = ['ffmpeg',
'-hide_banner', '-loglevel', 'panic', '-hide_banner', '-loglevel', 'panic',
'-avoid_negative_ts', 'make_zero', '-avoid_negative_ts', 'make_zero',
'-fflags', 'nobuffer',
'-flags', 'low_delay',
'-strict', 'experimental',
'-fflags', '+genpts', '-fflags', '+genpts',
'-rtsp_transport', 'tcp', '-rtsp_transport', 'tcp',
'-stimeout', '5000000', '-stimeout', '5000000',