-
Notifications
You must be signed in to change notification settings - Fork 851
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] Added and updated description of useful test applications (#2191)
- Loading branch information
Showing
5 changed files
with
142 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# srt-file-transmit | ||
|
||
The `srt-file-transmit` tool is a tool for transmitting files over SRT. | ||
|
||
You need: | ||
|
||
- a file to transmit | ||
- a destination to store it into | ||
- this application run on both sides, one sending, one receiving | ||
|
||
## Introduction | ||
|
||
The `srt-file-transmit` application will transmit your file over the SRT connection, | ||
the application on the other side will receive it and store to the desired location. | ||
Both caller-listener and rendezvous arrangement of the connection are possible | ||
and in whatever direction. | ||
|
||
The `streamid` socket option will be used to pass the filename to the other side | ||
so that it is either written with this name or matched with the filename internally. | ||
|
||
The application the will be sending a file should use the file path as source and | ||
SRT URI as a destination, and vice versa for receiving. | ||
|
||
## Caller mode | ||
|
||
If you use sender in caller mode, then the caller SRT URI destination should be | ||
specified, and the "root name" from the file path will be set to `streamid`. | ||
This will allow the listener to use it when writing. | ||
|
||
If a receiver is used as a caller, then the destination filepath's rootname | ||
will be also passed as `streamid` so that the listener receiver can pick up the | ||
file by name. | ||
|
||
In caller mode you must specify the full filename path of the received or sent | ||
file. | ||
|
||
## Listener mode | ||
|
||
If you use sender in listener mode, then you start it with specifying either the | ||
full filename path, or only the directory where the file is located; in the latter | ||
case the filename will be tried from the `streamid` option extracted from the | ||
connected socket (as set by the other side's caller). If the full filename was | ||
specified, it must match the rootname extraced from this option, or otherwise | ||
transmission will not be done. | ||
|
||
If you use receiver in listener mode, then you start it with specifying either | ||
the full filename path, or just the directory. In the latter case the root name | ||
will be extracted from `streamid` socket option, and this one will be transmitted. | ||
|
||
## Usage | ||
|
||
``` | ||
srt-file-transmit [options] <input-uri> <output-uri> | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# srt-test-relay | ||
|
||
**srt-test-relay** is a sample program that can utilize SRT connection for | ||
bidirectional traffic. Hence beside the SRT connection you can specify both | ||
input and output media to and from which the traffic will be flipped. | ||
|
||
Effectively the specified input will be sent through the SRT connection as | ||
output, and the input read from the SRT connection will be redirected to | ||
the given output media. | ||
|
||
NOTE: To make this application compiled, you need the `-DENABLE_TESTING=1` | ||
cmake option. | ||
|
||
Note also that this application is intended for demonstration only. It can | ||
simply exit with error message in case of wrong usage or broken connection. | ||
|
||
## Usage | ||
|
||
`srt-test-relay <SRT-URI> -i <INPUT URI> -o <OUTPUT URI>` | ||
|
||
Establish a connection, send to it the stream received from INPUT URI and | ||
write the data read from the SRT connection to OUTPUT URI. | ||
|
||
`srt-test-relay <SRT-URI> -e -o <OUTPUT URI> <OUTPUT URI2>` | ||
|
||
Establish a connection, read the data from the SRT connection, and write | ||
them back over the SRT connection, and additionally write them as well | ||
to OUTPUT URI and OUTPUT URI2. | ||
|
||
Note that you can also control the single portion of data to be sent | ||
at once by one sending call by `-c` option and you can use both live | ||
and file mode for the connection (the latter should be simply enforced | ||
by `transtype` socket option). | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters