RTP live streaming -> Android device

*nix specific usage questions
timautin
New Cone
New Cone
Posts: 9
Joined: 08 Apr 2013 11:42

RTP live streaming -> Android device

Postby timautin » 08 Apr 2013 11:54

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 ?

timautin
New Cone
New Cone
Posts: 9
Joined: 08 Apr 2013 11:42

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

Postby timautin » 11 Apr 2013 11:14

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 ?

wimotest
New Cone
New Cone
Posts: 1
Joined: 29 Jan 2014 22:28

Re: RTP live streaming -> Android device

Postby wimotest » 29 Jan 2014 22:39

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

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: RTP live streaming -> Android device

Postby Jean-Baptiste Kempf » 13 Feb 2014 12:28

You probably need to transcode.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 71 guests