RTMP client for android to publish video using wowza - java

Now i am working on RTMP video streaming in android.please give some examples of RTMP client for video publishing in android.

I would suggest javacv with ffmpeg.
I've tried different things and this was the only one worked.
This example will help you a lot, but you' ll need to do some changes and update libs.
If authentication is not required you can use flazr.

try this library http://code.google.com/p/android-rtmp-client/
This is a rtmp client lib ported from red5 and can be used in both android and other java platform. Compared to red5, this lib has a minimal lib dependency.

You should use Yasea or LibRestreaming.
Yasea can publish live video to your rtmp server (needs API 16+)
-Some devices , like MTK chips you can get 8-14 fps with yasea.
I also recommend LibRestreaming to you , if your target api is 18 and upper.
-You can get 20-30 fps with librestreaming
https://github.com/begeekmyfriend/yasea
https://github.com/lakeinchina/librestreaming
I don't suggest javacv to publishing live video , because it takes up 10-15 mb in apk and works with slow fps

Related

Playing h265 HEVC in a JavaFX client

I had a small JavaFX application to play some GoPro videos on a windows / linux client. In the past I had using a GoPro 4. I've downloaded the video to the client and play it from the local storage. Like this:
File file = new File("AnyVideo.MP4");
Media m = new Media(file.toURI().toString());
MediaPlayer mp = new MediaPlayer(m);
mp.setAutoPlay(true);
mediaView.setMediaPlayer(mp);
I'll try to switch to the new GoPro 6 now. But it doesn't worked as expected.
The problem is probably that the JavaFX MediaPlayer did not support the codec from the new GoPro 6.
GoPro 4: h264 AVC video codec
GoPro 6: h265 HEVC video codec
The JavaFX MediaPlayer supports only the h264 codec.
Did anyone know a way how I can play a h265 HEVC video with my JavaFX application. In the best case a solution wich can play the video immediatly from the camera without download the video first to the client. The GoPro has a smal Media Server to get the video over HTTP. as example:
http://10.5.5.9:8080/videos/DCIM/100/GPR10973.MP4
Native JavaFX Solution
Perhaps this is a duplicate or at least related to:
Adding other video codecs / DVD support to JavaFX 2.2.
See my answer to that question for links to related feature requests in the JavaFX bug tracker system.
Solutions using non-JavaFX tech from JavaFX
There are other solutions than those discussed in answers to that question which may work for you. Especially if your primary concern is just getting some kind of playback, even if it doesn't have deep integration with the JavaFX media system.
For instance, other approaches than native JavaFX playback could be:
Using VLCJ with some kind of Swing integration (such as a SwingNode, though that may or may not work).
Rendering the VLCJ video into a JavaFX ImageView or Canvas.
See related: Playing Video in Java FX using vlcj api.
Which links to the following project: https://github.com/caprica/vlcj-javafx.
Launch a native video player if you don't need the video embedded.
Perhaps Desktop.open() or the Process API could do this.
Call ffmpeg to convert h265 to h264.
I don't know much about this, but a quick google of the topic shows up references to the xuggle project.
Current status of the xuggler project is:
Xuggler is on hiatus as no one is actively developing it anymore. Sorry. That said, you can always find the source code and start hacking yourself. Good luck!
So I wish you good luck with that ;-)
Launching the native browser through a HostServices.showDocument() call to display the video.
Use a third party browsing component that can be integrated into JavaFX and includes support for the media type you want to play back, for example JxBrowser:
H.265 support in jxbrowser
Of the options outlined above, personally, I would recommend using HostServices to play the video in the native browser if that kind of solution will possibly work for you.
Going into detail on various options is probably out of scope for StackOverflow (even the above list starts looking like a sometimes frowned upon library recommendation).

Xuggler Live Video Streaming Example

I downloaded Xuggler now and played a little bit around with it. Some examples work, others don't. There is no example of a video live stream with server and client in the demo files. Did anyone already establish a Xuggler Video Live Stream and can tell me how to do it or even post the server and client source code?
You may be better off with something like ffmpeg using javacv like this fellow http://www.walking-productions.com/notslop/2013/01/16/android-live-streaming-courtesy-of-javacv-and-ffmpeg/ .
Xuggler is no longer actively developed , and while it was good at the time it hasn't kept up wih ffmpeg API updates.

Android streaming video latency

I am trying to run Example One from https://github.com/fyhertz/libstreaming-examples
It uses libstreaming-4.0.
I have forced it to use encodeWithMediaCodecMethod2(). This method uses the createInputSurface() method introduced in Android 4.3. This reduced the latency from 3 seconds to 1 second.
I am creating a video chat application (like Skype) and I need the video latency to be much lower than this.
I don't know where to go from here really.
Could anyone offer suggestions on how to get the latency down? Different libraries? techniques? maybe the NDK? I have done loads of research but I have had very little luck :(
Please help
Thanks
Thre are few open source projects
doubango
ffmpeg (you will need javacv - Java wrapper for C/C++ SDK)
Also thre is IMSDroid (open source 3GPP IMS Client for Android based on doubango) and FFMpeg's streaming guide about latency

Android Multitrack Audio Library?

Hi Guys I am trying to build a "4-track" recording app on Android.
I'm looking for a library or set of classes I can use record audio and mix 4 channels of audio to a 2 channel "mixdown".
Ideally it would be similar to the javax.sound.sampled library.
Low latency is also important...
I am new to Android development and have only worked in web dev for a year (c#, jquery, sql, vb).
You will likely have to do an implementation of AudioTrack. This will give you the most control.
Ref:
http://developer.android.com/reference/android/media/AudioTrack.html
Android: Mixing multiple AudioTrack instances?

Live video stream from Android to server , pc and, android device

I'm going to do my final project on android video streaming ,so i need your help guys.
actually i want to send Live video streaming from Android to server , pc and, android device. Can any body refer to similar code or doc. related to this topic. I'll appreciate that.
+
Sounds like a job for a UPnP server.
http://teleal.org/projects/cling
Open Source DLNA/UPnP stack, libraries, and tools for Java and Android developers

Categories