How to capture video from RTP stream into android app? - java

I am trying to capture video from an RTP stream into my Android application. I am using code from a project on github https://github.com/niqdev/ipcam-view. However, after I open up VLC on my computer and start streaming a video and connect my android device to the same network it does not display the video on my device. I don't know what I am doing wrong, any help would be greatly appreciated. Thanks.
This is the error message that I am getting after I run the application

if you need to play short videos you need to use the demo of VXG player for android. It is super easy to use but has a 2 min limitation.
It looks like the example you are working with works just with mjpeg not with rtp streams.
If limitations is not for you try this example: VLCSimple
It has the newest version of vlc-sdk and maybe they already fixed RTP deadlock bug.
Or just try to make the mjpeg stream using VLC:
DISPLAY=:0 cvlc -vvv --no-audio screen:// --screen-fps 1 --sout "#transcode{vcodec=MJPG,vb=800}:standard{access=http,mux=mpjpeg,dst=:18223/}" --sout-http-mime="multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a"

Related

how to stream video to RTMP server(or to youtube) from DJI?

I need to send live video from a DJI camera to an RTMP server.
I try to find information on how to do this in the DJI sdk documentation, but so far I can not find the answer how to do it.
I would appreciate if you tell me how to do it.
Sorry for my english.
For now, no. But it is said that in the next version of DJI Mobile SDK (After v4.8.1), will provide APIs/Samples for developers to implement video live streaming features, includes stream video to RTMP server.

Java: How do I take input from a USB video capture device?

I have a USB device that provides a video stream to the computer. Normally I just use a program to display this information in a window. I'd like to have my Java program take this image data directly into my code. How is this possible?
I already have drivers and everything set up. I just need to let my program access the data stream coming in through USB. I imagine this might be similar to using a USB webcam?
you could try Xuggler
its an open source wrapper for FFmpeg to get started with it look at this java class from the xuggler package
or this tutorial here
or you could use the xuggler media tool .
The class i gave you link to should have anything you need to decode , play , and manipulate video from any source ... just change container.open(url...) change the URL to w.e source and it should work .
Here's an example project i once made with Xuggler :

RTMP Streaming to Red5 using Xuggler

I have the following problem: in my application I am supposed to connect to a VNC server, grab the icoming images and both save them as a video file (this part works) and publish as a RTMP stream to Red5 server.
Most of the video encoding part is based on Xuggler's screen recording tutorial app ( http://wiki.xuggle.com/MediaTool_Introduction#How_To_Take_Snapshots_Of_Your_Desktop ).
However, being a beginner in Java I can't seem to get the live streaming part to work. I know I am supposed to use IContainer, but even after reading this: How to transmit live video from within a Java application? and several other posts I don't really know how to adapt that to my application. Any help would be greatly appreciated, thanks!

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

Where to get streaming (live) video and audio from camera example app for Android?

Where to get streaming (live) video and audio from camera example for Android?
Suppose I want to create some live video streaming service app so I'll have some cool server at the back end. And I know how to do that part. Suppose I have some stand alone app for PCs now I want to go on to mobile devices. So I want to see some sample app grabing audio and video streams from Phone, Synchronizing them, encoding somehow, and sending LIVE stream to server. I need any Open-Source sample that will do this or something like this. Where can I get such one?
Ole have you been able to find any good examples of video or audio broadcasting yet? The best that I have found so far is the SIPDroid project (www.sipdroid.org). I haven't had a chance to review it in depth, but it looks promising.
Here are some project that you want
Ip Camera
http://code.google.com/p/ipcamera-for-android
SipDroid
http://code.google.com/p/sipdroid/source/browse/trunk/src/org/sipdroid/sipua/ui/VideoCamera.java
You can get the codes using SVN or other clients.
Yet to me, the both projects still have issues. If you get the one working well, please tell me.

Categories