You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running a complicated numerical simulation and would like to send frames calculated for a movie to ffmpeg on the fly, e.g., during the calculation. Storing all the data and processing later is impractical since the data would be too large. Is it possible to use the ffmpeg package to achieve this?
In pseudo-code, I want to do something like this:
fromffmpegimportFFmpegffmpeg= (
FFmpeg()
.option("y")
.input("pipe:0")
.output("output.mp4")
)
ffmpeg.execute() # Is this necessary in this case?foriinrange(...):
# this would be a much more complicated simulation that would calculate a frameframe= ... # a NxMx3 array of color valuesffmpeg.add_frame(frame)
ffmpeg.finalize() # might be necessary?
The text was updated successfully, but these errors were encountered:
I'm running a complicated numerical simulation and would like to send frames calculated for a movie to ffmpeg on the fly, e.g., during the calculation. Storing all the data and processing later is impractical since the data would be too large. Is it possible to use the
ffmpeg
package to achieve this?In pseudo-code, I want to do something like this:
The text was updated successfully, but these errors were encountered: