So I have been testing the SRT streaming to use with OBS. so far love it BUT ffplay will not close when the stream ends and try to reconnect. it just stays paused at last frame and the ffplay window stays up

my code is here:

%ffplay% srt:// -window_title "SRT Player 1.0 - Viewer (powered by FFPlay)" -x 720 -y 480 -sync audio -autoexit 

I have tried using these commands too:




What I would like to achieve that if stream ends it closes and then starts ffplay over again. I have even used FFMPEG to grab the original and if it finds it to start ffplay like this:

%ffmpeg% -hide_banner -loglevel 0 -stats  -re -i srt:// -c copy -f mpegts "srt://" | %ffplay% srt:// -window_title "SRTt Player 1.0 - Viewer (powered by FFPlay)" -x 720 -y 480 -sync audio -autoexit -exitonmousedown -autorotate

But this fails as well because of stream ends it just sits open.

1 Answer 1


you can specify -autoexit it works for me

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.