Skip to content
Discussion options

You must be logged in to vote

what is blocksize parameter in open() function ?

sets the number of frames to read at once (only used by a reader or filter streams). For example,

with ffmpegio.open(input, 'rv', blocksize=100) as fin
   for frames in fin:
        assert frames.shape[0]==100

should read all the frames. The last block likely does not contain 100 frames, and it would results in the assertion error.

how to limit video output size (in mb, or gb) ?

This is a quintessential FFmpeg question. The short answer is you cannot in a one-pass encoding. You can use a two-pass encoding to specify the size. See https://trac.ffmpeg.org/wiki/Encode/H.264#twopass

However, ffmpegio currently provide a simple interface for t…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by sugizo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants