But just in case: could you provide your testing video or at least a part of it ? by how much (approximatively) was it desynchronized ?
The audio starts about 3 seconds after it should. About the movie, I don't know if I can provide it because it's not mine. The movie is a demo movie I downloaded from here: (NSFW)
http://www.game-style.jp/dl/201206/07/99hir_li.php, the download link is the button bellow "デモムービー(104MB)".
The movie itself has a mpeg1 video stream and a mp2 audio stream. I converted the movie to ogv issuing this command:
ffmpeg -i hiragumo_demo_typeA.mpeg -c:v libtheora -c:a libvorbis -q:v 8 some_movie.ogv
The software used was:
ffmpeg v0.10.3
libtheora v1.1.1
libvorbis v1.3.3
When playing the ogv movie with the sample program, found the next issues:
When closing the window while the movie is playing, it displays:
pthread_cond_destroy() error
When toggling to full-screen (pressing f) while playing the movie, a segfault occurs
EDIT: I'm using the open source radeon driver which, when toggling to full-screen gives a bunch of:
radeon: The kernel rejected CS, see dmesg for more information.
with this backtrace:
#0 0x0000000000000000 in ?? ()
#1 0x00007ffff04545ca in ?? () from /usr/lib/xorg/modules/dri/r600_dri.so
#2 0x00007ffff041ad4d in ?? () from /usr/lib/xorg/modules/dri/r600_dri.so
#3 0x00007ffff041fec1 in ?? () from /usr/lib/xorg/modules/dri/r600_dri.so
#4 0x00007ffff042018c in ?? () from /usr/lib/xorg/modules/dri/r600_dri.so
#5 0x00007ffff0420bf9 in ?? () from /usr/lib/xorg/modules/dri/r600_dri.so
#6 0x00007ffff7f76478 in sf::Texture::~Texture() () from build-clang-release/lib/libsfml-graphics.so.2
#7 0x00007ffff7f41af3 in sfe::Movie_video::~Movie_video() () from build-clang-release/lib/libsfeMovie.so.1.0.0
#8 0x00007ffff7f3f1b3 in sfe::Movie::~Movie() () from build-clang-release/lib/libsfeMovie.so.1.0.0
#9 0x0000000000401db5 in main ()
And when I run dmesg there is a lot of:
[19815.432173] radeon 0000:01:05.0: texture bo too small ((800 600) (1 1) 0 26 0 -> 1920000 have 4096)
[19815.432184] radeon 0000:01:05.0: alignments 832 1 1 1
[19815.432190] [drm:radeon_cs_ib_chunk] *ERROR* Invalid command stream !
By the way, I've also successfully build the library with gcc 4.7, and got the same problems.
EDIT2: Sometimes the audio plays in sync with the video, don't know the reason though.