Edward-Wu / srt-live-server

srt live server for low latency
Other
644 stars 192 forks source link

Push video stream example does not work. #97

Closed thefastman closed 3 years ago

thefastman commented 3 years ago

Try to push the SRT stream exactly as in the example

ffmpeg -re -stream_loop -1 -i sample.mxf \
    -vcodec libx264 -preset ultrafast -tune zerolatency -flags2 local_header \
       -acodec libmp3lame -g 25 -pkt_size 1316 flush_packets 0 \
       -f mpegts "srt://172.17.46.110:4242?streamid=out/live/stream"

FFmpeg stops with the error

av_interleaved_write_frame(): I/O error
Error writing trailer of srt://172.17.46.110:4242?streamid=out/live/stream: I/O error

On the server-side log:

2021-05-14 13:24:21:383 SLS INFO: [0x559417d62110]CSLSSrt::libsrt_accept ok, new sock=177399694, 172.17.0.1:42478.
2021-05-14 13:24:21:383 SLS INFO: [0x7f9acd19f090]CSLSListener::handler, new client[172.17.0.1:42478], fd=177399694.
2021-05-14 13:24:21:383 SLS INFO: [0x7f9acd19f090]CSLSListener::handler, [172.17.0.1:42478], sid 'out/live/stream'
2021-05-14 13:24:21:383 SLS ERROR: [0x7f9acd19f090]CSLSListener::handler, refused, new role[172.17.0.1:42478], stream='out/live/stream',but no sls_conf_app_t info.
2021-05-14 13:24:21:383 SLS INFO: [0x7f9accfd9110]CSLSSrt::libsrt_close, fd=177399694.

I did something wrong? THanks.

thefastman commented 3 years ago

my bad. it works. thanks,