threefive3 3.0.29__tar.gz → 3.0.33__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- threefive3-3.0.33/LICENSE +339 -0
- {threefive3-3.0.29/threefive3.egg-info → threefive3-3.0.33}/PKG-INFO +4 -4
- {threefive3-3.0.29 → threefive3-3.0.33}/README.md +3 -3
- {threefive3-3.0.29 → threefive3-3.0.33}/bin/threefive3 +6 -6
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3/base.py +1 -5
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3/bitn.py +5 -10
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3/cue.py +10 -21
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3/gums.py +6 -12
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3/hls.py +5 -5
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3/hlstags.py +1 -13
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3/new_reader.py +9 -3
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3/stream.py +88 -91
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3/stuff.py +8 -0
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3/version.py +1 -1
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3/words.py +6 -0
- {threefive3-3.0.29 → threefive3-3.0.33/threefive3.egg-info}/PKG-INFO +4 -4
- threefive3-3.0.29/LICENSE +0 -24
- {threefive3-3.0.29 → threefive3-3.0.33}/setup.cfg +0 -0
- {threefive3-3.0.29 → threefive3-3.0.33}/setup.py +0 -0
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3/__init__.py +0 -0
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3/aac.py +0 -0
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3/commands.py +0 -0
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3/crc.py +0 -0
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3/descriptors.py +0 -0
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3/encode.py +0 -0
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3/iframes.py +0 -0
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3/packetdata.py +0 -0
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3/section.py +0 -0
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3/segment.py +0 -0
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3/segmentation.py +0 -0
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3/sixfix.py +0 -0
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3/streamtypes.py +0 -0
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3/superkabuki.py +0 -0
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3/upids.py +0 -0
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3.egg-info/SOURCES.txt +0 -0
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3.egg-info/dependency_links.txt +0 -0
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3.egg-info/requires.txt +0 -0
- {threefive3-3.0.29 → threefive3-3.0.33}/threefive3.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
GNU GENERAL PUBLIC LICENSE
|
|
2
|
+
Version 2, June 1991
|
|
3
|
+
|
|
4
|
+
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
|
5
|
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
6
|
+
Everyone is permitted to copy and distribute verbatim copies
|
|
7
|
+
of this license document, but changing it is not allowed.
|
|
8
|
+
|
|
9
|
+
Preamble
|
|
10
|
+
|
|
11
|
+
The licenses for most software are designed to take away your
|
|
12
|
+
freedom to share and change it. By contrast, the GNU General Public
|
|
13
|
+
License is intended to guarantee your freedom to share and change free
|
|
14
|
+
software--to make sure the software is free for all its users. This
|
|
15
|
+
General Public License applies to most of the Free Software
|
|
16
|
+
Foundation's software and to any other program whose authors commit to
|
|
17
|
+
using it. (Some other Free Software Foundation software is covered by
|
|
18
|
+
the GNU Lesser General Public License instead.) You can apply it to
|
|
19
|
+
your programs, too.
|
|
20
|
+
|
|
21
|
+
When we speak of free software, we are referring to freedom, not
|
|
22
|
+
price. Our General Public Licenses are designed to make sure that you
|
|
23
|
+
have the freedom to distribute copies of free software (and charge for
|
|
24
|
+
this service if you wish), that you receive source code or can get it
|
|
25
|
+
if you want it, that you can change the software or use pieces of it
|
|
26
|
+
in new free programs; and that you know you can do these things.
|
|
27
|
+
|
|
28
|
+
To protect your rights, we need to make restrictions that forbid
|
|
29
|
+
anyone to deny you these rights or to ask you to surrender the rights.
|
|
30
|
+
These restrictions translate to certain responsibilities for you if you
|
|
31
|
+
distribute copies of the software, or if you modify it.
|
|
32
|
+
|
|
33
|
+
For example, if you distribute copies of such a program, whether
|
|
34
|
+
gratis or for a fee, you must give the recipients all the rights that
|
|
35
|
+
you have. You must make sure that they, too, receive or can get the
|
|
36
|
+
source code. And you must show them these terms so they know their
|
|
37
|
+
rights.
|
|
38
|
+
|
|
39
|
+
We protect your rights with two steps: (1) copyright the software, and
|
|
40
|
+
(2) offer you this license which gives you legal permission to copy,
|
|
41
|
+
distribute and/or modify the software.
|
|
42
|
+
|
|
43
|
+
Also, for each author's protection and ours, we want to make certain
|
|
44
|
+
that everyone understands that there is no warranty for this free
|
|
45
|
+
software. If the software is modified by someone else and passed on, we
|
|
46
|
+
want its recipients to know that what they have is not the original, so
|
|
47
|
+
that any problems introduced by others will not reflect on the original
|
|
48
|
+
authors' reputations.
|
|
49
|
+
|
|
50
|
+
Finally, any free program is threatened constantly by software
|
|
51
|
+
patents. We wish to avoid the danger that redistributors of a free
|
|
52
|
+
program will individually obtain patent licenses, in effect making the
|
|
53
|
+
program proprietary. To prevent this, we have made it clear that any
|
|
54
|
+
patent must be licensed for everyone's free use or not licensed at all.
|
|
55
|
+
|
|
56
|
+
The precise terms and conditions for copying, distribution and
|
|
57
|
+
modification follow.
|
|
58
|
+
|
|
59
|
+
GNU GENERAL PUBLIC LICENSE
|
|
60
|
+
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
|
61
|
+
|
|
62
|
+
0. This License applies to any program or other work which contains
|
|
63
|
+
a notice placed by the copyright holder saying it may be distributed
|
|
64
|
+
under the terms of this General Public License. The "Program", below,
|
|
65
|
+
refers to any such program or work, and a "work based on the Program"
|
|
66
|
+
means either the Program or any derivative work under copyright law:
|
|
67
|
+
that is to say, a work containing the Program or a portion of it,
|
|
68
|
+
either verbatim or with modifications and/or translated into another
|
|
69
|
+
language. (Hereinafter, translation is included without limitation in
|
|
70
|
+
the term "modification".) Each licensee is addressed as "you".
|
|
71
|
+
|
|
72
|
+
Activities other than copying, distribution and modification are not
|
|
73
|
+
covered by this License; they are outside its scope. The act of
|
|
74
|
+
running the Program is not restricted, and the output from the Program
|
|
75
|
+
is covered only if its contents constitute a work based on the
|
|
76
|
+
Program (independent of having been made by running the Program).
|
|
77
|
+
Whether that is true depends on what the Program does.
|
|
78
|
+
|
|
79
|
+
1. You may copy and distribute verbatim copies of the Program's
|
|
80
|
+
source code as you receive it, in any medium, provided that you
|
|
81
|
+
conspicuously and appropriately publish on each copy an appropriate
|
|
82
|
+
copyright notice and disclaimer of warranty; keep intact all the
|
|
83
|
+
notices that refer to this License and to the absence of any warranty;
|
|
84
|
+
and give any other recipients of the Program a copy of this License
|
|
85
|
+
along with the Program.
|
|
86
|
+
|
|
87
|
+
You may charge a fee for the physical act of transferring a copy, and
|
|
88
|
+
you may at your option offer warranty protection in exchange for a fee.
|
|
89
|
+
|
|
90
|
+
2. You may modify your copy or copies of the Program or any portion
|
|
91
|
+
of it, thus forming a work based on the Program, and copy and
|
|
92
|
+
distribute such modifications or work under the terms of Section 1
|
|
93
|
+
above, provided that you also meet all of these conditions:
|
|
94
|
+
|
|
95
|
+
a) You must cause the modified files to carry prominent notices
|
|
96
|
+
stating that you changed the files and the date of any change.
|
|
97
|
+
|
|
98
|
+
b) You must cause any work that you distribute or publish, that in
|
|
99
|
+
whole or in part contains or is derived from the Program or any
|
|
100
|
+
part thereof, to be licensed as a whole at no charge to all third
|
|
101
|
+
parties under the terms of this License.
|
|
102
|
+
|
|
103
|
+
c) If the modified program normally reads commands interactively
|
|
104
|
+
when run, you must cause it, when started running for such
|
|
105
|
+
interactive use in the most ordinary way, to print or display an
|
|
106
|
+
announcement including an appropriate copyright notice and a
|
|
107
|
+
notice that there is no warranty (or else, saying that you provide
|
|
108
|
+
a warranty) and that users may redistribute the program under
|
|
109
|
+
these conditions, and telling the user how to view a copy of this
|
|
110
|
+
License. (Exception: if the Program itself is interactive but
|
|
111
|
+
does not normally print such an announcement, your work based on
|
|
112
|
+
the Program is not required to print an announcement.)
|
|
113
|
+
|
|
114
|
+
These requirements apply to the modified work as a whole. If
|
|
115
|
+
identifiable sections of that work are not derived from the Program,
|
|
116
|
+
and can be reasonably considered independent and separate works in
|
|
117
|
+
themselves, then this License, and its terms, do not apply to those
|
|
118
|
+
sections when you distribute them as separate works. But when you
|
|
119
|
+
distribute the same sections as part of a whole which is a work based
|
|
120
|
+
on the Program, the distribution of the whole must be on the terms of
|
|
121
|
+
this License, whose permissions for other licensees extend to the
|
|
122
|
+
entire whole, and thus to each and every part regardless of who wrote it.
|
|
123
|
+
|
|
124
|
+
Thus, it is not the intent of this section to claim rights or contest
|
|
125
|
+
your rights to work written entirely by you; rather, the intent is to
|
|
126
|
+
exercise the right to control the distribution of derivative or
|
|
127
|
+
collective works based on the Program.
|
|
128
|
+
|
|
129
|
+
In addition, mere aggregation of another work not based on the Program
|
|
130
|
+
with the Program (or with a work based on the Program) on a volume of
|
|
131
|
+
a storage or distribution medium does not bring the other work under
|
|
132
|
+
the scope of this License.
|
|
133
|
+
|
|
134
|
+
3. You may copy and distribute the Program (or a work based on it,
|
|
135
|
+
under Section 2) in object code or executable form under the terms of
|
|
136
|
+
Sections 1 and 2 above provided that you also do one of the following:
|
|
137
|
+
|
|
138
|
+
a) Accompany it with the complete corresponding machine-readable
|
|
139
|
+
source code, which must be distributed under the terms of Sections
|
|
140
|
+
1 and 2 above on a medium customarily used for software interchange; or,
|
|
141
|
+
|
|
142
|
+
b) Accompany it with a written offer, valid for at least three
|
|
143
|
+
years, to give any third party, for a charge no more than your
|
|
144
|
+
cost of physically performing source distribution, a complete
|
|
145
|
+
machine-readable copy of the corresponding source code, to be
|
|
146
|
+
distributed under the terms of Sections 1 and 2 above on a medium
|
|
147
|
+
customarily used for software interchange; or,
|
|
148
|
+
|
|
149
|
+
c) Accompany it with the information you received as to the offer
|
|
150
|
+
to distribute corresponding source code. (This alternative is
|
|
151
|
+
allowed only for noncommercial distribution and only if you
|
|
152
|
+
received the program in object code or executable form with such
|
|
153
|
+
an offer, in accord with Subsection b above.)
|
|
154
|
+
|
|
155
|
+
The source code for a work means the preferred form of the work for
|
|
156
|
+
making modifications to it. For an executable work, complete source
|
|
157
|
+
code means all the source code for all modules it contains, plus any
|
|
158
|
+
associated interface definition files, plus the scripts used to
|
|
159
|
+
control compilation and installation of the executable. However, as a
|
|
160
|
+
special exception, the source code distributed need not include
|
|
161
|
+
anything that is normally distributed (in either source or binary
|
|
162
|
+
form) with the major components (compiler, kernel, and so on) of the
|
|
163
|
+
operating system on which the executable runs, unless that component
|
|
164
|
+
itself accompanies the executable.
|
|
165
|
+
|
|
166
|
+
If distribution of executable or object code is made by offering
|
|
167
|
+
access to copy from a designated place, then offering equivalent
|
|
168
|
+
access to copy the source code from the same place counts as
|
|
169
|
+
distribution of the source code, even though third parties are not
|
|
170
|
+
compelled to copy the source along with the object code.
|
|
171
|
+
|
|
172
|
+
4. You may not copy, modify, sublicense, or distribute the Program
|
|
173
|
+
except as expressly provided under this License. Any attempt
|
|
174
|
+
otherwise to copy, modify, sublicense or distribute the Program is
|
|
175
|
+
void, and will automatically terminate your rights under this License.
|
|
176
|
+
However, parties who have received copies, or rights, from you under
|
|
177
|
+
this License will not have their licenses terminated so long as such
|
|
178
|
+
parties remain in full compliance.
|
|
179
|
+
|
|
180
|
+
5. You are not required to accept this License, since you have not
|
|
181
|
+
signed it. However, nothing else grants you permission to modify or
|
|
182
|
+
distribute the Program or its derivative works. These actions are
|
|
183
|
+
prohibited by law if you do not accept this License. Therefore, by
|
|
184
|
+
modifying or distributing the Program (or any work based on the
|
|
185
|
+
Program), you indicate your acceptance of this License to do so, and
|
|
186
|
+
all its terms and conditions for copying, distributing or modifying
|
|
187
|
+
the Program or works based on it.
|
|
188
|
+
|
|
189
|
+
6. Each time you redistribute the Program (or any work based on the
|
|
190
|
+
Program), the recipient automatically receives a license from the
|
|
191
|
+
original licensor to copy, distribute or modify the Program subject to
|
|
192
|
+
these terms and conditions. You may not impose any further
|
|
193
|
+
restrictions on the recipients' exercise of the rights granted herein.
|
|
194
|
+
You are not responsible for enforcing compliance by third parties to
|
|
195
|
+
this License.
|
|
196
|
+
|
|
197
|
+
7. If, as a consequence of a court judgment or allegation of patent
|
|
198
|
+
infringement or for any other reason (not limited to patent issues),
|
|
199
|
+
conditions are imposed on you (whether by court order, agreement or
|
|
200
|
+
otherwise) that contradict the conditions of this License, they do not
|
|
201
|
+
excuse you from the conditions of this License. If you cannot
|
|
202
|
+
distribute so as to satisfy simultaneously your obligations under this
|
|
203
|
+
License and any other pertinent obligations, then as a consequence you
|
|
204
|
+
may not distribute the Program at all. For example, if a patent
|
|
205
|
+
license would not permit royalty-free redistribution of the Program by
|
|
206
|
+
all those who receive copies directly or indirectly through you, then
|
|
207
|
+
the only way you could satisfy both it and this License would be to
|
|
208
|
+
refrain entirely from distribution of the Program.
|
|
209
|
+
|
|
210
|
+
If any portion of this section is held invalid or unenforceable under
|
|
211
|
+
any particular circumstance, the balance of the section is intended to
|
|
212
|
+
apply and the section as a whole is intended to apply in other
|
|
213
|
+
circumstances.
|
|
214
|
+
|
|
215
|
+
It is not the purpose of this section to induce you to infringe any
|
|
216
|
+
patents or other property right claims or to contest validity of any
|
|
217
|
+
such claims; this section has the sole purpose of protecting the
|
|
218
|
+
integrity of the free software distribution system, which is
|
|
219
|
+
implemented by public license practices. Many people have made
|
|
220
|
+
generous contributions to the wide range of software distributed
|
|
221
|
+
through that system in reliance on consistent application of that
|
|
222
|
+
system; it is up to the author/donor to decide if he or she is willing
|
|
223
|
+
to distribute software through any other system and a licensee cannot
|
|
224
|
+
impose that choice.
|
|
225
|
+
|
|
226
|
+
This section is intended to make thoroughly clear what is believed to
|
|
227
|
+
be a consequence of the rest of this License.
|
|
228
|
+
|
|
229
|
+
8. If the distribution and/or use of the Program is restricted in
|
|
230
|
+
certain countries either by patents or by copyrighted interfaces, the
|
|
231
|
+
original copyright holder who places the Program under this License
|
|
232
|
+
may add an explicit geographical distribution limitation excluding
|
|
233
|
+
those countries, so that distribution is permitted only in or among
|
|
234
|
+
countries not thus excluded. In such case, this License incorporates
|
|
235
|
+
the limitation as if written in the body of this License.
|
|
236
|
+
|
|
237
|
+
9. The Free Software Foundation may publish revised and/or new versions
|
|
238
|
+
of the General Public License from time to time. Such new versions will
|
|
239
|
+
be similar in spirit to the present version, but may differ in detail to
|
|
240
|
+
address new problems or concerns.
|
|
241
|
+
|
|
242
|
+
Each version is given a distinguishing version number. If the Program
|
|
243
|
+
specifies a version number of this License which applies to it and "any
|
|
244
|
+
later version", you have the option of following the terms and conditions
|
|
245
|
+
either of that version or of any later version published by the Free
|
|
246
|
+
Software Foundation. If the Program does not specify a version number of
|
|
247
|
+
this License, you may choose any version ever published by the Free Software
|
|
248
|
+
Foundation.
|
|
249
|
+
|
|
250
|
+
10. If you wish to incorporate parts of the Program into other free
|
|
251
|
+
programs whose distribution conditions are different, write to the author
|
|
252
|
+
to ask for permission. For software which is copyrighted by the Free
|
|
253
|
+
Software Foundation, write to the Free Software Foundation; we sometimes
|
|
254
|
+
make exceptions for this. Our decision will be guided by the two goals
|
|
255
|
+
of preserving the free status of all derivatives of our free software and
|
|
256
|
+
of promoting the sharing and reuse of software generally.
|
|
257
|
+
|
|
258
|
+
NO WARRANTY
|
|
259
|
+
|
|
260
|
+
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
|
261
|
+
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
|
262
|
+
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
|
263
|
+
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
|
264
|
+
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
265
|
+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
|
266
|
+
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
|
267
|
+
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
|
268
|
+
REPAIR OR CORRECTION.
|
|
269
|
+
|
|
270
|
+
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
|
271
|
+
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
|
272
|
+
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
|
273
|
+
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
|
274
|
+
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
|
275
|
+
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
|
276
|
+
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
|
277
|
+
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
|
278
|
+
POSSIBILITY OF SUCH DAMAGES.
|
|
279
|
+
|
|
280
|
+
END OF TERMS AND CONDITIONS
|
|
281
|
+
|
|
282
|
+
How to Apply These Terms to Your New Programs
|
|
283
|
+
|
|
284
|
+
If you develop a new program, and you want it to be of the greatest
|
|
285
|
+
possible use to the public, the best way to achieve this is to make it
|
|
286
|
+
free software which everyone can redistribute and change under these terms.
|
|
287
|
+
|
|
288
|
+
To do so, attach the following notices to the program. It is safest
|
|
289
|
+
to attach them to the start of each source file to most effectively
|
|
290
|
+
convey the exclusion of warranty; and each file should have at least
|
|
291
|
+
the "copyright" line and a pointer to where the full notice is found.
|
|
292
|
+
|
|
293
|
+
<one line to give the program's name and a brief idea of what it does.>
|
|
294
|
+
Copyright (C) <year> <name of author>
|
|
295
|
+
|
|
296
|
+
This program is free software; you can redistribute it and/or modify
|
|
297
|
+
it under the terms of the GNU General Public License as published by
|
|
298
|
+
the Free Software Foundation; either version 2 of the License, or
|
|
299
|
+
(at your option) any later version.
|
|
300
|
+
|
|
301
|
+
This program is distributed in the hope that it will be useful,
|
|
302
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
303
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
304
|
+
GNU General Public License for more details.
|
|
305
|
+
|
|
306
|
+
You should have received a copy of the GNU General Public License along
|
|
307
|
+
with this program; if not, write to the Free Software Foundation, Inc.,
|
|
308
|
+
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
309
|
+
|
|
310
|
+
Also add information on how to contact you by electronic and paper mail.
|
|
311
|
+
|
|
312
|
+
If the program is interactive, make it output a short notice like this
|
|
313
|
+
when it starts in an interactive mode:
|
|
314
|
+
|
|
315
|
+
Gnomovision version 69, Copyright (C) year name of author
|
|
316
|
+
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
|
317
|
+
This is free software, and you are welcome to redistribute it
|
|
318
|
+
under certain conditions; type `show c' for details.
|
|
319
|
+
|
|
320
|
+
The hypothetical commands `show w' and `show c' should show the appropriate
|
|
321
|
+
parts of the General Public License. Of course, the commands you use may
|
|
322
|
+
be called something other than `show w' and `show c'; they could even be
|
|
323
|
+
mouse-clicks or menu items--whatever suits your program.
|
|
324
|
+
|
|
325
|
+
You should also get your employer (if you work as a programmer) or your
|
|
326
|
+
school, if any, to sign a "copyright disclaimer" for the program, if
|
|
327
|
+
necessary. Here is a sample; alter the names:
|
|
328
|
+
|
|
329
|
+
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
|
330
|
+
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
|
331
|
+
|
|
332
|
+
<signature of Ty Coon>, 1 April 1989
|
|
333
|
+
Ty Coon, President of Vice
|
|
334
|
+
|
|
335
|
+
This General Public License does not permit incorporating your program into
|
|
336
|
+
proprietary programs. If your program is a subroutine library, you may
|
|
337
|
+
consider it more useful to permit linking proprietary applications with the
|
|
338
|
+
library. If this is what you want to do, use the GNU Lesser General
|
|
339
|
+
Public License instead of this License.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: threefive3
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.33
|
|
4
4
|
Summary: SCTE-35 decoder and encoder with MPEGTS and HLS and XML support.
|
|
5
5
|
Home-page: https://github.com/superkabuki/threefive3
|
|
6
6
|
Author: Adrian of Doom
|
|
@@ -19,8 +19,6 @@ Requires-Python: >=3.6
|
|
|
19
19
|
Description-Content-Type: text/markdown
|
|
20
20
|
License-File: LICENSE
|
|
21
21
|
|
|
22
|
-
Canada has a virtual monopoly on the World's mustard seed supply and they will use it to manipulate financial markets. We must act.
|
|
23
|
-
## Nuke Canada Now!
|
|
24
22
|
|
|
25
23
|
[Install threefive3](#install) |[SCTE-35 Cli](#the-cli-tool) | [SCTE-35 HLS](https://github.com/superkabuki/threefive3/blob/main/hls.md) | [Cue Class](https://github.com/superkabuki/threefive3/blob/main/cue.md) | [Stream Class](https://github.com/superkabuki/threefive3/blob/main/stream.md) | [Online SCTE-35 Parser](https://iodisco.com/scte35) | [Encode SCTE-35](https://github.com/superkabuki/threefive3/blob/main/encode.md) | [FFmpeg SCTE35](https://github.com/superkabuki/FFmpeg_SCTE35)
|
|
26
24
|
|
|
@@ -38,7 +36,7 @@ Canada has a virtual monopoly on the World's mustard seed supply and they will u
|
|
|
38
36
|
* Automatic AES decryption for HLS.
|
|
39
37
|
* All HLS SCTE-35 Tags are Supported.
|
|
40
38
|
|
|
41
|
-
### Latest release is v3.0.
|
|
39
|
+
### Latest release is v3.0.33
|
|
42
40
|
> Stay up to date, only the latest release is supported.
|
|
43
41
|
___
|
|
44
42
|
### MPEGTS streams can be parsed for SCTE-35 with three lines of code.
|
|
@@ -311,3 +309,5 @@ ___
|
|
|
311
309
|
___
|
|
312
310
|
|
|
313
311
|
[Install threefive3](#install) | [SCTE-35 HLS](https://github.com/superkabuki/threefive3/blob/main/hls.md) | [Cue Class](https://github.com/superkabuki/threefive3/blob/main/cue.md) | [Stream Class](https://github.com/superkabuki/threefive3/blob/main/stream.md) | [Online SCTE-35 Parser](https://iodisco.com/scte35) | [Encode SCTE-35](https://github.com/superkabuki/threefive3/blob/main/encode.md) | [FFmpeg SCTE35](https://github.com/superkabuki/FFmpeg_SCTE35)
|
|
312
|
+
|
|
313
|
+

|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
Canada has a virtual monopoly on the World's mustard seed supply and they will use it to manipulate financial markets. We must act.
|
|
2
|
-
## Nuke Canada Now!
|
|
3
1
|
|
|
4
2
|
[Install threefive3](#install) |[SCTE-35 Cli](#the-cli-tool) | [SCTE-35 HLS](https://github.com/superkabuki/threefive3/blob/main/hls.md) | [Cue Class](https://github.com/superkabuki/threefive3/blob/main/cue.md) | [Stream Class](https://github.com/superkabuki/threefive3/blob/main/stream.md) | [Online SCTE-35 Parser](https://iodisco.com/scte35) | [Encode SCTE-35](https://github.com/superkabuki/threefive3/blob/main/encode.md) | [FFmpeg SCTE35](https://github.com/superkabuki/FFmpeg_SCTE35)
|
|
5
3
|
|
|
@@ -17,7 +15,7 @@ Canada has a virtual monopoly on the World's mustard seed supply and they will u
|
|
|
17
15
|
* Automatic AES decryption for HLS.
|
|
18
16
|
* All HLS SCTE-35 Tags are Supported.
|
|
19
17
|
|
|
20
|
-
### Latest release is v3.0.
|
|
18
|
+
### Latest release is v3.0.33
|
|
21
19
|
> Stay up to date, only the latest release is supported.
|
|
22
20
|
___
|
|
23
21
|
### MPEGTS streams can be parsed for SCTE-35 with three lines of code.
|
|
@@ -290,3 +288,5 @@ ___
|
|
|
290
288
|
___
|
|
291
289
|
|
|
292
290
|
[Install threefive3](#install) | [SCTE-35 HLS](https://github.com/superkabuki/threefive3/blob/main/hls.md) | [Cue Class](https://github.com/superkabuki/threefive3/blob/main/cue.md) | [Stream Class](https://github.com/superkabuki/threefive3/blob/main/stream.md) | [Online SCTE-35 Parser](https://iodisco.com/scte35) | [Encode SCTE-35](https://github.com/superkabuki/threefive3/blob/main/encode.md) | [FFmpeg SCTE35](https://github.com/superkabuki/FFmpeg_SCTE35)
|
|
291
|
+
|
|
292
|
+

|
|
@@ -311,12 +311,12 @@ def to_funk(this):
|
|
|
311
311
|
strm.decode(func=funk()) # funk() works here
|
|
312
312
|
except: # try to load json or xml
|
|
313
313
|
cue = Cue()
|
|
314
|
-
try:
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
except:
|
|
318
|
-
print2("Bad Data:\n")
|
|
319
|
-
sys.exit()
|
|
314
|
+
## try:
|
|
315
|
+
cue.bites = cue._mk_bits(this)
|
|
316
|
+
cue.decode()
|
|
317
|
+
## except:
|
|
318
|
+
## print2("Bad Data:\n")
|
|
319
|
+
## sys.exit()
|
|
320
320
|
if cue:
|
|
321
321
|
funk()(cue) # func works here too.
|
|
322
322
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"""
|
|
2
|
-
|
|
2
|
+
scte35.base contains
|
|
3
3
|
the class SCTE35Base.
|
|
4
4
|
"""
|
|
5
5
|
|
|
@@ -35,19 +35,16 @@ class SCTE35Base:
|
|
|
35
35
|
if isinstance(var_value, bool):
|
|
36
36
|
self._err2(var_name, var_value, bit_count, var_type)
|
|
37
37
|
return True
|
|
38
|
-
return False
|
|
39
38
|
|
|
40
39
|
def _wrong_type(self, var_name, var_value, bit_count, var_type):
|
|
41
40
|
if not isinstance(var_value, var_type):
|
|
42
41
|
self._err2(var_name, var_value, bit_count, var_type)
|
|
43
42
|
return True
|
|
44
|
-
return False
|
|
45
43
|
|
|
46
44
|
def _is_none(self, var_name, var_value, bit_count, var_type):
|
|
47
45
|
if var_value is None:
|
|
48
46
|
self._err2(var_name, var_value, bit_count, var_type)
|
|
49
47
|
return True
|
|
50
|
-
return False
|
|
51
48
|
|
|
52
49
|
def _chk_var(self, var_type, nbin_method, var_name, bit_count):
|
|
53
50
|
"""
|
|
@@ -58,7 +55,6 @@ class SCTE35Base:
|
|
|
58
55
|
if me(var_name, var_value, bit_count, var_type):
|
|
59
56
|
return
|
|
60
57
|
nbin_method(var_value, bit_count)
|
|
61
|
-
return
|
|
62
58
|
|
|
63
59
|
@staticmethod
|
|
64
60
|
def as_90k(int_time):
|
|
@@ -14,12 +14,9 @@ class Bitn:
|
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
16
|
def __init__(self, bites):
|
|
17
|
-
# self.bites = bites
|
|
18
17
|
self.bitsize = self.idx = len(bites) << 3
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
if isinstance(bites, int):
|
|
22
|
-
self.bits = bites
|
|
18
|
+
self.bits = int.from_bytes(bites, byteorder="big")
|
|
19
|
+
|
|
23
20
|
|
|
24
21
|
def __repr__(self):
|
|
25
22
|
return str(vars(self))
|
|
@@ -157,15 +154,13 @@ class NBin:
|
|
|
157
154
|
and appends it to self.nbits
|
|
158
155
|
via self.add_int
|
|
159
156
|
"""
|
|
160
|
-
dehexed=False
|
|
161
157
|
if isinstance(hex_str, str):
|
|
162
158
|
dehexed = int(hex_str, 16)
|
|
163
159
|
# just in case hex_str is an int....
|
|
164
|
-
|
|
160
|
+
else:
|
|
165
161
|
dehexed = hex_str
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
162
|
+
self.add_int(dehexed, bit_len)
|
|
163
|
+
|
|
169
164
|
def add_flag(self, flg, bit_len=1):
|
|
170
165
|
"""
|
|
171
166
|
add_flag takes a boolean
|
|
@@ -12,19 +12,7 @@ from .commands import command_map, SpliceCommand
|
|
|
12
12
|
from .descriptors import splice_descriptor, descriptor_map
|
|
13
13
|
from .crc import crc32
|
|
14
14
|
from .segmentation import table22
|
|
15
|
-
from .words import
|
|
16
|
-
minusone,
|
|
17
|
-
zero,
|
|
18
|
-
one,
|
|
19
|
-
two,
|
|
20
|
-
three,
|
|
21
|
-
four,
|
|
22
|
-
eight,
|
|
23
|
-
eleven,
|
|
24
|
-
fourteen,
|
|
25
|
-
sixteen,
|
|
26
|
-
equalsign,
|
|
27
|
-
)
|
|
15
|
+
from .words import *
|
|
28
16
|
|
|
29
17
|
|
|
30
18
|
class Cue(SCTE35Base):
|
|
@@ -436,23 +424,24 @@ class Cue(SCTE35Base):
|
|
|
436
424
|
"""
|
|
437
425
|
|
|
438
426
|
if isinstance(
|
|
439
|
-
|
|
427
|
+
gonzo, str
|
|
440
428
|
): # a string is returned for Binary xml tag, make sense?
|
|
441
|
-
if
|
|
442
|
-
dat = gonzo.split(
|
|
429
|
+
if "<scte35:Binary>" in gonzo:
|
|
430
|
+
dat = gonzo.split("<scte35:Binary>")[1].split("</scte35:Binary>")[0]
|
|
443
431
|
self.bites = self._mk_bits(dat)
|
|
444
432
|
self.decode()
|
|
433
|
+
else:
|
|
434
|
+
blue("Only xml+binary format supported ")
|
|
445
435
|
else:
|
|
446
|
-
blue(
|
|
447
|
-
|
|
436
|
+
blue("xmlbin data needs to be str instance")
|
|
448
437
|
|
|
449
438
|
def xmlbin(self, ns="scte35"):
|
|
450
439
|
"""
|
|
451
440
|
xml returns a threefive3.Node instance
|
|
452
441
|
which can be edited as needed or printed.
|
|
453
442
|
xmlbin
|
|
454
|
-
|
|
443
|
+
|
|
455
444
|
"""
|
|
456
|
-
return
|
|
445
|
+
return f"""<scte35:Signal xmlns:scte35="https://scte.org/schemas/35">
|
|
457
446
|
<scte35:Binary>{self.base64()}</scte35:Binary>
|
|
458
|
-
</scte35:Signal>
|
|
447
|
+
</scte35:Signal>"""
|
|
@@ -13,7 +13,7 @@ import sys
|
|
|
13
13
|
import time
|
|
14
14
|
from functools import partial
|
|
15
15
|
from .new_reader import reader
|
|
16
|
-
from .stuff import blue
|
|
16
|
+
from .stuff import blue, reblue,print2
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
DGRAM_SIZE = 1316
|
|
@@ -79,11 +79,7 @@ class GumS:
|
|
|
79
79
|
elapsed = now() - start_time
|
|
80
80
|
rate = (total_bytes / million) / elapsed
|
|
81
81
|
mb=total_bytes/million
|
|
82
|
-
|
|
83
|
-
f"\t{mb:0.2f} MB sent in {elapsed:5.2f} seconds. {rate:3.2f} MB/Sec",
|
|
84
|
-
end="\r",
|
|
85
|
-
file=sys.stderr,
|
|
86
|
-
)
|
|
82
|
+
reblue(f"\t{mb:0.2f} MB sent in {elapsed:5.2f} seconds. {rate:3.2f} MB/Sec")
|
|
87
83
|
print("\n", file=sys.stderr)
|
|
88
84
|
|
|
89
85
|
def send_stream(self, vid):
|
|
@@ -100,11 +96,8 @@ class GumS:
|
|
|
100
96
|
proto = proto + "@"
|
|
101
97
|
pre = "Multicast"
|
|
102
98
|
src_ip, src_port = self.sock.getsockname()
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
file=sys.stderr,
|
|
106
|
-
)
|
|
107
|
-
print(f"\n\tSource\n\t{src_ip}:{src_port}\n", file=sys.stderr)
|
|
99
|
+
print2(f"\n\t{pre} Stream\n\t{proto}{self.dest_ip}:{self.dest_port}")
|
|
100
|
+
print2(f"\n\tSource\n\t{src_ip}:{src_port}\n")
|
|
108
101
|
|
|
109
102
|
self.iter_dgrams(vid)
|
|
110
103
|
self.sock.close()
|
|
@@ -165,6 +158,7 @@ def fork():
|
|
|
165
158
|
def daemonize():
|
|
166
159
|
"""
|
|
167
160
|
The Steven's double fork
|
|
161
|
+
detach process from controling tty
|
|
168
162
|
"""
|
|
169
163
|
|
|
170
164
|
fork()
|
|
@@ -189,7 +183,7 @@ def cli():
|
|
|
189
183
|
"""
|
|
190
184
|
|
|
191
185
|
args = parse_args()
|
|
192
|
-
#
|
|
186
|
+
#daemonize()
|
|
193
187
|
ttl = int(args.ttl).to_bytes(1, byteorder="big")
|
|
194
188
|
dest_addr = args.addr
|
|
195
189
|
gummie = GumS(dest_addr, ttl, args.bind_addr)
|
|
@@ -389,7 +389,7 @@ class HlsParser:
|
|
|
389
389
|
for sidef in [self.sidecar, self.dumpfile, self.flat, self.m3u8]:
|
|
390
390
|
with open(sidef, "w+", encoding="utf-8") as side_file: # touch
|
|
391
391
|
side_file.close()
|
|
392
|
-
|
|
392
|
+
# pass
|
|
393
393
|
|
|
394
394
|
def chk_aes(self, line):
|
|
395
395
|
"""
|
|
@@ -416,7 +416,7 @@ class HlsParser:
|
|
|
416
416
|
"""
|
|
417
417
|
to_dump copies all SCTE-35 lines to self.dumpfile.
|
|
418
418
|
"""
|
|
419
|
-
with open(self.dumpfile, "a",encoding
|
|
419
|
+
with open(self.dumpfile, "a", encoding="utf-8") as dump:
|
|
420
420
|
dump_line = f"{pts},{line}\n"
|
|
421
421
|
if dump_line != self.last_dump_line:
|
|
422
422
|
dump.write(dump_line)
|
|
@@ -890,7 +890,7 @@ class HlsParser:
|
|
|
890
890
|
write_flat flatten out the sliding window
|
|
891
891
|
and write all data to flat.m3u8.
|
|
892
892
|
"""
|
|
893
|
-
with open(self.flat, "a",encoding
|
|
893
|
+
with open(self.flat, "a", encoding="utf-8") as flat:
|
|
894
894
|
if self.first_segment:
|
|
895
895
|
flat.write("#EXTM3U\n")
|
|
896
896
|
for header in self.headers:
|
|
@@ -904,7 +904,7 @@ class HlsParser:
|
|
|
904
904
|
write_manifest write data to sc.m3u8
|
|
905
905
|
with profile rules applied.
|
|
906
906
|
"""
|
|
907
|
-
with open(self.m3u8, "w",encoding
|
|
907
|
+
with open(self.m3u8, "w", encoding="utf-8") as out:
|
|
908
908
|
out.write("#EXTM3U\n")
|
|
909
909
|
out.write("".join(self.headers))
|
|
910
910
|
out.write(self.sliding_window.all_panes())
|
|
@@ -965,7 +965,7 @@ class HlsParser:
|
|
|
965
965
|
self.sliding_window = SlidingWindow()
|
|
966
966
|
while self.reload:
|
|
967
967
|
self._parse_manifest()
|
|
968
|
-
with open(self.flat, "a",encoding
|
|
968
|
+
with open(self.flat, "a", encoding="utf-8") as flat:
|
|
969
969
|
flat.write("#EXT-X-ENDLIST\n")
|
|
970
970
|
|
|
971
971
|
def pick_one(self, lines, uri):
|
|
@@ -4,19 +4,7 @@ hlstags.py
|
|
|
4
4
|
"""
|
|
5
5
|
|
|
6
6
|
from .stuff import atohif
|
|
7
|
-
from .words import
|
|
8
|
-
minusone,
|
|
9
|
-
zero,
|
|
10
|
-
one,
|
|
11
|
-
two,
|
|
12
|
-
equalsign,
|
|
13
|
-
comma,
|
|
14
|
-
colon,
|
|
15
|
-
space,
|
|
16
|
-
nothing,
|
|
17
|
-
dblquote,
|
|
18
|
-
octothorpe,
|
|
19
|
-
)
|
|
7
|
+
from .words import *
|
|
20
8
|
|
|
21
9
|
BASIC_TAGS = (
|
|
22
10
|
"#EXTM3U",
|
|
@@ -79,17 +79,19 @@ def lshiftbuf(socked):
|
|
|
79
79
|
socked.setsockopt(socket.SOL_SOCKET, socket.SO_RCVBUF, rcvbuf_size)
|
|
80
80
|
blue(f" socket.SO_RCVBUF set to {rcvbuf_size}")
|
|
81
81
|
except:
|
|
82
|
-
blue("Unable to left shift socket.SO_RCVBUF")
|
|
82
|
+
blue(" Unable to left shift socket.SO_RCVBUF")
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
def _mk_socked():
|
|
86
86
|
socked = Socked(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
|
|
87
87
|
lshiftbuf(socked)
|
|
88
88
|
socked.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
|
89
|
+
blue(" setting socket.SO_REUSEADDR")
|
|
89
90
|
if hasattr(socket, "SO_REUSEPORT"):
|
|
90
|
-
blue(
|
|
91
|
+
blue(" setting socket.SO_REUSEPORT")
|
|
91
92
|
socked.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
|
|
92
93
|
socked.settimeout(TIMEOUT)
|
|
94
|
+
blue(f" setting socket timeout to {TIMEOUT}")
|
|
93
95
|
return socked
|
|
94
96
|
|
|
95
97
|
|
|
@@ -97,6 +99,7 @@ def _mk_udp_sock(udp_ip, udp_port):
|
|
|
97
99
|
"""
|
|
98
100
|
udp socket setup
|
|
99
101
|
"""
|
|
102
|
+
blue(" Opening UDP Unicast socket")
|
|
100
103
|
udp_sock = _mk_socked()
|
|
101
104
|
udp_sock.bind((udp_ip, udp_port))
|
|
102
105
|
return udp_sock
|
|
@@ -115,11 +118,14 @@ def _open_mcast(uri):
|
|
|
115
118
|
"""
|
|
116
119
|
udp://@227.1.3.10:4310
|
|
117
120
|
"""
|
|
121
|
+
blue(" Opening Multicast socket")
|
|
122
|
+
TTL=32
|
|
118
123
|
interface_ip = "0.0.0.0"
|
|
119
124
|
multicast_group, port = (uri.split("udp://@")[1]).rsplit(":", 1)
|
|
120
125
|
multicast_port = int(port)
|
|
121
126
|
socked = _mk_socked()
|
|
122
|
-
socked.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, struct.pack("b",
|
|
127
|
+
socked.setsockopt(socket.IPPROTO_IP, socket.IP_MULTICAST_TTL, struct.pack("b", TTL))
|
|
128
|
+
blue(f" TTL set to {TTL}")
|
|
123
129
|
socked.bind(("", multicast_port))
|
|
124
130
|
socked.setsockopt(
|
|
125
131
|
socket.SOL_IP,
|
|
@@ -10,7 +10,7 @@ from .stuff import print2, blue
|
|
|
10
10
|
from .cue import Cue
|
|
11
11
|
from .packetdata import PacketData
|
|
12
12
|
from .streamtypes import streamtype_map
|
|
13
|
-
|
|
13
|
+
from .words import *
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
def no_op(cue):
|
|
@@ -52,7 +52,7 @@ class ProgramInfo:
|
|
|
52
52
|
self.streams = {} # pid to stream_type mapping
|
|
53
53
|
|
|
54
54
|
def _mk_vee(self, k):
|
|
55
|
-
vee = int(self.streams[k], base=
|
|
55
|
+
vee = int(self.streams[k], base=sixteen)
|
|
56
56
|
if vee in streamtype_map:
|
|
57
57
|
vee = f"{hex(vee)}\t{streamtype_map[vee]}"
|
|
58
58
|
else:
|
|
@@ -84,8 +84,8 @@ class Pids:
|
|
|
84
84
|
Pids holds sets of pids for pat,pcr,pmt, and scte35
|
|
85
85
|
"""
|
|
86
86
|
|
|
87
|
-
SDT_PID =
|
|
88
|
-
PAT_PID =
|
|
87
|
+
SDT_PID = eleven
|
|
88
|
+
PAT_PID = zero
|
|
89
89
|
|
|
90
90
|
def __init__(self):
|
|
91
91
|
self.pcr = set()
|
|
@@ -172,42 +172,42 @@ class Stream:
|
|
|
172
172
|
"""
|
|
173
173
|
as_90k returns ticks as 90k clock time
|
|
174
174
|
"""
|
|
175
|
-
return round((ticks / 90000.0),
|
|
175
|
+
return round((ticks / 90000.0), six)
|
|
176
176
|
|
|
177
177
|
@staticmethod
|
|
178
178
|
def _pusi_flag(pkt):
|
|
179
|
-
return pkt[
|
|
179
|
+
return pkt[one] & sixtyfour
|
|
180
180
|
|
|
181
181
|
@staticmethod
|
|
182
182
|
def _afc_flag(pkt3):
|
|
183
|
-
return pkt3 &
|
|
183
|
+
return pkt3 & thirtytwo
|
|
184
184
|
|
|
185
185
|
@staticmethod
|
|
186
186
|
def _pcr_flag(pkt):
|
|
187
|
-
return pkt[
|
|
187
|
+
return pkt[five] & sixteen
|
|
188
188
|
|
|
189
189
|
@staticmethod
|
|
190
190
|
def _spi_flag(pkt):
|
|
191
|
-
return pkt[
|
|
191
|
+
return pkt[five] & thirtytwo
|
|
192
192
|
|
|
193
193
|
@staticmethod
|
|
194
194
|
def _pts_flag(pay):
|
|
195
195
|
# uses pay not pkt
|
|
196
|
-
return pay[
|
|
196
|
+
return pay[seven] & onetwentyeight
|
|
197
197
|
|
|
198
198
|
@staticmethod
|
|
199
199
|
def _parse_length(byte1, byte2):
|
|
200
200
|
"""
|
|
201
201
|
parse a 12 bit length value
|
|
202
202
|
"""
|
|
203
|
-
return (byte1 &
|
|
203
|
+
return (byte1 & fifteen) << eight | byte2
|
|
204
204
|
|
|
205
205
|
@staticmethod
|
|
206
206
|
def _parse_pid(byte1, byte2):
|
|
207
207
|
"""
|
|
208
208
|
parse a 13 bit pid value
|
|
209
209
|
"""
|
|
210
|
-
pid = (byte1 &
|
|
210
|
+
pid = (byte1 & fifteen) << eight | byte2
|
|
211
211
|
return pid
|
|
212
212
|
|
|
213
213
|
@staticmethod
|
|
@@ -215,7 +215,7 @@ class Stream:
|
|
|
215
215
|
"""
|
|
216
216
|
parse a 16 bit program number value
|
|
217
217
|
"""
|
|
218
|
-
return (byte1 <<
|
|
218
|
+
return (byte1 << eight) | byte2
|
|
219
219
|
|
|
220
220
|
@staticmethod
|
|
221
221
|
def _split_by_idx(pay, marker):
|
|
@@ -231,16 +231,16 @@ class Stream:
|
|
|
231
231
|
if SYNC_BYTE is found.
|
|
232
232
|
"""
|
|
233
233
|
while self._tsdata:
|
|
234
|
-
|
|
235
|
-
if
|
|
236
|
-
if
|
|
237
|
-
tail = self._tsdata.read(self.PACKET_SIZE -
|
|
238
|
-
self._parse(
|
|
234
|
+
bite = self._tsdata.read(one)
|
|
235
|
+
if bite:
|
|
236
|
+
if bite[zero] == self.SYNC_BYTE:
|
|
237
|
+
tail = self._tsdata.read(self.PACKET_SIZE - one)
|
|
238
|
+
self._parse(bite + tail)
|
|
239
239
|
return True
|
|
240
240
|
print2("No Stream Found\n")
|
|
241
241
|
return False
|
|
242
242
|
|
|
243
|
-
def iter_pkts(self, num_pkts=
|
|
243
|
+
def iter_pkts(self, num_pkts=one):
|
|
244
244
|
"""
|
|
245
245
|
iter_pkts iterates a mpegts stream into packets
|
|
246
246
|
"""
|
|
@@ -249,10 +249,8 @@ class Stream:
|
|
|
249
249
|
return False
|
|
250
250
|
|
|
251
251
|
def _mk_pkts(self, chunk):
|
|
252
|
-
return [
|
|
253
|
-
|
|
254
|
-
for i in range(0, len(chunk), self.PACKET_SIZE)
|
|
255
|
-
]
|
|
252
|
+
return [self._parse(chunk[i : i + self.PACKET_SIZE])
|
|
253
|
+
for i in range(0, len(chunk), self.PACKET_SIZE) ]
|
|
256
254
|
|
|
257
255
|
def _decode2cues(self, chunk, func):
|
|
258
256
|
_ = [func(cue) for cue in self._mk_pkts(chunk) if cue]
|
|
@@ -293,8 +291,8 @@ class Stream:
|
|
|
293
291
|
decode_start_time
|
|
294
292
|
"""
|
|
295
293
|
self.decode(func=no_op)
|
|
296
|
-
if len(self.start.values()) >
|
|
297
|
-
return self.start.popitem()[
|
|
294
|
+
if len(self.start.values()) > zero:
|
|
295
|
+
return self.start.popitem()[one]
|
|
298
296
|
return False
|
|
299
297
|
|
|
300
298
|
def proxy(self, func=show_cue_stderr):
|
|
@@ -317,7 +315,7 @@ class Stream:
|
|
|
317
315
|
self.info = True
|
|
318
316
|
for pkt in self.iter_pkts():
|
|
319
317
|
self._parse(pkt)
|
|
320
|
-
if self.pmt_count > len(self.pmt_payloads) <<
|
|
318
|
+
if self.pmt_count > len(self.pmt_payloads) << one:
|
|
321
319
|
blue(f'PMT Count: {self.pmt_count}')
|
|
322
320
|
break
|
|
323
321
|
if self.maps.prgm.keys():
|
|
@@ -354,7 +352,7 @@ class Stream:
|
|
|
354
352
|
pid2prgm takes a pid,
|
|
355
353
|
returns the program
|
|
356
354
|
"""
|
|
357
|
-
prgm =
|
|
355
|
+
prgm = one
|
|
358
356
|
if pid in self.maps.pid_prgm:
|
|
359
357
|
return self.maps.pid_prgm[pid]
|
|
360
358
|
return False
|
|
@@ -380,18 +378,17 @@ class Stream:
|
|
|
380
378
|
return False
|
|
381
379
|
|
|
382
380
|
def _unpad(self, bites):
|
|
383
|
-
pad =
|
|
384
|
-
one = 1
|
|
381
|
+
pad = twofiftyfive
|
|
385
382
|
if not bites:
|
|
386
383
|
return b""
|
|
387
|
-
while bites[
|
|
388
|
-
bites = bites[
|
|
384
|
+
while bites[zero] == pad:
|
|
385
|
+
bites = bites[one:]
|
|
389
386
|
return self._unpad2(bites)
|
|
390
387
|
|
|
391
388
|
def _unpad2(self, bites):
|
|
392
|
-
pad =
|
|
393
|
-
while bites[
|
|
394
|
-
bites = bites[
|
|
389
|
+
pad = twofiftyfive
|
|
390
|
+
while bites[minusone] == pad:
|
|
391
|
+
bites = bites[:minusone]
|
|
395
392
|
return bites
|
|
396
393
|
|
|
397
394
|
def _mk_packet_data(self, pid):
|
|
@@ -403,10 +400,10 @@ class Stream:
|
|
|
403
400
|
|
|
404
401
|
def _parse_cc(self, pkt, pid):
|
|
405
402
|
last_cc = None
|
|
406
|
-
c_c = pkt[
|
|
403
|
+
c_c = pkt[three] & fifteen
|
|
407
404
|
if pid in self.maps.pid_cc:
|
|
408
405
|
last_cc = self.maps.pid_cc[pid]
|
|
409
|
-
good = (last_cc, ((last_cc +
|
|
406
|
+
good = (last_cc, ((last_cc + one) % sixteen))
|
|
410
407
|
if c_c not in good:
|
|
411
408
|
print2(f" # BAD --> pid:\t{hex(pid)}\tlast cc:\t{last_cc}\tcc:\t{c_c}")
|
|
412
409
|
self.maps.pid_cc[pid] = c_c
|
|
@@ -420,25 +417,25 @@ class Stream:
|
|
|
420
417
|
## idx = pkt.index(b"\x00\x00\x01")
|
|
421
418
|
## if pkt[idx + 3 : idx + 4] in [b"\xe0", b"\xc0", b"\xbd"]:
|
|
422
419
|
payload = self._parse_payload(pkt)
|
|
423
|
-
if len(payload) >
|
|
420
|
+
if len(payload) > thirteen:
|
|
424
421
|
if self._pts_flag(payload):
|
|
425
|
-
pts = (payload[
|
|
426
|
-
pts |= payload[
|
|
427
|
-
pts |= (payload[
|
|
428
|
-
pts |= payload[
|
|
429
|
-
pts |= payload[
|
|
422
|
+
pts = (payload[nine] & fourteen) << twentynine
|
|
423
|
+
pts |= payload[ten] << twentytwo
|
|
424
|
+
pts |= (payload[eleven] >> one) << fifteen
|
|
425
|
+
pts |= payload[twelve] << seven
|
|
426
|
+
pts |= payload[thirteen] >> one
|
|
430
427
|
prgm = self.pid2prgm(pid)
|
|
431
428
|
self.maps.prgm_pts[prgm] = pts
|
|
432
429
|
if prgm not in self.start:
|
|
433
430
|
self.start[prgm] = pts
|
|
434
431
|
|
|
435
432
|
def _parse_pcr(self, pkt, pid):
|
|
436
|
-
if self._afc_flag(pkt[
|
|
437
|
-
pcr = pkt[
|
|
438
|
-
pcr |= pkt[
|
|
439
|
-
pcr |= pkt[
|
|
440
|
-
pcr |= pkt[
|
|
441
|
-
pcr |= pkt[
|
|
433
|
+
if self._afc_flag(pkt[three]):
|
|
434
|
+
pcr = pkt[six] << twentyfive
|
|
435
|
+
pcr |= pkt[seven] << seventeen
|
|
436
|
+
pcr |= pkt[eight] << nine
|
|
437
|
+
pcr |= pkt[nine] << one
|
|
438
|
+
pcr |= pkt[ten] >> seven
|
|
442
439
|
prgm = self.pid2prgm(pid)
|
|
443
440
|
self.maps.prgm_pcr[prgm] = pcr
|
|
444
441
|
|
|
@@ -446,17 +443,17 @@ class Stream:
|
|
|
446
443
|
"""
|
|
447
444
|
_parse_payload returns the packet payload
|
|
448
445
|
"""
|
|
449
|
-
head_size =
|
|
450
|
-
if self._afc_flag(pkt[
|
|
451
|
-
pkt = pkt[:
|
|
452
|
-
afl = pkt[
|
|
453
|
-
head_size += afl +
|
|
446
|
+
head_size = four
|
|
447
|
+
if self._afc_flag(pkt[three]):
|
|
448
|
+
pkt = pkt[:four] + self._unpad(pkt[four:])
|
|
449
|
+
afl = pkt[four]
|
|
450
|
+
head_size += afl + one # +1 for afl byte
|
|
454
451
|
return pkt[head_size:]
|
|
455
452
|
|
|
456
453
|
def _pmt_pid(self, pay, pid):
|
|
457
|
-
self.pmt_count +=
|
|
454
|
+
self.pmt_count += one
|
|
458
455
|
if pay in self.pmt_payloads:
|
|
459
|
-
if self.pmt_count > len(self.pmt_payloads) <<
|
|
456
|
+
if self.pmt_count > len(self.pmt_payloads) << one:
|
|
460
457
|
return
|
|
461
458
|
self.pmt_payloads.add(pay)
|
|
462
459
|
self._parse_pmt(pay, pid)
|
|
@@ -488,7 +485,7 @@ class Stream:
|
|
|
488
485
|
_parse_info parses the packet for tables
|
|
489
486
|
and returns the pid
|
|
490
487
|
"""
|
|
491
|
-
pid = self._parse_pid(pkt[
|
|
488
|
+
pid = self._parse_pid(pkt[one], pkt[two])
|
|
492
489
|
if pid in self.pids.tables:
|
|
493
490
|
self._parse_tables(pkt, pid)
|
|
494
491
|
return pid
|
|
@@ -534,9 +531,9 @@ class Stream:
|
|
|
534
531
|
|
|
535
532
|
def _section_incomplete(self, pay, pid, seclen):
|
|
536
533
|
# + 3 for the bytes before section starts
|
|
537
|
-
if len(pay) > (seclen +
|
|
534
|
+
if len(pay) > (seclen + three):
|
|
538
535
|
return False
|
|
539
|
-
if (seclen +
|
|
536
|
+
if (seclen + three) > len(pay):
|
|
540
537
|
self.maps.partial[pid] = pay
|
|
541
538
|
return True
|
|
542
539
|
|
|
@@ -551,8 +548,8 @@ class Stream:
|
|
|
551
548
|
def _strip_scte35_pes(self, pkt):
|
|
552
549
|
pay = self._parse_payload(pkt)
|
|
553
550
|
if self.SCTE35_PES_START in pay:
|
|
554
|
-
pay = pay.split(self.SCTE35_PES_START, 1)[
|
|
555
|
-
peslen = pay[
|
|
551
|
+
pay = pay.split(self.SCTE35_PES_START, 1)[minusone]
|
|
552
|
+
peslen = pay[four] + five # PES header length
|
|
556
553
|
pay = pay[peslen:]
|
|
557
554
|
return pay
|
|
558
555
|
|
|
@@ -565,7 +562,7 @@ class Stream:
|
|
|
565
562
|
if not pay:
|
|
566
563
|
self._pop_maybe_pid(pid)
|
|
567
564
|
return False
|
|
568
|
-
if pay[
|
|
565
|
+
if pay[thirteen] == self.show_null:
|
|
569
566
|
return False
|
|
570
567
|
return pay
|
|
571
568
|
|
|
@@ -582,10 +579,10 @@ class Stream:
|
|
|
582
579
|
pay = self._mk_scte35_payload(pkt, pid)
|
|
583
580
|
if not pay:
|
|
584
581
|
return False
|
|
585
|
-
seclen = self._parse_length(pay[
|
|
582
|
+
seclen = self._parse_length(pay[one], pay[two])
|
|
586
583
|
if self._section_incomplete(pay, pid, seclen):
|
|
587
584
|
return False
|
|
588
|
-
pay = pay[: seclen +
|
|
585
|
+
pay = pay[: seclen + three]
|
|
589
586
|
cue = self._parse_cue(pay, pid)
|
|
590
587
|
return cue
|
|
591
588
|
|
|
@@ -603,25 +600,25 @@ class Stream:
|
|
|
603
600
|
pay = self._chk_partial(pay, self.pids.SDT_PID, self.SDT_TID)
|
|
604
601
|
if not pay:
|
|
605
602
|
return False
|
|
606
|
-
seclen = self._parse_length(pay[
|
|
603
|
+
seclen = self._parse_length(pay[one], pay[two])
|
|
607
604
|
if self._section_incomplete(pay, self.pids.SDT_PID, seclen):
|
|
608
605
|
return False
|
|
609
606
|
idx = 11
|
|
610
|
-
while idx < seclen +
|
|
611
|
-
service_id = self._parse_program(pay[idx], pay[idx +
|
|
612
|
-
idx +=
|
|
613
|
-
dloop_len = self._parse_length(pay[idx], pay[idx +
|
|
614
|
-
idx +=
|
|
615
|
-
i =
|
|
607
|
+
while idx < seclen + three:
|
|
608
|
+
service_id = self._parse_program(pay[idx], pay[idx + one])
|
|
609
|
+
idx += three
|
|
610
|
+
dloop_len = self._parse_length(pay[idx], pay[idx + one])
|
|
611
|
+
idx += two
|
|
612
|
+
i = zero
|
|
616
613
|
while i < dloop_len:
|
|
617
614
|
if pay[idx] == 0x48:
|
|
618
|
-
i +=
|
|
615
|
+
i += three
|
|
619
616
|
spnl = pay[idx + i]
|
|
620
|
-
i +=
|
|
617
|
+
i += one
|
|
621
618
|
provider_name = pay[idx + i : idx + i + spnl]
|
|
622
619
|
i += spnl
|
|
623
620
|
snl = pay[idx + i]
|
|
624
|
-
i +=
|
|
621
|
+
i += one
|
|
625
622
|
service_name = pay[idx + i : idx + i + snl]
|
|
626
623
|
i += snl
|
|
627
624
|
self._mk_pinfo(service_id, provider_name, service_name)
|
|
@@ -636,16 +633,16 @@ class Stream:
|
|
|
636
633
|
for program to pmt_pid mappings.
|
|
637
634
|
"""
|
|
638
635
|
pay = self._chk_partial(pay, self.pids.PAT_PID, b"")
|
|
639
|
-
seclen = self._parse_length(pay[
|
|
636
|
+
seclen = self._parse_length(pay[two], pay[three])
|
|
640
637
|
if self._section_incomplete(pay, self.pids.PAT_PID, seclen):
|
|
641
638
|
return False
|
|
642
|
-
seclen -=
|
|
643
|
-
idx =
|
|
644
|
-
chunk_size =
|
|
645
|
-
while seclen >
|
|
646
|
-
program_number = self._parse_program(pay[idx], pay[idx +
|
|
647
|
-
if program_number >
|
|
648
|
-
pmt_pid = self._parse_pid(pay[idx +
|
|
639
|
+
seclen -= five # pay bytes 4,5,6,7,8
|
|
640
|
+
idx = nine
|
|
641
|
+
chunk_size = four
|
|
642
|
+
while seclen > four: # 4 bytes for crc
|
|
643
|
+
program_number = self._parse_program(pay[idx], pay[idx + one])
|
|
644
|
+
if program_number > zero:
|
|
645
|
+
pmt_pid = self._parse_pid(pay[idx + two], pay[idx + three])
|
|
649
646
|
self.pids.pmt.add(pmt_pid)
|
|
650
647
|
self.pids.tables.add(pmt_pid)
|
|
651
648
|
seclen -= chunk_size
|
|
@@ -659,13 +656,13 @@ class Stream:
|
|
|
659
656
|
pay = self._chk_partial(pay, pid, self.PMT_TID)
|
|
660
657
|
if not pay:
|
|
661
658
|
return False
|
|
662
|
-
seclen = self._parse_length(pay[
|
|
659
|
+
seclen = self._parse_length(pay[one], pay[two])
|
|
663
660
|
if self._section_incomplete(pay, pid, seclen):
|
|
664
661
|
return False
|
|
665
|
-
program_number = self._parse_program(pay[
|
|
662
|
+
program_number = self._parse_program(pay[three], pay[four])
|
|
666
663
|
if not program_number:
|
|
667
664
|
return False
|
|
668
|
-
pcr_pid = self._parse_pid(pay[
|
|
665
|
+
pcr_pid = self._parse_pid(pay[eight], pay[nine])
|
|
669
666
|
if program_number not in self.maps.prgm:
|
|
670
667
|
self.maps.prgm[program_number] = ProgramInfo()
|
|
671
668
|
pinfo = self.maps.prgm[program_number]
|
|
@@ -673,9 +670,9 @@ class Stream:
|
|
|
673
670
|
pinfo.pcr_pid = pcr_pid
|
|
674
671
|
self.pids.pcr.add(pcr_pid)
|
|
675
672
|
self.maps.pid_prgm[pcr_pid] = program_number
|
|
676
|
-
proginfolen = self._parse_length(pay[
|
|
677
|
-
idx =
|
|
678
|
-
si_len = seclen - (
|
|
673
|
+
proginfolen = self._parse_length(pay[ten], pay[eleven])
|
|
674
|
+
idx = twelve + proginfolen
|
|
675
|
+
si_len = seclen - (nine + proginfolen)
|
|
679
676
|
self._parse_program_streams(si_len, pay, idx, program_number)
|
|
680
677
|
return True
|
|
681
678
|
|
|
@@ -685,8 +682,8 @@ class Stream:
|
|
|
685
682
|
from a program
|
|
686
683
|
"""
|
|
687
684
|
# 5 bytes for stream_type info
|
|
688
|
-
chunk_size =
|
|
689
|
-
end_idx = (idx + si_len) -
|
|
685
|
+
chunk_size = five
|
|
686
|
+
end_idx = (idx + si_len) - four
|
|
690
687
|
while end_idx - chunk_size >= idx:
|
|
691
688
|
stream_type, pid, ei_len = self._parse_stream_type(pay, idx)
|
|
692
689
|
pinfo = self.maps.prgm[program_number]
|
|
@@ -699,8 +696,8 @@ class Stream:
|
|
|
699
696
|
extract stream pid and type
|
|
700
697
|
"""
|
|
701
698
|
stream_type = hex(pay[idx])
|
|
702
|
-
el_pid = self._parse_pid(pay[idx +
|
|
703
|
-
ei_len = self._parse_length(pay[idx +
|
|
699
|
+
el_pid = self._parse_pid(pay[idx + one], pay[idx + two])
|
|
700
|
+
ei_len = self._parse_length(pay[idx + three], pay[idx + four])
|
|
704
701
|
self._set_scte35_pids(el_pid, stream_type)
|
|
705
702
|
return stream_type, el_pid, ei_len
|
|
706
703
|
|
|
@@ -62,3 +62,11 @@ def blue(message):
|
|
|
62
62
|
"""
|
|
63
63
|
mesg = f"\033[;107m\033[44m{message} \033[0m"
|
|
64
64
|
print2(mesg)
|
|
65
|
+
|
|
66
|
+
def reblue(message):
|
|
67
|
+
"""
|
|
68
|
+
reblue overwrites the last line in place
|
|
69
|
+
"""
|
|
70
|
+
mesg = f"\033[;107m\033[44m{message} \033[0m"
|
|
71
|
+
print(mesg, end='\r' ,file=stderr, flush=True)
|
|
72
|
+
|
|
@@ -23,8 +23,14 @@ thirteen = 0xD
|
|
|
23
23
|
fourteen = 0xE
|
|
24
24
|
fifteen = 0xF
|
|
25
25
|
sixteen = 0x10
|
|
26
|
+
twentyone=0x15
|
|
27
|
+
twentytwo=0x16
|
|
26
28
|
twentyfour = 0x18
|
|
29
|
+
twentynine=0x1D
|
|
27
30
|
thirtytwo = 0x20
|
|
31
|
+
thirtythree= 0x21
|
|
32
|
+
sixtyfour = 0x40
|
|
33
|
+
onetwentyeight=0x80
|
|
28
34
|
twofiftyfive = 0xFF
|
|
29
35
|
twofiftysix = 0x100
|
|
30
36
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: threefive3
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.33
|
|
4
4
|
Summary: SCTE-35 decoder and encoder with MPEGTS and HLS and XML support.
|
|
5
5
|
Home-page: https://github.com/superkabuki/threefive3
|
|
6
6
|
Author: Adrian of Doom
|
|
@@ -19,8 +19,6 @@ Requires-Python: >=3.6
|
|
|
19
19
|
Description-Content-Type: text/markdown
|
|
20
20
|
License-File: LICENSE
|
|
21
21
|
|
|
22
|
-
Canada has a virtual monopoly on the World's mustard seed supply and they will use it to manipulate financial markets. We must act.
|
|
23
|
-
## Nuke Canada Now!
|
|
24
22
|
|
|
25
23
|
[Install threefive3](#install) |[SCTE-35 Cli](#the-cli-tool) | [SCTE-35 HLS](https://github.com/superkabuki/threefive3/blob/main/hls.md) | [Cue Class](https://github.com/superkabuki/threefive3/blob/main/cue.md) | [Stream Class](https://github.com/superkabuki/threefive3/blob/main/stream.md) | [Online SCTE-35 Parser](https://iodisco.com/scte35) | [Encode SCTE-35](https://github.com/superkabuki/threefive3/blob/main/encode.md) | [FFmpeg SCTE35](https://github.com/superkabuki/FFmpeg_SCTE35)
|
|
26
24
|
|
|
@@ -38,7 +36,7 @@ Canada has a virtual monopoly on the World's mustard seed supply and they will u
|
|
|
38
36
|
* Automatic AES decryption for HLS.
|
|
39
37
|
* All HLS SCTE-35 Tags are Supported.
|
|
40
38
|
|
|
41
|
-
### Latest release is v3.0.
|
|
39
|
+
### Latest release is v3.0.33
|
|
42
40
|
> Stay up to date, only the latest release is supported.
|
|
43
41
|
___
|
|
44
42
|
### MPEGTS streams can be parsed for SCTE-35 with three lines of code.
|
|
@@ -311,3 +309,5 @@ ___
|
|
|
311
309
|
___
|
|
312
310
|
|
|
313
311
|
[Install threefive3](#install) | [SCTE-35 HLS](https://github.com/superkabuki/threefive3/blob/main/hls.md) | [Cue Class](https://github.com/superkabuki/threefive3/blob/main/cue.md) | [Stream Class](https://github.com/superkabuki/threefive3/blob/main/stream.md) | [Online SCTE-35 Parser](https://iodisco.com/scte35) | [Encode SCTE-35](https://github.com/superkabuki/threefive3/blob/main/encode.md) | [FFmpeg SCTE35](https://github.com/superkabuki/FFmpeg_SCTE35)
|
|
312
|
+
|
|
313
|
+

|
threefive3-3.0.29/LICENSE
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
BSD 2-Clause License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024, Adrian of Doom
|
|
4
|
-
|
|
5
|
-
Redistribution and use in source and binary forms, with or without
|
|
6
|
-
modification, are permitted provided that the following conditions are met:
|
|
7
|
-
|
|
8
|
-
1. Redistributions of source code must retain the above copyright notice, this
|
|
9
|
-
list of conditions and the following disclaimer.
|
|
10
|
-
|
|
11
|
-
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
12
|
-
this list of conditions and the following disclaimer in the documentation
|
|
13
|
-
and/or other materials provided with the distribution.
|
|
14
|
-
|
|
15
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
16
|
-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
17
|
-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
18
|
-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
19
|
-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
20
|
-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
21
|
-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
22
|
-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
23
|
-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
24
|
-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|