Bug 1011 - GLMediaPlayer: Sound and video stutter w/ JOAL ALAudioSink using OSX OpenAL impl
Summary: GLMediaPlayer: Sound and video stutter w/ JOAL ALAudioSink using OSX OpenAL impl
Status: RESOLVED FIXED
Alias: None
Product: Jogl
Classification: JogAmp
Component: util (show other bugs)
Version: 2
Hardware: pc_x86_64 macosx
: --- major
Assignee: Sven Gothel
URL:
Depends on: 1018
Blocks:
  Show dependency treegraph
 
Reported: 2014-05-26 17:04 CEST by voorbeeld
Modified: 2014-06-11 01:31 CEST (History)
0 users

See Also:
Type: ---
SCM Refs:
2d50663d43b627b5569d8d9538a0507813ac0fc6 021735487716f15cef8d7d8d317b9cabbacea9dd bc905a107d83d291f6ea34391768d16a9842bfc1
Workaround: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description voorbeeld 2014-05-26 17:04:16 CEST
On OSX 10.8, FFMPEG 1.2.4 (as supplied by brew), tested with Jogl 2.1.5.

When I run the MovieSimple or MovieCube demos the sound and video stutter. Videos are played from local disk as to rule out streaming/bandwidth issues.
Comment 1 Sven Gothel 2014-06-09 17:48:38 CEST
Note: 'brew' is 'Homebrew'
  https://github.com/Homebrew/homebrew/wiki/Installation
.. and seems to be the only source to build/install ffmpeg.
  brew install ffmpeg

+++

Reproduced w/ ffmpeg 2.2.3:
  - OSX
  - GNU/Linux

_if_ ALAudioSink (JOAL) is not used !

i.e. works w/  ALAudioSink/JOAL on GNU/Linux.

Seems like an interesting side-effect.
Comment 2 Sven Gothel 2014-06-09 18:05:39 CEST
.. w/ AID -2 (drop audio completely) .. no stuttering on OSX.
Comment 3 Sven Gothel 2014-06-10 05:24:55 CEST
culprit is our OpenAL usage or 
let's say OSX's limited build-in OpenAL capabilities.

We will use openal-soft per default on OSX as well.
Comment 4 Sven Gothel 2014-06-11 01:31:35 CEST
commit 2d50663d43b627b5569d8d9538a0507813ac0fc6

    GLMediaPlayer: Fix video stutter if using NullAudioSink
    
    NullAudioSink shall return the last enqueued PTS in getPTS()
    not causing a-v delta measure based on lagging audio in player.

commit 021735487716f15cef8d7d8d317b9cabbacea9dd

    Remove explicit xcode.clang property files

commit bc905a107d83d291f6ea34391768d16a9842bfc1

    Bug 1011 / Bug 1012: GLMediaPlayer Audio/Video stuttering w/ OSX and OpenAL/JOAL (works using openal-soft default on all platforms now)


Validated w/ ffmpeg 2.2.3 on GNU/Linux and OSX
w/ ALAudioSink openal-soft/JOAL _and_ NullAudioSink.