Page 1 of 1

RTP live streaming -> Android device

Posted: 08 Apr 2013 11:54
by timautin
Hi,
I have to live stream a video, acquired from a decklink card, to an Android application.

I tried both HTTP and RTSP streaming, with mixed results :

- HTTP : works on the Android device in Android VLC, but not if I try to get the video in my own android app using a VideoView. Does anyone know how is it achived in Android VLC ? It works only in wifi, not in 3G, but it may be a network problem, as in 3G I have to use a VNC

- RTSP : it just doesn't work, even in Android VLC :/ . It should be possible, as I am able to play some RTSP videos I found on the web in my VideoView. But when I try with my video (working in desktop VLC and QuickTime), I get the "RTSP/1.0 461 Unsupported transport" error/

Any idea ?

[SOLVED] Re: RTP live streaming -> Android device

Posted: 11 Apr 2013 11:14
by timautin
Finally it was a network problem.
The video was acquired on a Linux PC, and I was connecting my mobile devices to the network through a MacBook WiFi sharing. The MacBook and the Linux PC were both connected on the same network, and the MacBook was able to get the stream. But it seems that OSX WiFi sharing doesn't let the RTSP video streams pass.
Now I am using a router configured as a WiFi bridge, and it works.
What also worked was to re-stream the video on the Mac (get the Linux stream as input, and re-stream it with another VLC instance on the Mac), then my mobile devices were able to get the Mac's stream. Weird.

For information if someone try to do the same, here is the command I am using to stream the video :
./vlc decklink:// --no-sout-audio --sout '#transcode{width=176,height=144,vcodec=mp4v,vb=64,fps=10}:rtp{dest=127.0.0.1,ttl=10,port=5554,port-video=5555,sdp=rtsp://122.287.63.135:8080/stream.sdp}'

PS : I can't edit my first post to add the SOLVED tag, is it normal ?

Re: RTP live streaming -> Android device

Posted: 29 Jan 2014 22:39
by wimotest
HI,

I am streaming my video from my Linux system using the following code to my android device, but the application(I wrote on my own using VideoView) shows "can't play this video" but I could stream videos from the link available on-line on my application. Could you please say where am I going wrong. I could see the streaming video on my laptop(VLC) but not on mobile.

Code in Linux:

Terminal 1:
vlc -vvv -I telnet --telnet-password videolan --rtsp-host 169.4.8.59:5554

And the content by,

Terminal 2:
telnet localhost 4212
Welcome, Master
> new Test vod enabled
new
> setup Test input my_video.mpg
setup

And I am opening the link in my android by rtsp:\\169.4.8.59:5554\Test

Re: RTP live streaming -> Android device

Posted: 13 Feb 2014 12:28
by Jean-Baptiste Kempf
You probably need to transcode.