Skip to content

Commit

Permalink
Fix example readme script, sync new readme to Pypi on v1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Tremeschin committed Aug 5, 2024
1 parent 05c11be commit 1c01239
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
9 changes: 5 additions & 4 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ See also the [**Examples**](https://github.com/BrokenSource/TurboPipe/tree/main/

```python
import subprocess

import moderngl
import turbopipe

Expand All @@ -62,16 +63,16 @@ buffer = ctx.buffer(reserve=1920*1080*3)

# Make sure resolution, pixel format matches!
ffmpeg = subprocess.Popen(
'ffmpeg -f rawvideo -pix_fmt rgb24 -s 1920x1080 -i - -f null -'.split(),
'ffmpeg -f rawvideo -pix_fmt rgb24 -r 60 -s 1920x1080 -i - -f null -'.split(),
stdin=subprocess.PIPE
)

# Rendering loop of yours
for _ in range(100):
# Rendering loop of yours (eg. 1m footage)
for _ in range(60 * 60):
turbopipe.pipe(buffer, ffmpeg.stdin.fileno())

# Finalize writing
turbo.sync()
turbopipe.sync()
ffmpeg.stdin.close()
ffmpeg.wait()
```
Expand Down
2 changes: 1 addition & 1 deletion turbopipe/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env python3
__version__ = "1.0.4"
__version__ = "1.0.5"
print(__version__)

0 comments on commit 1c01239

Please sign in to comment.