-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
WebRTC: The DVR file becomes corrupt when the frames per second (fps) is very low. The recorded FLV video, which is streamed using WebRTC and has a frame rate of only 1 frame every 2-3 seconds, fails to play. #3122
Comments
srs_err.log
|
Are you using WebRTC for streaming? Is the recorded content normal? Are there any instances of fast-forwarding or slow playback?
|
@winlinvip listen 1935;
max_connections 1000;
daemon on;
srs_log_tank file;
## Disable version check
query_latest_version off;
http_server {
enabled on;
listen 8080;
dir ./objs/nginx/html;
}
http_api {
enabled on;
listen 1985;
raw_api {
enabled on;
allow_reload on;
allow_query on;
allow_update on;
}
}
## WebRtc Configuration
rtc_server {
enabled on;
listen 18000;
candidate *;
api_as_candidates off;
}
vhost saveVhost {
tcp_nodelay on;
# Enable Low Latency Mode
min_latency on;
play {
# If minimum latency is required, set it to off;
# If fast client startup is required, set it to on.
gop_cache off;
# Maximum real-time queue length (in seconds).
queue_length 10;
# atc on;
# mix_correct on;
mw_latency 100;
}
publish {
mr off;
}
# Play webrtc
rtc {
enabled on;
rtmp_to_rtc on;
rtc_to_rtmp on;
stun_timeout 5;
stun_strict_check on;
nack on;
twcc on;
pli_for_rtmp 0.5;
}
# Play flv
http_remux {
enabled on;
mount [vhost]/[app]/[stream].flv;
}
dvr {
enabled on;
# The address cannot use relative address, otherwise the callback address will also be a relative address, and the callback interface cannot handle it.
dvr_path /usr/local/stuff/srs413/trunk/objs/nginx/html/dvrfile/[vhost]/[app]/[stream]/[timestamp].flv;
dvr_plan segment;
dvr_duration 3600; # 1 hour per video
dvr_wait_keyframe off;
dvr_apply all;
}
http_hooks {
enabled off;
}
}
`TRANS_BY_GPT3` |
1660126459708.zip
|
dvr setting time_jitter zero; The video can be recorded normally, but previously the webRTC streaming could be played immediately, now it takes almost 20 seconds to start playing, and the video also starts recording at this time.
|
The video streaming part sometimes has a frame rate of around 1 frame per 1.2 seconds, and sometimes only 1 frame is pushed every 2-3 seconds. This part, where only 1 frame is pushed every 2-3 seconds, will fail to play.
Description
Description
The video stream is only pushed at a rate of 1 frame every 2-3 seconds. It can be recorded and played in real-time using WebRTC, but the recorded video fails to play. When pushed for 5 minutes, it only plays for a moment.
1. SRS Version:
4.0.212
1. SRS Log:
Attachment
1. SRS Config (Configuration):
Replay (重现)
When pushing the video, 1 frame is pushed every 2-3 seconds, and the recorded video cannot be played.
Expect (Expected Behavior)
Hope that even with such slow buffering, it can still be recorded and played back normally.
TRANS_BY_GPT3
The text was updated successfully, but these errors were encountered: