artclarke / humble-video

Humble Video: Demuxing, Decoding, Filtering, Encoding and Muxing of 100's of video and audio formats and Codecs from the JVM
GNU Affero General Public License v3.0
551 stars 113 forks source link

DecodeAndPlayVideo does not continue past first frame #125

Closed Tank-Missile closed 5 years ago

Tank-Missile commented 5 years ago

The example code renders the first frame, but does not render the frames following it.

EDIT: I should clarify that I ran the demo on linux. My friend tested the same code on his windows machine and the video moved, although it stopped prematurely. By lowering the system time, I was able to get the video to move on my machine. It seems the timings are a bit screwy depending on the operating system. I'll need to use a more sophisticated player, as you mentioned in the comments.

artclarke commented 5 years ago

What version are you using?

Tank-Missile commented 5 years ago

0.3.0. Currently, I'm trying to get audio and video to play at the same time frame, but the audio causes the video to stutter. This occurs when the play method is called on rawAudio, since the audio takes longer to play than the video frame takes to display. From looking at the examples, it seems I have to manually keep the video and audio in sync somehow.

artclarke commented 5 years ago

yeah, see https://github.com/artclarke/humble-video/issues/135.