Eyevinn / srt-whep

SRT to WHEP (WebRTC)
Apache License 2.0
80 stars 10 forks source link

Intermittent issues to connect to following test stream #51

Closed birme closed 1 year ago

birme commented 1 year ago

Generating an SRT stream with FFmpeg and in listener mode works intermittently. Steps to reproduce:

Start an FFmpeg to generate an input source:

ffmpeg -f lavfi -re -i testsrc=size=1280x720:rate=30 \
  -f lavfi -re -i sine=frequency=1000:sample_rate=44100 \
  -pix_fmt yuv420p -c:v libx264 -b:v 1000k -g 30 -keyint_min 120 \
  -profile:v baseline -preset veryfast -c:a aac \
  -f mpegts "srt://127.0.0.1:1234?mode=listener&pkt_size=1316"

Then start srt-whep

srt-whep -i 127.0.0.1:1234 -o 127.0.0.1:8888 -p 8000 -s caller | bunyan

And connect to the WHEP endpoint http://localhost:8000/channel using https://webrtc.player.eyevinn.technology/?type=whep

Sometimes it works, and sometimes it don't. Tested on Mac OS

Wkkkkk commented 1 year ago

This has been solved in the latest commit.