#jogamp @ irc.freenode.net - 20130416 05:05:58 (UTC)
20130416 05:05:58 -CatOut- Previous @ http://jogamp.org/log/irc/jogamp_20130415050645.html
20130416 05:05:58 -CatOut- This channel is logged @ http://jogamp.org/log/irc/jogamp_20130416050558.html
20130416 05:46:33 * DemoscenePassiv (~Lutsche@anon) has joined #jogamp
20130416 06:28:20 * DemoscenePassiv (~Lutsche@anon) Quit (Ping timeout: 245 seconds)
20130416 07:31:16 * sgothel (~sven@anon) has joined #jogamp
20130416 07:31:17 * ChanServ sets mode +v sgothel
20130416 07:32:10 <sgothel> https://jogamp.org/wiki/index.php/SW_Tracking_Report_Objectives_for_the_release_2.0.2_of_JOGL updated
20130416 07:33:11 * xranby_ac100 (~xranby@anon) has joined #jogamp
20130416 08:08:54 * sgothel (~sven@anon) Quit (Read error: Connection reset by peer)
20130416 08:10:17 * sgothel (~sven@anon) has joined #jogamp
20130416 08:10:17 * ChanServ sets mode +v sgothel
20130416 08:32:26 * xranby_ac100 (~xranby@anon) Quit (Read error: Connection reset by peer)
20130416 16:31:54 * [Mike] (~Mike]@anon) has joined #jogamp
20130416 17:40:33 * DemoscenePassiv (~Lutsche@anon) has joined #jogamp
20130416 19:59:54 * xranby_ac100 (~xranby@anon) has joined #jogamp
20130416 20:40:05 * xranby_ac100 (~xranby@anon) Quit (Quit: Leaving.)
20130416 21:46:52 * xranby_ac100 (~xranby@anon) has joined #jogamp
20130416 21:50:06 <xranby_ac100> i am slowly making some progress to enhance the jogamp FFMPEGMediaPlayer
20130416 21:53:05 <xranby_ac100> at least it decode the audio frames, now i need to create a callback that lets me toss the data from jni -> java -> JOAL -> openal
20130416 21:53:48 <xranby_ac100> and then read up how to make audio and video in sync
20130416 21:57:58 <xranby_ac100> sgothel: we really should only push the decoded audio to java and let the user decide what to do with it
20130416 22:06:52 <[Mike]> incase they don't want to use joal/openal?
20130416 22:09:03 <xranby_ac100> in case they want to use the audio to generate nice visuals etc and not onlylitening to it
20130416 22:09:51 <xranby_ac100> maybe some user wants to pass the data to a reverse FFT function and do music analysis etc
20130416 22:18:40 <xranby_ac100> [Mike]: i think about having some similar API for audio compared to video
20130416 22:19:09 <xranby_ac100> right now the user is in control of the generated video textures created by using the GLMediaPlayer
20130416 22:20:22 <[Mike]> true
20130416 22:21:36 <[Mike]> Do you envision placing the audio buffers in some wrapped data type? Or simply a ByteBuffer/byte[]?
20130416 22:21:38 <xranby_ac100> for audio i would like to be able to get hold of the latest audio buffers one buffer / channel in use
20130416 22:22:37 <xranby_ac100> most likely a byte[] would suffice
20130416 22:23:11 <xranby_ac100> but that would require that the user first can query and find out the sample rate
20130416 22:23:33 <xranby_ac100> so that the user can setup JOAL with the right sample frequency
20130416 22:24:03 <xranby_ac100> and create a queue where to toss the byte[]
20130416 22:24:25 <xranby_ac100> hmm most likely this needs to be a nio memory pinned ByteBuffer
20130416 22:30:48 <xranby_ac100> [Mike]: one idea is to re-use the sound3d Buffer http://jogamp.org/deployment/v2.0-rc11/javadoc/joal/javadoc/index.html?com/jogamp/openal/sound3d/Buffer.html
20130416 22:31:47 <xranby_ac100> it would make it easy to place the sound relative to the speakers in a virtual movie room
20130416 22:31:54 <[Mike]> right, that was sort of the direction I was taking it.
20130416 22:32:30 <[Mike]> however taking into account your above use cases, does this class meet the flexibility? I would assume so since they can get the raw data.
20130416 22:33:26 <xranby_ac100> i think this class got all i ask for and nothing extra i would not want so it looks like a nice choice
20130416 22:33:39 <[Mike]> :)
20130416 22:33:47 <[Mike]> Looking at the FFMPEGMediaPlayer, currently there is only one thread. Would both video and audio exist on separate threads?
20130416 22:34:05 <xranby_ac100> preferibly
20130416 22:34:40 <xranby_ac100> the ffmpeg api supports multithreading
20130416 22:34:59 <xranby_ac100> thus it would be nice to decode audio in a separate thread
20130416 22:35:02 <[Mike]> Is that what this TODO is for: "Off thread next frame processing using multiple target textures"
20130416 22:36:40 <xranby_ac100> i belive all // JAU lines are: TODO and chat with sgothel
20130416 22:39:10 <[Mike]> I merely posed the question (about threads) out there based on the current implementation. If you specify getNextTextureImpl to be blocking it calls Thread.sleep(dt-dt_d);. Of course presently there is no audio so no foul :)
20130416 22:44:11 * DemoscenePassiv (~Lutsche@anon) Quit (Ping timeout: 245 seconds)
20130416 22:45:42 <[Mike]> xranby_ac100: Does joal support 24-bit audio?
20130416 22:51:43 <xranby_ac100> [Mike]: i need to research that one.. joal supports what openal support
20130416 22:52:04 <xranby_ac100> http://opensource.creative.com/pipermail/openal/2008-April/011058.html
20130416 22:56:31 <xranby_ac100> [Mike]: do you own a decent soundcard that supports it?
20130416 23:01:16 <xranby_ac100> [Mike]: we bundle openal-soft with JOAL and here it may be suported using an extension http://kcat.strangesoft.net/openal-extensions/SOFT_buffer_samples.txt
20130416 23:03:20 <xranby_ac100> this it allows you to use 32bit sound data up to 7point speaker configuration
20130416 23:04:27 <xranby_ac100> "Only AL_MONO8_SOFT, AL_STEREO8_SOFT, AL_MONO16_SOFT, and AL_STEREO16_SOFT are guaranteed to be supported. The remaining should be checked with a call to alIsBufferFormatSupportedSOFT before use."
20130416 23:10:19 <xranby_ac100> we merged in extention support to be provided under ALExt since jan 2013
20130416 23:10:55 <xranby_ac100> thus we need to re-generate the javadoc for the 2.0.2 release to make this easier to spot
20130416 23:15:49 <xranby_ac100> [Mike]: thank you for the input, i will try push what i have now to a branch before i venture and implement a new API to pass sound3d Buffers
20130416 23:29:30 <[Mike]> xranby_ac100: my apologies, got pulled away for some time. My sound card is a Realtek ALC889.
20130416 23:31:31 <[Mike]> It supports 16/20/24-bit if I'm not mistaken
20130416 23:33:36 <[Mike]> I did not know of the inclusion of openal-soft with JOAL, I will do some more reading :).
20130416 23:43:35 <xranby_ac100> [Mike]: we started to include openal-soft after rc11, it allows us to ship an openal fallback using code we compile ourself
20130416 23:44:32 <xranby_ac100> this will also make joal work out of the box on more platforms
20130416 23:46:48 <xranby_ac100> initial attempt to re-enable audio frame decode: https://github.com/xranby/jogl/commit/2701164a839a652cf099fdd9ff42ecf3d8f67cbd
20130416 23:47:08 <xranby_ac100> i will update progress in this branch https://github.com/xranby/jogl/commits/FFMPEGMediaPlayer-audio
20130416 23:49:14 <[Mike]> Ahh, I see. It makes sense. Do you know the maintainer of openal-soft? I'm assuming some coordination might have to occur in the future if you find bugs. :)
20130416 23:51:28 <xranby_ac100> [Mike]: we keep a copy of the openal-soft git on the jogamp server
20130416 23:52:00 <xranby_ac100> if we find bugs or fix things we will inform upstream here http://kcat.strangesoft.net/openal.html
20130416 23:52:58 <xranby_ac100> http://jogamp.org/git/?p=openal-soft.git;a=summary
20130416 23:53:43 <xranby_ac100> this is the JogAmp openal-soft git and as you can see we have added a custom cmake file to make cross compilation using mingw easy
20130416 23:54:10 <xranby_ac100> well... sgothel did :)
20130416 23:54:20 <[Mike]> Right on, just checked it out :)
20130416 23:59:05 <[Mike]> So do you think the my_av_q2i32 should be modified or replaced to include cast to int64_t?
20130416 23:59:54 <xranby_ac100> the current implementation should be removed
20130417 00:01:35 <xranby_ac100> because mpeg steams use time_base.den 90000
20130417 00:02:22 <xranby_ac100> and this makes the current implementation do a calculation like 1000/90000 thus 0
20130417 00:03:46 <xranby_ac100> so the solution is to refactor the calculation
20130417 00:03:47 <xranby_ac100> http://jogamp.org/log/irc/jogamp_20130414050631.html
20130417 00:04:34 <[Mike]> This conversation looks familiar :)
20130417 00:12:16 <[Mike]> Do you know how this compares to av_rescale?
20130417 00:17:01 <xranby_ac100> i need to reboot, i know where the info you seek is located
20130417 00:17:11 * xranby_ac100 (~xranby@anon) Quit (Remote host closed the connection)
20130417 00:20:11 * xranby_ac100 (~xranby@anon) has joined #jogamp
20130417 00:21:27 <xranby_ac100> [Mike]: http://dranger.com/ffmpeg/ this is the best documentation i have found on how to design a video media player
20130417 00:22:06 <[Mike]> I'll give it a read thanks!
20130417 00:22:32 <xranby_ac100> its an 8 step tutorial that go int depth describing all AV media nerds language and quirks like how to get audio and video in sync :)
20130417 00:22:59 <[Mike]> Most of my work has been using/debugging xuggler & gstreamer. Tried to limit my working with libav to a minimum.
20130417 00:24:11 <[Mike]> Xuggler being an ffmpeg java wrapper. Although the project seemed to slow down after it was abandoned by the original maintainers. Now it's kept alive by supporters.
20130417 00:25:00 <xranby_ac100> [Mike]: while searching for this i discovered jjmpeg
20130417 00:25:26 <xranby_ac100> written by notzed
20130417 00:26:12 <[Mike]> Much more lightweight than xuggler
20130417 00:26:13 <xranby_ac100> which is kind of fun, notzed initialized the patch that brought openal-soft extensions in jogamp
20130417 00:27:04 <xranby_ac100> and now he have basically implemented an ffmpeg wrapper and a video player using ffmpeg + joal
20130417 00:27:12 <xranby_ac100> and a video editor
20130417 00:27:27 <xranby_ac100> in the timeframe of hmm 4months
20130417 00:28:00 <[Mike]> very cool. Just in time for siggraph? :)
20130417 00:28:43 <xranby_ac100> http://a-hackers-craic.blogspot.se/search/label/jjmpeg
20130417 00:29:34 <xranby_ac100> i dont know. i have not seen him in the jogamp forum or here since early 2012
20130417 00:29:40 <[Mike]> In android too.
20130417 00:32:15 <xranby_ac100> i got implessed.. :) it is some overlap in jogamp with what he is doing
20130417 00:38:22 <xranby_ac100> [Mike]: ok cheers, i will now read up more on general ffmpeg lib usage
20130417 00:38:30 <[Mike]> That tutorial really hits the nail on the head.
20130417 00:39:22 <[Mike]> xranby_ac100: great! well thanks for the good reads! Enjoy your ffmpeg/libav travels!
20130417 03:02:20 * ___m___ (~Mike]@anon) has joined #jogamp
20130417 03:02:20 * [Mike] (~Mike]@anon) Quit (Read error: Connection reset by peer)
20130417 03:07:29 * ___m___ is now known as [Mike]
20130417 04:46:10 * [Mike] (~Mike]@anon) Quit ()
20130417 05:06:12 -CatOut- Continue @ http://jogamp.org/log/irc/jogamp_20130417050612.html