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

Even without streaming, it will still record and also callback DVR events. #762

Closed
suoc opened this issue Feb 13, 2017 · 7 comments
Closed
Assignees
Labels
Bug It might be a bug. TransByAI Translated by AI/GPT.
Milestone

Comments

@suoc
Copy link

suoc commented Feb 13, 2017

Stream to the server, then stop streaming. At this point, open the recording for this stream, which will generate a video file. Also, close the recording and callback the DVR event.

TRANS_BY_GPT3

@winlinvip
Copy link
Member

winlinvip commented Feb 18, 2017

Please provide complete information.
https://github.com/ossrs/srs/wiki/v1_CN_HowToAskQuestion#file-issue

TRANS_BY_GPT3

@suoc
Copy link
Author

suoc commented Feb 20, 2017

System: CentOS 7
Encoder: OBS 17.0.2

This is the configuration:
dvr {
enabled on;
dvr_apply live/88888;
dvr_plan session;
dvr_path /home/lwt/edu/[app]/[stream]/mp4/[2006]/[01]/[02]/[stream].[timestamp].mp4;
dvr_duration 30;
dvr_wait_keyframe on;
time_jitter full;
}
http_hooks {
enabled on;
on_publish http://www.10d.xyz:80/BSCTelmed/frontend/edulive/onStreamStart;
on_unpublish http://www.10d.xyz:80/BSCTelmed/frontend/edulive/onStreamStop;
on_dvr http://www.10d.xyz:80/BSCTelmed/frontend/edulive/ondvr;
}

The streaming client is offline, but the stream status is still online. It just doesn't contain any stream information. If you try to record the stream at this time, it will still produce a video file of a few kilobytes.

TRANS_BY_GPT3

@suoc
Copy link
Author

suoc commented Feb 20, 2017

[2017-02-20 09:03:22.777][Trace][3074][89963] cleanup when unpublish
[2017-02-20 09:03:23.729][Trace][3074][117] http hook on_dvr success. client_id=89963, url=http://www.10d.xyz:80/BSCTelmed/frontend/edulive/ondvr, request={"action":"on_dvr","client_id":89963,"ip":"124.202.206.114","vhost":"defaultVhost","app":"live","stream":"88888","cwd":"/home/lwt/mediaserver/3.0/srs-develop/trunk","file":"/home/lwt/edu/live/88888/mp4/2017/02/20/88888.1487551842577.mp4"}, response={"code":0}, ret=0
[2017-02-20 09:03:23.731][Trace][3074][89963] http hook on_unpublish success. client_id=89963, url=http://www.10d.xyz:80/BSCTelmed/frontend/edulive/onStreamStop, request={"action":"on_unpublish","client_id":89963,"ip":"124.202.206.114","vhost":"defaultVhost","app":"live","stream":"88888"}, response={"code":0}, ret=0
[2017-02-20 09:03:23.731][Trace][3074][89963] control message(unpublish) accept, retry stream service.
[2017-02-20 09:03:23.731][Warn][3074][89963][32] client disconnect peer. oret=1009, ret=1004

@suoc
Copy link
Author

suoc commented Feb 20, 2017

The state of flow will continue to exist.

TRANS_BY_GPT3

@winlinvip
Copy link
Member

winlinvip commented Feb 25, 2017

Um, yes, this is caused by gop cache.
We should check if there is actually a stream, otherwise it will write some useless files.

TRANS_BY_GPT3

@winlinvip winlinvip added the Bug It might be a bug. label Feb 25, 2017
@winlinvip winlinvip added this to the srs 2.0 release milestone Feb 25, 2017
@winlinvip
Copy link
Member

winlinvip commented Feb 25, 2017

Oh, no, my bad. It seems like it has already been fixed and will check the status. Please double-check using the latest SRS2.

TRANS_BY_GPT3

@winlinvip
Copy link
Member

Dup to #503

@winlinvip winlinvip self-assigned this Sep 18, 2021
@winlinvip winlinvip changed the title 无流也会录制,也会回调dvr事件 Even without streaming, it will still record and also callback DVR events. 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
Bug It might be a bug. TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

2 participants