Important note: We currently support these 'trick play' operations only on Transport Stream files that contain MPEG-1 or MPEG-2 video - not MPEG-4 (including H.264) video.
The index files use the file name suffix ".tsx"; for example, if your Transport Stream file is named "foo.ts", then the corresponding index file will be named "foo.tsx". The LIVE555 Streaming Media software includes an application - called "MPEG2TransportStreamIndexer", in the "testProgs" directory - that you can use to generate index files for your Transport Stream files. This application can be built - along with the rest of the LIVE555 Streaming Media software - from source code, (Alternatively, pre-built binary versions of this application are also available for some platforms; they can be downloaded from the LIVE555 Media Server web page.)
To generate each index file, run
MPEG2TransportStreamIndexer <transport-stream-file-name>(Be warned that this program is currently rather slow, so I suggest running it on the fastest computer that you have.) Once you've generated an index file (".tsx") for each Transport Stream file that you wish to stream, and have stored it in the same directory as the Transport Stream file (".ts"), then our RTSP server implementation will now handle 'trick mode' operations on the file.
testMPEG2TransportStreamTrickPlay <input-transport-stream-file-name> <start-time> <scale> <output-transport-stream-file-name>where
testMPEG2TransportStreamTrickPlay foo.ts 0 8 foo8.tsThe output file "foo8.ts" is the original stream, sped up 8x
testMPEG2TransportStreamTrickPlay foo.ts 30 -1 foo-1.tsThe output file "foo-1.ts" is the original stream, played backwards (at 1x speed), starting from the 30 second point.
testMPEG2TransportStreamTrickPlay foo.ts 30 -5 foo-5.tsThe output file "foo-5.ts" is the original stream, played backwards (at 5x speed), starting from the 30 second point.
![]()