Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yutopp/go-flv-examples
https://github.com/yutopp/go-flv-examples
Last synced: about 6 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/yutopp/go-flv-examples
- Owner: yutopp
- License: bsl-1.0
- Created: 2018-06-01T10:27:43.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-23T03:58:22.000Z (about 6 years ago)
- Last Synced: 2024-06-20T03:37:11.801Z (7 months ago)
- Language: Go
- Size: 4.88 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE_1_0.txt
Awesome Lists containing this project
README
# go-flv-examples
Example programs which using [go-flv](https://github.com/yutopp/go-flv) library.
## How to build
```
make dep-init # install dependencies, dep is required
make
```Programs are generated under `dist` directory.
## Programs
### cmd/dump
`dump` outputs flv header data and tag data.
#### Usage
```
Usage of dist/dump:
-i string
Input file
```#### Example
```
> dist/dump -i /tmp/flv_h263_mp3.flv2018/06/01 19:29:00 Open file: /tmp/flv_h263_mp3.flv
2018/06/01 19:29:00 Header: &{Version:1 Flags:2 DataOffset:9}
2018/06/01 19:29:00 Tag: {TagType:18 Timestamp:0 StreamID:0 Data:}
2018/06/01 19:29:00 Tag: {TagType:8 Timestamp:0 StreamID:0 Data:0xc42000a160}
2018/06/01 19:29:00 Tag: {TagType:9 Timestamp:0 StreamID:0 Data:0xc42000a1c0}
...
```
(TODO: fix Data section to show internal payload...)## License
[Boost Software License - Version 1.0](./LICENSE_1_0.txt)