0

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://0.0.0.0:43560?mode=listener&transtype=live&latency=0&recv_buffer_size=0 -window_title "SRT Player 1.0 - Viewer (powered by FFPlay)" -x 720 -y 480 -sync audio -autoexit 

I have tried using these commands too:

connect_timeout=milliseconds

linger=seconds

timeout=microseconds

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://127.0.0.1:5000?mode=listener -c copy -f mpegts "srt://127.0.0.1:43560?mode=caller&transtype=live&latency=400000" | %ffplay% srt://0.0.0.0:43560?mode=listener&transtype=live&latency=0&recv_buffer_size=0 -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.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.