Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It seems that the URI carried in the 'param' when saving on_dvr may be mixed up. #1380

Closed
chrdwhdhxtszpzclljxk opened this issue May 31, 2019 · 3 comments · Fixed by #2550
Closed
Assignees
Labels
API HTTP-API, HTTP-Callback, etc. Bug It might be a bug. TransByAI Translated by AI/GPT.
Milestone

Comments

@chrdwhdhxtszpzclljxk
Copy link

chrdwhdhxtszpzclljxk commented May 31, 2019

publish, unpublish are both t=b51b60ad-8278-41fa-ac49-7dd8d9b98523
on_dvr has become t=7094678c-4ebe-4bc4-ae10-2fdbefd672c6, which is a streaming ID...
2019/05/31 15:36:55 webapi.go:51: {on_publish demo livestream ?r=1&s=4226b4ee-4b4a-4bc6-ab95-8c1bbdb1047f&t=b51b60ad-8278-41fa-ac49-7dd8d9b98523 19330 }

2019/05/31 15:37:07 webapi.go:59: {on_unpublish demo livestream ?r=1&s=4226b4ee-4b4a-4bc6-ab95-8c1bbdb1047f&t=b51b60ad-8278-41fa-ac49-7dd8d9b98523 19330 }

2019/05/31 15:37:08 webapi.go:78: {on_dvr demo livestream ?t=7094678c-4ebe-4bc4-ae10-2fdbefd672c6&s=98c0c4af-0797-4c61-b4e9-d2c125208e5c 19330 /root/srs/srs/trunk /media/share/demo/livestream/2019/05/31153703208.flv}

2019/05/31 15:37:08 webapi.go:130: User: 98c0c4af-0797-4c61-b4e9-d2c125208e5c roomid: 9997 / livestream /media/share/demo/livestream/2019/05/31153703208.flv 0

TRANS_BY_GPT3

@chrdwhdhxtszpzclljxk
Copy link
Author

chrdwhdhxtszpzclljxk commented May 31, 2019

Original SRS log:
[2019-05-31 15:52:00.893][trace][2645][119] RTMP client ip=61.171.178.107
[2019-05-31 15:52:00.903][trace][2645][119] simple handshake success.
[2019-05-31 15:52:00.903][trace][2645][119] connect app, tcUrl=rtmp://www.pic98.com:1935/demo?r=1&s=4226b4ee-4b4a-4bc6-ab95-8c1bbdb1047f&t=b51b60ad-8278-41fa-ac49-7dd8d9b98523, pageUrl=, swfUrl=rtmp://www.pic98.com:1935/demo?r=1&s=4226b4ee-4b4a-4bc6-ab95-8c1bbdb1047f&t=b51b60ad-8278-41fa-ac49-7dd8d9b98523, schema=rtmp, vhost=www.pic98.com, port=1935, app=demo, args=null
[2019-05-31 15:52:00.961][trace][2645][119] client identified, type=fmle-publish, stream_name=livestream, duration=-1.00, param=?r=1&s=4226b4ee-4b4a-4bc6-ab95-8c1bbdb1047f&t=b51b60ad-8278-41fa-ac49-7dd8d9b98523
[2019-05-31 15:52:00.974][trace][2645][119] http hook on_connect success. client_id=119, url=http://www.gwgz.com:8091/srs, request={"action":"on_connect","client_id":119,"ip":"61.171.178.107","vhost":"defaultVhost","app":"demo","tcUrl":"rtmp://www.pic98.com:1935/demo?r=1&s=4226b4ee-4b4a-4bc6-ab95-8c1bbdb1047f&t=b51b60ad-8278-41fa-ac49-7dd8d9b98523","pageUrl":""}, response=0, ret=0
[2019-05-31 15:52:00.974][trace][2645][119] connected stream, tcUrl=rtmp://www.pic98.com:1935/demo?r=1&s=4226b4ee-4b4a-4bc6-ab95-8c1bbdb1047f&t=b51b60ad-8278-41fa-ac49-7dd8d9b98523, pageUrl=, swfUrl=rtmp://www.pic98.com:1935/demo?r=1&s=4226b4ee-4b4a-4bc6-ab95-8c1bbdb1047f&t=b51b60ad-8278-41fa-ac49-7dd8d9b98523, schema=rtmp, vhost=defaultVhost, port=1935, app=demo, stream=livestream, param=?r=1&s=4226b4ee-4b4a-4bc6-ab95-8c1bbdb1047f&t=b51b60ad-8278-41fa-ac49-7dd8d9b98523, args=null
[2019-05-31 15:52:00.974][trace][2645][119] source url=/demo/livestream, ip=61.171.178.107, cache=0, is_edge=0, source_id=-1[-1]
[2019-05-31 15:52:01.041][trace][2645][119] http hook on_publish success. client_id=119, url=http://www.gwgz.com:8091/srs, request={"action":"on_publish","client_id":119,"ip":"61.171.178.107","vhost":"defaultVhost","app":"demo","tcUrl":"rtmp://www.pic98.com:1935/demo?r=1&s=4226b4ee-4b4a-4bc6-ab95-8c1bbdb1047f&t=b51b60ad-8278-41fa-ac49-7dd8d9b98523","stream":"livestream","param":"?r=1&s=4226b4ee-4b4a-4bc6-ab95-8c1bbdb1047f&t=b51b60ad-8278-41fa-ac49-7dd8d9b98523"}, response=0, ret=0
[2019-05-31 15:52:01.148][trace][2645][119] dvr stream livestream to file /media/share/demo/livestream/2019/05/31155201041.flv
[2019-05-31 15:52:01.158][trace][2645][119] set TCP_NODELAY 0=>1
[2019-05-31 15:52:01.158][trace][2645][119] start publish mr=0/350, p1stpt=20000, pnt=5000, tcp_nodelay=1, rtcid=120
[2019-05-31 15:52:01.159][trace][2645][119] got metadata, width=720, height=576
[2019-05-31 15:52:01.677][trace][2645][119] protocol in.buffer=0, in.ack=0, out.ack=2500000, in.chunk=4096, out.chunk=60000
[2019-05-31 15:52:01.677][trace][2645][119] 7B audio sh, codec(10, profile=LC, 1channels, 0kbps, 12000HZ), flv(16bits, 2channels, 44100HZ)
[2019-05-31 15:52:01.677][trace][2645][119] 35B video sh, codec(7, profile=Baseline, level=2.2, 720x576, 0kbps, 0fps, 0s)
[2019-05-31 15:52:02.027][trace][2645][113] update source_id=119[119]
[2019-05-31 15:52:02.050][trace][2645][113] http hook on_stop success. client_id=113, url=http://www.gwgz.com:8091/srs, request={"action":"on_stop","client_id":113,"ip":"61.171.178.107","vhost":"defaultVhost","app":"demo","stream":"livestream","param":"?t=7094678c-4ebe-4bc4-ae10-2fdbefd672c6&s=98c0c4af-0797-4c61-b4e9-d2c125208e5c"}, response=0, ret=0
[2019-05-31 15:52:02.061][trace][2645][113] http hook on_close success. client_id=113, url=http://www.gwgz.com:8091/srs, request={"action":"on_close","client_id":113,"ip":"61.171.178.107","vhost":"defaultVhost","send_bytes":4884,"recv_bytes":3541,"app":"demo"}, response=0, ret=0
[2019-05-31 15:52:02.061][warn][2645][113][11] client disconnect peer. ret=1004
[2019-05-31 15:52:05.269][warn][2645][119][11] VIDEO: stream not monotonically increase, please open mix_correct.
[2019-05-31 15:52:07.060][trace][2645][122] RTMP client ip=61.171.178.107
[2019-05-31 15:52:07.072][trace][2645][122] simple handshake success.
[2019-05-31 15:52:07.135][trace][2645][122] connect app, tcUrl=rtmp://www.pic98.com/demo, pageUrl=, swfUrl=, schema=rtmp, vhost=www.pic98.com, port=1935, app=demo, args=null
[2019-05-31 15:52:07.324][trace][2645][122] client identified, type=Play, stream_name=livestream, duration=-1.00, param=?t=7094678c-4ebe-4bc4-ae10-2fdbefd672c6&s=98c0c4af-0797-4c61-b4e9-d2c125208e5c
[2019-05-31 15:52:07.334][trace][2645][122] http hook on_connect success. client_id=122, url=http://www.gwgz.com:8091/srs, request={"action":"on_connect","client_id":122,"ip":"61.171.178.107","vhost":"defaultVhost","app":"demo","tcUrl":"rtmp://www.pic98.com/demo","pageUrl":""}, response=0, ret=0
[2019-05-31 15:52:07.334][trace][2645][122] connected stream, tcUrl=rtmp://www.pic98.com/demo, pageUrl=, swfUrl=, schema=rtmp, vhost=defaultVhost, port=1935, app=demo, stream=livestream, param=?t=7094678c-4ebe-4bc4-ae10-2fdbefd672c6&s=98c0c4af-0797-4c61-b4e9-d2c125208e5c, args=null
[2019-05-31 15:52:07.334][trace][2645][122] source url=/demo/livestream, ip=61.171.178.107, cache=0, is_edge=0, source_id=119[119]
[2019-05-31 15:52:07.344][trace][2645][122] http hook on_play success. client_id=122, url=http://www.gwgz.com:8091/srs, request={"action":"on_play","client_id":122,"ip":"61.171.178.107","vhost":"defaultVhost","app":"demo","stream":"livestream","param":"?t=7094678c-4ebe-4bc4-ae10-2fdbefd672c6&s=98c0c4af-0797-4c61-b4e9-d2c125208e5c","pageUrl":""}, response=0, ret=0
[2019-05-31 15:52:07.344][trace][2645][122] dispatch cached gop success. count=0, duration=0
[2019-05-31 15:52:07.344][trace][2645][122] create consumer, queue_size=10.00, jitter=1
[2019-05-31 15:52:07.354][trace][2645][122] mw changed sleep 350=>100, max_msgs=128, esbuf=62500, sbuf 46080=>62500, realtime=1
[2019-05-31 15:52:07.354][trace][2645][122] set TCP_NODELAY 0=>1
[2019-05-31 15:52:07.354][trace][2645][122] start play smi=0.00, mw_sleep=100, mw_enabled=1, realtime=1, tcp_nodelay=1
[2019-05-31 15:52:07.354][trace][2645][122] protocol in.buffer=1000, in.ack=2500000, out.ack=2500000, in.chunk=128, out.chunk=60000
[2019-05-31 15:52:09.823][trace][2645][119] cleanup when unpublish
[2019-05-31 15:52:09.832][trace][2645][119] http hook on_unpublish success. client_id=119, url=http://www.gwgz.com:8091/srs, request={"action":"on_unpublish","client_id":119,"ip":"61.171.178.107","vhost":"defaultVhost","app":"demo","stream":"livestream","param":"?r=1&s=4226b4ee-4b4a-4bc6-ab95-8c1bbdb1047f&t=b51b60ad-8278-41fa-ac49-7dd8d9b98523"}, response=0, ret=0
[2019-05-31 15:52:09.832][trace][2645][119] control message(unpublish) accept, retry stream service.
[2019-05-31 15:52:09.841][trace][2645][119] http hook on_close success. client_id=119, url=http://www.gwgz.com:8091/srs, request={"action":"on_close","client_id":119,"ip":"61.171.178.107","vhost":"defaultVhost","send_bytes":4493,"recv_bytes":133408,"app":"demo"}, response=0, ret=0
[2019-05-31 15:52:09.841][warn][2645][119][11] client disconnect peer. ret=1004
[2019-05-31 15:52:10.775][trace][2645][109] http hook on_dvr success. client_id=119, url=http://www.gwgz.com:8091/srs, request={"action":"on_dvr","client_id":119,"ip":"61.171.178.107","vhost":"defaultVhost","app":"demo","stream":"livestream","param":"?t=7094678c-4ebe-4bc4-ae10-2fdbefd672c6&s=98c0c4af-0797-4c61-b4e9-d2c125208e5c","cwd":"/root/srs/srs/trunk","file":"/media/share/demo/livestream/2019/05/31155201041.flv"}, response=0, ret=0

TRANS_BY_GPT3

@winlinvip
Copy link
Member

winlinvip commented Dec 1, 2020

I'll take a look.

TRANS_BY_GPT3

@winlinvip winlinvip added API HTTP-API, HTTP-Callback, etc. Bug It might be a bug. labels Aug 23, 2021
@duiniuluantanqin
Copy link
Member

duiniuluantanqin commented Aug 24, 2021

Verified, the feedback is true, and it has been fixed. Although it has been 2 years, let it benefit future users.

TRANS_BY_GPT3

@duiniuluantanqin duiniuluantanqin linked a pull request Aug 24, 2021 that will close this issue
@winlinvip winlinvip added this to the SRS 4.0 release milestone Aug 26, 2021
@winlinvip winlinvip changed the title on_dvr保存时携带的param里面的uri好像会串台啊。 It seems that the URI carried in the 'param' when saving on_dvr may be mixed up. Jul 28, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API HTTP-API, HTTP-Callback, etc. Bug It might be a bug. TransByAI Translated by AI/GPT.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants