Probably you know that Nellymoser audio codec was contributed (both Java and C++) by UAB "DKD" (dkd.lt) and available on ffmpeg site (http://www.ffmpeg.org/, June 16 2008).
I decided to optimize Java code performance :)
and prepared (or found) Nellymoser encoded audio stream that is decoded/encoded 40 times (i.e. overall stream duration is 1230 seconds).
Initial implementation performs the task in ~5500ms.
First optimization step is to avoid too many "new float[]" - So a number of state float arrays are initialized in the very beginning and passed as a parameters to the respective methods.
As a result the task is executed in ~5250ms (95.5% of 5500ms).
The second optimization step is not obvious, but it is necessary if you want to port available code to J2ME. J2ME API doesn't have Math.pow(*) method, so it is necessary to replace Math.pow(2, *) with something. Something can be approximation by Taylor Series.
As a result: ~4100ms (74.6% of 5500ms)
Possible reason: Math.pow() is native method that is used very intensively by initial implementation.
Tests are performed on Athlon 64 X2 Dual, 3800+
Thursday, October 21, 2010
Tuesday, September 7, 2010
My post on wowza forum (http://www.wowzamedia.com/forums/showthread.php?t=9576) was deleted by JohnATX today :).
Question:
"We are also in need for Wowza pushing a stream to FMS. Please let me know if there is any such functionality or will be on the horizon."
Wowza team replies:
- "I've sent you a reply off forums."
- "I'm happy to discuss all the details of this with you offline"
- "I will discuss your unique case with you through that ticket."
Possible solution:
You can use any RTMP Client API to pull stream from one server and push it to other (or many) server. Sample code (based on commercial library) is available at http://www.smaxe.com/source.jsf?id=RtmpRetransmitter.java
Update from Sep.21:
Wowza provides 'Push' AddOn http://www.wowzamedia.com/forums/showthread.php?t=10401
Question:
"We are also in need for Wowza pushing a stream to FMS. Please let me know if there is any such functionality or will be on the horizon."
Wowza team replies:
- "I've sent you a reply off forums."
- "I'm happy to discuss all the details of this with you offline"
- "I will discuss your unique case with you through that ticket."
Possible solution:
You can use any RTMP Client API to pull stream from one server and push it to other (or many) server. Sample code (based on commercial library) is available at http://www.smaxe.com/source.jsf?id=RtmpRetransmitter.java
Update from Sep.21:
Wowza provides 'Push' AddOn http://www.wowzamedia.com/forums/showthread.php?t=10401
Friday, June 4, 2010
Webcam/Desktop RTMP publisher application 0.8.0 is released and available for overview
Features:
Features:
- Windows only
- Webcam/Desktop/Microphone capture
- 3 video codecs (SVC1, SVC2, H.264) and 1 audio codec implemented
Subscribe to:
Posts (Atom)