Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ffmpeg format is very slow and on segment loses data #47

Open
jasonschwartzman opened this issue Mar 2, 2021 · 3 comments
Open

ffmpeg format is very slow and on segment loses data #47

jasonschwartzman opened this issue Mar 2, 2021 · 3 comments
Labels
question Further information is requested

Comments

@jasonschwartzman
Copy link

I am using imageio.get_writer('hls.m3u8', mode='I', format='FFMPEG', fps=30)
m3u8.append_data(frame)

I find that to upload appended data is very slow and if the file gets to a point that it segments then the playback is horrible
(I am using

@almarklein
Copy link
Member

It looks like you started a sentence that was not finished :)

The imageio-ffmpeg library is a relatively thin wrapper around the ffmpeg executable. It calls ffmpeg in a subprocess and then sends data to the executable over stdin. This is not the fastest approach, e.g. a Python wrapper that compiles ffmpeg into a C extention would be faster, but this approach is easier to maintain.

So that might be the reason that the process is slower than you expected. Does that make sense for what you're experiencing?

What do you mean by "it segments"?

@almarklein almarklein added the question Further information is requested label Mar 3, 2021
@jasonschwartzman
Copy link
Author

jasonschwartzman commented Mar 3, 2021 via email

@almarklein
Copy link
Member

You could try e.g. whether https://github.com/kkroening/ffmpeg-python would work, and whether it is faster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants