9个版本
0.1.8 | 2024年2月23日 |
---|---|
0.1.7 | 2024年2月17日 |
0.1.6 | 2019年7月19日 |
0.1.5 | 2018年12月4日 |
0.1.2 | 2018年3月15日 |
在视频类别中排名36
32KB
608 代码行
scte35dump
从文件或RTP网络流中转储SCTE-35数据
USAGE:
scte35dump [SUBCOMMAND]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
SUBCOMMANDS:
file Read a transport stream from the named file
help Prints this message or the help of the given subcommand(s)
net Read an RTP-encapsulated transport stream from the network
section Decode a single splice_info section value given on the command line
安装
- 安装
rustup
: https://rustup.rs/(它将为您提供一个Rust构建环境,包括cargo
工具) - 运行
cargo install scte35dump
- 运行
scte35dump --help
以获取使用说明
SCTE-35规范覆盖范围
并非所有命令都已实现
-
splice_null()
-
splice_schedule()
-
splice_insert()
-
time_signal()
-
bandwidth_reservation()
-
private_command()
示例
file
子命令
从本地传输流文件中转储
scte35dump file test-dump.ts
net
子命令
从RTP多播流中转储(添加--udp
选项以使用未封装RTP的纯UDP)。
$ scte35dump net -m 234.10.10.1 -p 5001 --ifaddr 192.168.0.11
unhandled pid 264
unhandled pid 8191
unhandled pid 256
unhandled pid 1500
unhandled pid 4096
new table for pid 4096, program 1
new PMT entry PID 256 (in program_number 1)
new PMT entry PID 264 (in program_number 1)
new PMT entry PID 1500 (in program_number 1)
SpliceInfoHeader { protocol_version: 0, encrypted_packet: false, encryption_algorithm: None, pts_adjustment: 0, cw_index: 0, tier: 0 } SpliceNull
SpliceInfoHeader { protocol_version: 0, encrypted_packet: false, encryption_algorithm: None, pts_adjustment: 0, cw_index: 0, tier: 0 } SpliceNull
SpliceInfoHeader { protocol_version: 0, encrypted_packet: false, encryption_algorithm: None, pts_adjustment: 0, cw_index: 0, tier: 0 } SpliceNull
SpliceInfoHeader { protocol_version: 0, encrypted_packet: false, encryption_algorithm: None, pts_adjustment: 0, cw_index: 0, tier: 0 } SpliceNull
SpliceInfoHeader { protocol_version: 0, encrypted_packet: false, encryption_algorithm: None, pts_adjustment: 0, cw_index: 0, tier: 0 } SpliceNull
SpliceInfoHeader { protocol_version: 0, encrypted_packet: false, encryption_algorithm: None, pts_adjustment: 0, cw_index: 0, tier: 0 } SpliceNull
SpliceInfoHeader { protocol_version: 0, encrypted_packet: false, encryption_algorithm: None, pts_adjustment: 0, cw_index: 0, tier: 0 } SpliceNull
SpliceInfoHeader { protocol_version: 0, encrypted_packet: false, encryption_algorithm: None, pts_adjustment: 0, cw_index: 0, tier: 0 } SpliceInsert {
splice_event_id: 1,
reserved: 127,
splice_detail: Insert {
network_indicator: In,
splice_mode: Program(
Immediate
),
duration: Some(
SpliceDuration {
return_mode: Manual,
duration: 10800000
}
),
unique_program_id: 1,
avail_num: 0,
avails_expected: 0
}
}
SpliceInfoHeader { protocol_version: 0, encrypted_packet: false, encryption_algorithm: None, pts_adjustment: 0, cw_index: 0, tier: 0 } SpliceNull
SpliceInfoHeader { protocol_version: 0, encrypted_packet: false, encryption_algorithm: None, pts_adjustment: 0, cw_index: 0, tier: 0 } SpliceNull
SpliceInfoHeader { protocol_version: 0, encrypted_packet: false, encryption_algorithm: None, pts_adjustment: 0, cw_index: 0, tier: 0 } SpliceNull
SpliceInfoHeader { protocol_version: 0, encrypted_packet: false, encryption_algorithm: None, pts_adjustment: 0, cw_index: 0, tier: 0 } SpliceNull
SpliceInfoHeader { protocol_version: 0, encrypted_packet: false, encryption_algorithm: None, pts_adjustment: 0, cw_index: 0, tier: 0 } SpliceNull
SpliceInfoHeader { protocol_version: 0, encrypted_packet: false, encryption_algorithm: None, pts_adjustment: 0, cw_index: 0, tier: 0 } SpliceNull
section
子命令
转储作为命令行参数传递的base64编码的节字符串
$ scte35dump section --base64 "/DAlAAAAAAAAAP/wFAUAAAABf+/+LRQrAP4BI9MIAAEBAQAAfxV6SQ=="
SpliceInfoHeader { protocol_version: 0, encrypted_packet: false, encryption_algorithm: None, pts_adjustment: 0, cw_index: 0, tier: 4095 } SpliceInsert {
splice_event_id: 1,
reserved: 127,
splice_detail: Insert {
network_indicator: Out,
splice_mode: Program(
Timed(
Some(
756296448
)
)
),
duration: Some(
SpliceDuration {
return_mode: Automatic,
duration: 19125000
}
),
unique_program_id: 1,
avail_num: 1,
avails_expected: 1
}
}
转储作为命令行参数传递的十六进制编码的节字符串
$ scte35dump section --hex "fc302500000000000000fff01405000000017feffe2d142b00fe0123d3080001010100007f157a49"
SpliceInfoHeader { protocol_version: 0, encrypted_packet: false, encryption_algorithm: None, pts_adjustment: 0, cw_index: 0, tier: 4095 } SpliceInsert {
splice_event_id: 1,
reserved: 127,
splice_detail: Insert {
network_indicator: Out,
splice_mode: Program(
Timed(
Some(
756296448
)
)
),
duration: Some(
SpliceDuration {
return_mode: Automatic,
duration: 19125000
}
),
unique_program_id: 1,
avail_num: 1,
avails_expected: 1
}
}
依赖关系
~6-17MB
~199K SLoC