You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So far I tried but without success, but ffmpeg to localhost works perfectly also I can launch whip from SRS GUI. I am not targeting domain but the remote path "IP/srs" with NGINIX proxy.
ffmpeg log:
WHIP: Dispose of resource https://31.187.76.175/... out#0/whip @x555bf75ac780 Could not write header (incorrect codec parameters ?): Connection time out
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So far I tried but without success, but ffmpeg to localhost works perfectly also I can launch whip from SRS GUI. I am not targeting domain but the remote path "IP/srs" with NGINIX proxy.
Input file: FHD h264 file with 30fps.
Used command:
./ffmpeg -i example.mp4 -vcodec libx264 -preset ultrafast -tune zerolatency -profile:v baseline -r 30 -f whip "http://localhost:1985/rtc/v1/whip/?app=live&stream=livestream"
ffmpeg log:
WHIP: Dispose of resource https://31.187.76.175/...
out#0/whip @x555bf75ac780 Could not write header (incorrect codec parameters ?): Connection time out
See my SRS logs.
2024-07-25 15:55:18.502][INFO][1][k32340i8] HTTP #0 10.200.1.9:53200 POST https://31.187.76.175/rtc/v1/whip/?app=live&stream=livestream, content-length=1050
[2024-07-25 15:55:18.502][INFO][1][k32340i8] RTC whip publish /live/livestream, clientip=162.158.111.206, app=live, stream=livestream, offer=1050B, eip=, codec=, srtp=, dtls=, ufrag=, pwd=, param=app=live&stream=livestream
[2024-07-25 15:55:18.502][INFO][1][k32340i8] ignore attribute=, value=
[2024-07-25 15:55:18.502][WARN][1][k32340i8][11] not ideal H.264 pt=106 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=420028
[2024-07-25 15:55:18.502][INFO][1][k32340i8] RTC publisher nack=1, nnc=1, pt-drop=0, twcc=0/0
[2024-07-25 15:55:18.503][INFO][1][k32340i8] RTC: Init tracks {track: video, is_active: 0=>1},{track: audio, is_active: 0=>1}, ok
[2024-07-25 15:55:18.503][INFO][1][k32340i8] RTC: Use candidates 34.77.219.189, protocol=udp
[2024-07-25 15:55:18.504][INFO][1][k32340i8] RTC init session, user=204275pt:e018acf9, url=/live/livestream, encrypt=1/1, DTLS(role=active, version=auto), timeout=30000ms, nack=1
[2024-07-25 15:55:18.504][INFO][1][k32340i8] RTC username=204275pt:e018acf9, offer=1050B, answer=1099B
[2024-07-25 15:55:18.504][INFO][1][k32340i8] RTC remote offer: v=0\r\no=FFmpeg 4489045141692799359 2 IN IP4 127.0.0.1\r\ns=FFmpegPublishSession\r\nt=0 0\r\na=group:BUNDLE 0 1\r\na=extmap-allow-mixed\r\na=msid-semantic: WMS\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:e018acf9\r\na=ice-pwd:e948f4901937f45a6807743609ec1c08\r\na=fingerprint:sha-256 D1:44:AA:DA:8D:1C:07:6E:55:05:22:1D:CD:DE:48:4A:69:8F:09:7C:18:AA:C3:80:1A:4C:B5:9F:9C:80:FA:CF\r\na=setup:passive\r\na=mid:0\r\na=sendonly\r\na=msid:FFmpeg audio\r\na=rtcp-mux\r\na=rtpmap:111 opus/48000/2\r\na=ssrc:3270224379 cname:FFmpeg\r\na=ssrc:3270224379 msid:FFmpeg audio\r\nm=video 9 UDP/TLS/RTP/SAVPF 106\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:e018acf9\r\na=ice-pwd:e948f4901937f45a6807743609ec1c08\r\na=fingerprint:sha-256 D1:44:AA:DA:8D:1C:07:6E:55:05:22:1D:CD:DE:48:4A:69:8F:09:7C:18:AA:C3:80:1A:4C:B5:9F:9C:80:FA:CF\r\na=setup:passive\r\na=mid:1\r\na=sendonly\r\na=msid:FFmpeg video\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:106 H264/90000\r\na=fmtp:106 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=420028\r\na=ssrc:1216173195 cname:FFmpeg\r\na=ssrc:1216173195 msid:FFmpeg video\r\n
[2024-07-25 15:55:18.504][INFO][1][k32340i8] RTC local answer: v=0\r\no=SRS/5.0.213(Bee) 138641479477792 2 IN IP4 0.0.0.0\r\ns=SRSPublishSession\r\nt=0 0\r\na=ice-lite\r\na=group:BUNDLE 0 1\r\na=msid-semantic: WMS live/livestream\r\nm=audio 9 UDP/TLS/RTP/SAVPF 111\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:204275pt\r\na=ice-pwd:1t74un46l831h64218u4252k698q993q\r\na=fingerprint:sha-256 12:81:A9:17:20:91:8D:6E:D0:65:FB:88:7B:08:0B:68:99:E6:43:34:EA:82:EB:88:F0:AB:F5:2C:15:70:37:D1\r\na=setup:active\r\na=mid:0\r\na=recvonly\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:111 opus/48000/2\r\na=candidate:0 1 udp 2130706431 34.77.219.189 8000 typ host generation 0\r\nm=video 9 UDP/TLS/RTP/SAVPF 106\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:204275pt\r\na=ice-pwd:1t74un46l831h64218u4252k698q993q\r\na=fingerprint:sha-256 12:81:A9:17:20:91:8D:6E:D0:65:FB:88:7B:08:0B:68:99:E6:43:34:EA:82:EB:88:F0:AB:F5:2C:15:70:37:D1\r\na=setup:active\r\na=mid:1\r\na=recvonly\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:106 H264/90000\r\na=fmtp:106 level-asymmetry-allowed=1;packetization-mode=1;profile-level-id=420028\r\na=candidate:0 1 udp 2130706431 34.77.219.189 8000 typ host generation 0\r\n
[2024-07-25 15:55:18.505][INFO][1][k32340i8] TCP: before dispose resource(HttpConn)(0x7e17fc1677c0), conns=1, zombies=0, ign=0, inz=0, ind=0
[2024-07-25 15:55:18.505][WARN][1][k32340i8][104] client disconnect peer. ret=1007
[2024-07-25 15:55:18.505][INFO][1][493i11wc] TCP: clear zombies=1 resources, conns=1, removing=0, unsubs=0
[2024-07-25 15:55:18.505][INFO][1][k32340i8] TCP: disposing #0 resource(HttpConn)(0x7e17fc1677c0), conns=1, disposing=1, zombies=0
[2024-07-25 15:55:18.559][INFO][1][k32340i8] RTC: session address init 109.81.80.245:47235
[2024-07-25 15:55:18.559][INFO][1][k32340i8] RTC: session STUN done, waiting DTLS handshake.
[2024-07-25 15:55:18.559][INFO][1][k32340i8] DTLS: State Active SEND, done=0, arq=0, r0=0, len=312, cnt=22, size=299, hs=1
[2024-07-25 15:55:18.559][INFO][1][n50j9y53] <- RTC RECV FFmpeg#13, udp 4903, pps 1/79, schedule 4903
[2024-07-25 15:55:18.609][INFO][1][k32340i8] DTLS: State Active SEND, done=0, arq=1, r0=0, len=312, cnt=22, size=299, hs=1
[2024-07-25 15:55:18.628][INFO][1][k32340i8] DTLS: State Active RECV, done=0, arq=1, r0=734, len=734, cnt=22, size=82, hs=2
[2024-07-25 15:55:18.634][INFO][1][k32340i8] DTLS: State Active SEND, done=0, arq=1, r0=0, len=645, cnt=22, size=298, hs=11
[2024-07-25 15:55:18.692][INFO][1][k32340i8] DTLS: State Active RECV, done=0, arq=1, r0=554, len=554, cnt=22, size=466, hs=4
[2024-07-25 15:55:18.692][INFO][1][k32340i8] DTLS: State Active SEND, done=0, arq=2, r0=0, len=311, cnt=22, size=298, hs=11
[2024-07-25 15:55:18.692][INFO][1][k32340i8] DTLS: State Active SEND, done=0, arq=2, r0=0, len=159, cnt=22, size=146, hs=16
[2024-07-25 15:55:18.692][INFO][1][k32340i8] DTLS: State Active SEND, done=0, arq=2, r0=0, len=100, cnt=22, size=87, hs=15
[2024-07-25 15:55:18.692][INFO][1][k32340i8] DTLS: State Active SEND, done=0, arq=2, r0=0, len=14, cnt=20, size=1, hs=1
[2024-07-25 15:55:18.692][INFO][1][k32340i8] DTLS: State Active SEND, done=0, arq=2, r0=0, len=61, cnt=22, size=48, hs=199
[2024-07-25 15:55:18.692][INFO][1][k32340i8] RTC: DTLS handshake done.
[2024-07-25 15:55:18.692][INFO][1][k32340i8] RTC: session pub=1, sub=0, to=30000ms connection established
[2024-07-25 15:55:18.692][INFO][1][k32340i8] RTC: Publisher url=/live/livestream established
[2024-07-25 15:55:18.693][INFO][1][k32340i8] hls: win=60000ms, frag=10000ms, prefix=, path=./objs/nginx/html, m3u8=[app]/[stream].m3u8, ts=[app]/[stream]-[seq].ts, tdr=1.00, aof=2.10, floor=0, clean=1, waitk=1, dispose=120000ms, dts_directly=1
[2024-07-25 15:55:18.693][INFO][1][k32340i8] ignore disabled exec for vhost=defaultVhost
[2024-07-25 15:55:18.711][INFO][1][k32340i8] RTC: Discard no-sync Audio, ssrc=3270224379, seq=1649, ts=496802313, state=-1
[2024-07-25 15:55:18.962][INFO][1][0e5169xp] HTTP #0 10.200.1.9:53202 DELETE http://31.187.76.175/rtc/v1/whip/?action=delete&token=7204j46u2&app=live&stream=livestream&session=204275pt:e018acf9, content-length=-1
[2024-07-25 15:55:18.962][INFO][1][k32340i8] RTC: before dispose resource(RtcConn)(0x7e17fc22aa20), conns=1, zombies=0, ign=0, inz=0, ind=0
[2024-07-25 15:55:18.962][INFO][1][k32340i8] RTC: session detach from k32340i8, disposing=1
[2024-07-25 15:55:18.962][INFO][1][0e5169xp] WHIP: Delete session=204275pt:e018acf9, p=0x7e17fc22aa20, url=https://31.187.76.175/rtc/v1/whip/?action=delete&token=7204j46u2&app=live&stream=livestream&session=204275pt:e018acf9
[2024-07-25 15:55:18.962][INFO][1][79v9q81k] RTC: clear zombies=1 resources, conns=1, removing=0, unsubs=0
[2024-07-25 15:55:18.963][INFO][1][k32340i8] RTC: disposing #0 resource(RtcConn)(0x7e17fc22aa20), conns=1, disposing=1, zombies=0
[2024-07-25 15:55:18.963][INFO][1][k32340i8] cleanup when unpublish, created=1, deliver=1
[2024-07-25 15:55:18.964][INFO][1][k32340i8] Drop ts segment, sequence_no=105, uri=livestream-105.ts, duration=0ms
[2024-07-25 15:55:18.964][INFO][1][k32340i8] cleanup when unpublish
[2024-07-25 15:55:18.964][INFO][1][k32340i8] Qavg: -nan
[2024-07-25 15:55:18.965][WARN][1][k32340i8][4][DTLS_HANG] DTLS: Hang, done=0, version=-1, arq=0
[2024-07-25 15:55:18.965][INFO][1][0e5169xp] TCP: before dispose resource(HttpConn)(0x7e17fc80d9d0), conns=1, zombies=0, ign=0, inz=0, ind=0
[2024-07-25 15:55:18.965][WARN][1][0e5169xp][104] client disconnect peer. ret=1007
Any tips or hints are welcomed
Beta Was this translation helpful? Give feedback.
All reactions