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

Support for playing sound during playing movie files #13

Closed
almarklein opened this issue Oct 30, 2014 · 4 comments
Closed

Support for playing sound during playing movie files #13

almarklein opened this issue Oct 30, 2014 · 4 comments

Comments

@almarklein
Copy link
Member

Title was: Perhaps the FFMPEG / AVBIN plugin can play sound while streaming?

But ffmpeg is an encoder/decoder, not a sound/video player. So perhaps using sdl2, or something else that can play audio. Synchronization may be an issue. Also, we could argue whether this is at all within the scope of imageio. Would be cool though.

Probably leave as-is until the a demand for this ...

@almarklein almarklein changed the title Maybe the FFMPEG / AVBIN plugin can play sound while streaming? Support for playing sound during playing movie files Nov 6, 2014
@almarklein
Copy link
Member Author

It might make more sense to have such functionality in e.g. moviepy. cc @Zulko

@Zulko
Copy link
Contributor

Zulko commented Dec 15, 2014

Hey ! MoviePy has a method clip.preview() which plays the video and sound using Pygame (so, SDL). It works pretty well, but the implementation is a little complicated, I use 2 threads (audio/video) and an ad-hoc buffer system for the audio. Some users couldn't install Pygame. Is there already a video preview in ImageIO ?

@almarklein
Copy link
Member Author

No, there is no video preview in imageio. My idea is to make the examples make use of Vispy as soon as it has the required functionality to show images, movies and volumes. On the long term, it might be worth looking into a solution for images and video that does not depend on Numpy.

Yeah, I've heard pygame can be a tough dependency. What about pyglet?

@almarklein
Copy link
Member Author

Closing this since its not in imageio's scope. MoviePy can do this. BTW why not preview videos with HTML5?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants