Replies: 1 comment 1 reply
-
Here is an example of playing audio using PyAudio. How to control the synchronization of audio and video during playback needs to be controlled in the main program.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I created a video player for tkinter using PIL and pyav, and the video is playing properly without any issue. But it is lacking audio.
I want to know how I can add audio playback by reading the audio frames and play it, maybe using sounddevice or pyaudio...
The source code of the video player is here: https://github.com/Akascape/tkVideoPlayer
(Summary: I simply used the
frame = next(self._container.decode(video=0)).to_image()
method to read the frames and show them in a label image using pillow)Here is the progress:
out.mp4
Beta Was this translation helpful? Give feedback.
All reactions