Re: FFMPEGMediaPlayer not playing mp3 under Windows
Posted by
klubi on
Oct 15, 2014; 9:44am
URL: https://forum.jogamp.org/FFMPEGMediaPlayer-not-playing-mp3-under-Windows-tp4033352p4033357.html
Hi gouessej,
under any other circumstances I would love to use Ogg and I'm aware if its benefits :) But as this little projects needs to become a music player and is supposed to be used on mp3s, I have little choice.
Regarding to the debug output, I also see the statement "libav play err: -40"
No idea what that means, but I looked a little more and found out what happens after calling the play() method. Almost immediately after starting play there is an EVENT_CHANGE_EOS+EVENT_CHANGE_PAUSE in the GLMediaEventListener, even I call seek(0) before calling play().
And I am also wandering why, when I call getAudioSink on the media player, I get "jogamp.opengl.util.av.NullAudioSink@b71888d". I would expect the JavaSound implementation, but that is just a guess.
Oh, and by the way, the CrossFadePlayer demo gives the same results, as I would expect as it is pretty much the same code as this (my early version):
https://github.com/dudewithasock/raspimusic/blob/master/raspberry/src/MediaPlayer.javaCheers,
Martin