add 'stream_loop' for file source
This commit is contained in:
parent
0ee2adfdf2
commit
ac203e5de4
|
@ -91,7 +91,7 @@ class FFmpeg:
|
|||
elif 'rtsp' in src:
|
||||
src = ' '.join(['-rtsp_transport tcp -i', src])
|
||||
else:
|
||||
src = ' '.join(['-i', src])
|
||||
src = ' '.join(['-stream_loop -1 -re -i', src])
|
||||
list_sources.append(src)
|
||||
return ' '.join(list_sources)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user