Skip to content

Android: Cannot open RTSP-stream

VLC (0.1.3) on Android cannot open RTSP-stream.

  1. I have verified that my Android phone has a 192.168.1.x IP-address..
  2. I have tried rebooting Android. Issue persists..
  3. Re-installed VLC App. Issue persists..
  4. I have tried multiple transcode options. Issue persists.. "#transcode{venc=ffmpeg,vcodec=mp2v,vb=483,height=240,width=426,fps=25,aenc=ffmpeg,acodec=mp3,ab=128,channels=2,samplerate=44100,deinterlace}"
  5. Have no issues when connecting to the RTSP stream from my Mac VLC client..

Setup: I only have 1 laptop, so I am unable to test whether or not it would work connecting to my RTSP stream from a different PC on the same network. I don't see why it shouldn't work from a different PC. My Mac acts as the RTSP server.

  • I have edited the VLC .hosts file to only allow connections from 192.168.1.0/32.
  • My VLM configuration file (vod.cfg) looks like this.. new TNG_S02E02 vod enabled setup TNG_S02E02 input "file:///PATH/TO/TNG_S02E02.AVI" output "#transcode{venc=ffmpeg,vcodec=mp2v,vb=12441,height=720,width=1280,fps=25,aenc=ffmpeg,acodec=mp3,ab=256,channels=2,samplerate=44100,deinterlace}"
  • VLC is launched from the terminal, from my Mac, with the following options.. $ vlc --intf telnet --telnet-password admin --rtsp-host 0.0.0.0 --rtsp-port 6666 --ttl 3 --vlm-conf vod.cfg
  • From my Mac I start a separate instance of VLC and connect to the network stream either by the IP or NetBIOS name: rtsp://192.168.1.24:6666/TNG_S02E02.
  • It plays just fine.
  • I exit my 2nd instance of VLC (the client)..
  • Launch VLC (0.1.3) on Android (4.3) and connect to the same stream (I have tried both IP and NetBIOS name): rtsp://192.168.1.24:6666/TNG_S02E02.
  • After a little while I get a pop-up message with the following error: The location rtsp://192.168.1.24:6666/TNG_S02E02 cannot be played..
  • I have enabled Verbose and started Advanced debug logging within the VLC App for Android. See attached file..

Device: 15" MacBook Pro (Early 2008) OS: Mac OS X (10.9) CPU: 2.5 GHz Intel Core 2 Duo RAM: 4 GB 667 MHz DDR2 SDRAM

Device: Samsung Galaxy Nexus (I9250) OS: Android 4.3 App: VLC Beta 0.1.3 Storage: 5.78GB Available

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information