summaryrefslogtreecommitdiffstats
path: root/doc/dab_output_formats.txt
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-05-06 21:10:10 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-05-06 21:20:10 +0200
commit9fb273f8777ef11ad48498e5db5fd85958f75909 (patch)
treeaf8defea95e40d596aaf8442e995149af144e906 /doc/dab_output_formats.txt
parent97b0fdb983a62845faacf5020184a384ee1522ee (diff)
downloaddabmux-9fb273f8777ef11ad48498e5db5fd85958f75909.tar.gz
dabmux-9fb273f8777ef11ad48498e5db5fd85958f75909.tar.bz2
dabmux-9fb273f8777ef11ad48498e5db5fd85958f75909.zip
Add explanation of output formats
Diffstat (limited to 'doc/dab_output_formats.txt')
-rw-r--r--doc/dab_output_formats.txt39
1 files changed, 39 insertions, 0 deletions
diff --git a/doc/dab_output_formats.txt b/doc/dab_output_formats.txt
new file mode 100644
index 0000000..059ac19
--- /dev/null
+++ b/doc/dab_output_formats.txt
@@ -0,0 +1,39 @@
+ODR-DabMux supports three output formats for the ETI stream.
+
+The three formats are called 'framed', 'streamed' and 'raw'.
+
+The framed format is used for saving a finite ETI stream into a file. Each frame does
+not contain any padding, and the format can be described as follows:
+
+ uint32_t nbFrames
+ // for each frame
+ uint16_t frameSize
+ uint8_t data[ frameSize ]
+
+
+When streaming data, in which case the number of frames is not known in advance,
+the streamed format can be used. This format is identical to the first one except for the
+missing nbFrames.
+
+ // for each frame
+ uint16_t frameSize
+ uint8_t data[ frameSize ]
+
+
+The raw format corresponds to ETI(NI), where each frame has a constant size of 6144
+Bytes. The padding in this case is necessary.
+
+ // for each frame
+ uint8_t data [6144]
+
+In order to select the format, the following syntax for the -O option or the
+output setting in the configuration file is:
+
+ file://filename?type=format
+
+where format is one of framed, streamed or raw, e.g.
+
+ file:///tmp/mux.eti?type=raw
+
+saves a raw ETI file to /tmp/mux.eti
+