Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
futzu authored Jul 22, 2023
1 parent d5f83af commit fe11b2c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,26 @@ python3 -mpip install iframes

## Run
* local file
```js
first video.ts
```

```js
iframes video.ts
```
* https
```rebol
first https://example.com/video.ts
```

```rebol
iframes https://example.com/video.ts
```
* multicast
```rebol
first udp://@227.5.5.5:1234
```
```rebol
iframes udp://@227.5.5.5:1234
```
## Output
Expand Down Expand Up @@ -64,3 +75,16 @@ iframes udp://@227.5.5.5:1234
14657.184678
14657.434933
```
### programmatically

```py3
from iframes import IFramer
ifrmr = IFramer()
first_frame = ifrmr.first('a_video.ts')
```

```py3
from iframes import IFramer
ifrmr = IFramer(shush=True) # set IFramer.shush=True to suppress printing pts
all_iframes = ifrmr.do('https://example.com/coolvideo.ts')
```

0 comments on commit fe11b2c

Please sign in to comment.