-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathlive_stream_input_health.proto
65 lines (58 loc) · 1.89 KB
/
live_stream_input_health.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
syntax = "proto2";
package live_stream_input_health.v1;
// The top level message that customers will receive.
message LiveStreamInputHealth {
// The generic live health events
message AudioTrack {
optional uint64 bytes_received = 1;
}
message VideoTrack {
optional uint64 stream_start_ms = 1;
optional uint64 stream_end_ms = 2;
optional uint64 bytes_received = 3;
optional uint64 keyframes_received = 4;
optional uint64 total_frames_received = 5;
}
message CaptionTrack {
optional uint64 bytes_received = 1;
optional uint32 channel_count = 2;
}
message HealthUpdateEvent {
required string environment_id = 1;
required string live_stream_id = 2;
required string asset_id = 3;
optional uint64 measurement_start_ms = 4;
optional uint64 measurement_end_ms = 5;
repeated VideoTrack video_tracks = 7;
repeated AudioTrack audio_tracks = 8;
repeated CaptionTrack caption_tracks = 9;
optional uint32 asn = 10;
optional string asn_name = 11;
}
// RTMP specific metadata messages
message RTMPVideoTrackMetadata {
optional string codec_id = 1;
optional double data_rate = 2;
optional double frame_rate = 3;
optional double height = 4;
optional double width = 5;
}
message RTMPAudioTrackMetadata {
optional string codec_id = 1;
optional double data_rate = 2;
optional double channel_count = 3;
optional double sample_rate = 4;
optional double sample_size = 5;
}
message RTMPMetadataEvent {
required string environment_id = 1;
required string live_stream_id = 2;
required string asset_id = 3;
optional uint64 received_time_ms = 4;
optional string encoder = 5;
optional RTMPVideoTrackMetadata video_track = 6;
optional RTMPAudioTrackMetadata audio_track = 7;
}
optional RTMPMetadataEvent rtmp_metadata_event = 1;
optional HealthUpdateEvent health_update_event = 2;
}