Skip to content

Commit 1f52918

Browse files
committed
docs: fixed stream i/o example
1 parent bd870d8 commit 1f52918

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ Stream I/O
241241
>>> # process video 100 frames at a time and save output as a new video
242242
>>> # with the same frame rate
243243
>>> with ffmpegio.open('myvideo.mp4', 'rv', blocksize=100) as fin,
244-
>>> ffmpegio.open('myoutput.mp4', 'wv', rate=fin.rate) as fout:
244+
>>> ffmpegio.open('myoutput.mp4', 'wv', rate_in=fin.rate) as fout:
245245
>>> for frames in fin:
246246
>>> fout.write(myprocess(frames))
247247

docsrc/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ Stream I/O
241241
>>> # process video 100 frames at a time and save output as a new video
242242
>>> # with the same frame rate
243243
>>> with ffmpegio.open('myvideo.mp4', 'rv', blocksize=100) as fin,
244-
>>> ffmpegio.open('myoutput.mp4', 'wv', rate=fin.rate) as fout:
244+
>>> ffmpegio.open('myoutput.mp4', 'wv', rate_in=fin.rate) as fout:
245245
>>> for frames in fin:
246246
>>> fout.write(myprocess(frames))
247247

0 commit comments

Comments
 (0)