when playing with DVB-T2, I see there are example ts files of different
size, somehow optimized for the transmission mode, 4k or 8k, 64QAM or
256QAM.
Now when I have a look at them with my recoding software, they all look
identical, same bitrate and stuff, just different size. So I wonder,
what
are the differences, what qualifies a transport stream for a certain
transmission mode? I would like to prepare some on my own
And another question, how do I set the ID stuff, name, PID?
I don’t think there is something specific inside the TS for a
transmission mode, unless there are some packets or packet complement,
just like in ISDB-T (I do not know too much about DVB-T2), where you
place information of which PID goes to which hierarchical layer.
All you have to do is configure your MPEG2-TS muxer to place all the
information you want inside the TS.
The primary requirement is to the set the Transport Stream bitrate
properly. Otherwise, you’ll get audio or video stuttering. For DVB-T,
the bitrate calculation is straight forward, and there are only so many
combinations. I have a command line utility here.
For DVB-T2, the bitrate calculation is much more complex, and there are
a huge number of combinations. I have a command line utility, but I’ve
been reluctant to publish it on Github since it’s so difficult to use.
What it really needs is a GUI, but I haven’t got around to that.
However, it does work and I’ve put a copy on my website.
There are two rules that must be followed. First, the DVB-T2 frame
length (TF) can’t be longer than 250 milliseconds. Second, the number of
“dummy” cells must be positive or 0. Dummy cells are just filler to
match the number of cells in FEC blocks to the number of cells in OFDM
symbols. To get the maximum bitrate, you want to select the number of
symbols and number of FEC blocks combination that minimizes the number
of dummy cells.
In the first example, the line “max symbols = 68, max blocks = 229” is
showing the maximum number of symbols and FEC blocks that will fit in
250 milliseconds. The line “symbols = 60, max blocks = 202” is showing
the total number of symbols you’ve chosen (in this case, 59 data symbols
1 P2 symbol = 60) and the maximum number of FEC blocks that will fit
into that number of symbols.
Here’s the guideline for choosing DVB-T2 parameters. See chapter 5.
If you do some Googling, there are probably some DVB-T2 bitrate
calculators available that are much easier to use.
As for PID selection, the range 1 to 0x1f is reserved for specific DVB
functions, so stay away from those. For my test streams, I’ve been
using:
PAT = 0 (the PAT is always at PID 0);
PMT = 0x30
Video and PCR = 0x31
Audio = 0x34
Stuffing = 0x1fff (stuffing packets are always PID 0x1fff)
Most receivers will decode a simple Transport Stream without any
additional PIDs or service information beyond PAT, PMT, PCR, video,
audio and stuffing. If you want to get more complex, the DVB
specification for service information is here:
For the video stuff I prefer some kind of Windows software; it is just
about
storage capacity and horsepower, Linux runs in a VM. The problem is that
I
know almost nothing about all this stuff, so I am collecting bits and
pieces
of information…
Thanks a lot, I will have a look at obe.
Ralph.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.