Skip to content

Commit

Permalink
Revert "Append detail for README."
Browse files Browse the repository at this point in the history
This reverts commit b769199.
  • Loading branch information
matsuuram committed Aug 5, 2016
1 parent b769199 commit fb1e16b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 28 deletions.
23 changes: 0 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,2 @@
# MpegTsAnalyzer

MpegTsAnalyzer is the Analyzer of MPEG2 Transport Stream(ISO_IEC_13818-1).
It can parse TS header, Adaptation Field, PSI(PAT/PMT) and PES header. Then, it can check continuity_counter(TS header), CRC32(PSI).


# Usage

Default, it is dump each timestamps(PCR/PTS/DTS) that include PCR interval and PTS PCR gap. If you want to dump more detail, please add each command line flags.

```
usage: main.exe [<flags>] <input>
Flags:
--help Show context-sensitive help (also try --help-long
and --help-man).
--dump-ts-header Dump TS packet header.
--dump-ts-payload Dump TS packet payload binary.
--dump-adaptation-field Dump TS packet adaptation_field detail.
--dump-psi Dump PSI(PAT/PMT) detail.
-n, --not-dump-timestamp Not Dump PCR/PTS/DTS timestamps.
Args:
<input> Input file name.
```
10 changes: 5 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ const tsPacketSize = 188
func main() {
var options options.Options
filename := kingpin.Arg("input", "Input file name.").Required().String()
options.SetDumpHeader(*kingpin.Flag("dump-ts-header", "Dump TS packet header.").Bool())
options.SetDumpPayload(*kingpin.Flag("dump-ts-payload", "Dump TS packet payload binary.").Bool())
options.SetDumpAdaptationField(*kingpin.Flag("dump-adaptation-field", "Dump TS packet adaptation_field detail.").Bool())
options.SetDumpPsi(*kingpin.Flag("dump-psi", "Dump PSI(PAT/PMT) detail.").Bool())
options.SetNotDumpTimestamp(*kingpin.Flag("not-dump-timestamp", "Not Dump PCR/PTS/DTS timestamps.").Short('n').Bool())
options.SetDumpHeader(*kingpin.Flag("dump-ts-header", "").Bool())
options.SetDumpPayload(*kingpin.Flag("dump-ts-payload", "").Bool())
options.SetDumpAdaptationField(*kingpin.Flag("dump-adaptation-field", "").Bool())
options.SetDumpPsi(*kingpin.Flag("dump-psi", "").Bool())
options.SetNotDumpTimestamp(*kingpin.Flag("not-dump-timestamp", "").Short('n').Bool())
kingpin.Parse()

if err := parseTsFile(*filename, options); err != nil {
Expand Down

0 comments on commit fb1e16b

Please sign in to comment.