-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Closed
Labels
EnglishNativeThis issue is conveyed exclusively in English.This issue is conveyed exclusively in English.
Description
Hello,
Using SRS/7.0.115, when publishing using srt, I get through ffprobe the usual h264/aac stream.
Input #0, mpegts, from 'srt://127.0.0.1:1935?streamid=#!::h=live/test,m=request':
Duration: N/A, start: 67707.653811, bitrate: N/A
Program 1
Stream #0:0[0x101]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn
Stream #0:1[0x102]: Audio: aac (LC) ([15][0][0][0] / 0x000F), 44100 Hz, stereo, fltp, 133 kb/s
Stream #0:2[0x119]: Data: scte_35
However, when probing the HTTP callback API in order to get stats for this stream, I can't get anything that useful:
{
"code": 0,
"server": "vid-6ou26s1",
"service": "3h9e8o93",
"pid": "1053709",
"stream": {
"id": "vid-jr8187k",
"name": "test",
"vhost": "vid-35c3886",
"app": "live",
"tcUrl": "srt://xx.xx.xx.xx/live",
"url": "/live/test",
"live_ms": 1762131537295,
"clients": 1,
"frames": 0,
"send_bytes": 6777842,
"recv_bytes": 222383846,
"kbps": {
"recv_30s": 10196,
"send_30s": 951
},
"publish": {
"active": true,
"cid": "b2579bz9"
},
"video": null,
"audio": null
}
}
video/audo doesn't seem to be detected at all, frames is also empty. I was looking to get data here to detect bitrate of audio/video, etc. Am I doing something wrong here or is it a bug?
srt_server {
enabled on;
listen 1935;
maxbw 1000000000;
mss 1500;
connect_timeout 4000;
peer_idle_timeout 8000;
default_app live;
peerlatency 0;
recvlatency 0;
latency 0;
tsbpdmode off;
tlpktdrop off;
sendbuf 2000000;
recvbuf 2000000;
pbkeylen 16;
}
vhost __defaultVhost__ {
min_latency off;
tcp_nodelay off;
chunk_size 128;
in_ack_size 0;
out_ack_size 2500000;
publish {
mr off;
mr_latency 350;
firstpkt_timeout 20000;
normal_timeout 7000;
parse_sps on;
try_annexb_first on;
kickoff_for_idle 0;
}
play {
gop_cache off;
gop_cache_max_frames 2500;
queue_length 10;
time_jitter full;
atc off;
mix_correct off;
atc_auto off;
mw_latency 350;
mw_msgs 8;
send_min_interval 10.0;
reduce_sequence_header on;
}
srt {
enabled on;
srt_to_rtmp off;
}
}
Metadata
Metadata
Assignees
Labels
EnglishNativeThis issue is conveyed exclusively in English.This issue is conveyed exclusively in English.