[英]Live555 TSX file indexing
I'm looking at the Live555 media server. 我正在看Live555媒体服务器。 It has an executable that's used to "index" transport stream videos and is named / used like this:
它具有一个可执行文件,用于“索引”传输流视频,其命名/使用方式如下:
MPEG2TransportStreamIndexer video.ts
So if a video is named TransportStreamVideo.ts
the indexer creates a file named TransportStreamVideo.tsx
. 因此,如果视频名为
TransportStreamVideo.ts
则索引器将创建一个名为TransportStreamVideo.tsx
的文件。 Notice the same name as the video file just adds an 'x' or extension is ".tsx 请注意,与视频文件相同的名称只是添加了“ x”或扩展名是“ .tsx”
I know this is for 'trick play' but I'm wondering just how this works internally. 我知道这是“技巧游戏”的意思,但我想知道这在内部是如何工作的。
So my question is: how does Live555 use the ' .ts' file and ' .tsx' file together? 所以我的问题是:Live555如何一起使用“ .ts”文件和“ .tsx”文件?
Is a completely new stream produced to send out to be displayed on the client video display? 是否产生了一个全新的流以发送出去以显示在客户端视频显示器上?
If you look to the code of live555MediaServer
in file DynamicRTSPServer.cpp
, you will see that the session is created like this: 如果查看文件
DynamicRTSPServer.cpp
中live555MediaServer
的代码,则会看到该会话是按以下方式创建的:
} else if (strcmp(extension, ".ts") == 0) {
// Assumed to be a MPEG Transport Stream file:
// Use an index file name that's the same as the TS file name, except with ".tsx":
unsigned indexFileNameLen = strlen(fileName) + 2; // allow for trailing "x\0"
char* indexFileName = new char[indexFileNameLen];
sprintf(indexFileName, "%sx", fileName);
NEW_SMS("MPEG Transport Stream");
sms->addSubsession(MPEG2TransportFileServerMediaSubsession::createNew(env, fileName, indexFileName, reuseSource));
delete[] indexFileName;
}
The MPEG2TransportFileServerMediaSubsession
object use the .ts
file and its associated .tsx
index. MPEG2TransportFileServerMediaSubsession
对象使用.ts
文件及其关联的.tsx
索引。
The tsx file is not a new stream it is an index on the transport stream file. tsx文件不是新流,它是传输流文件上的索引。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.