Stream video from VLC on desktop to "VLC for iOS"?

4

5

I want to stream a video file that is located on my Desktop to an iOS device that has installed the recently published official VLC application. Both computers are in the same adress space in my LAN, I know their IPs and ping them successfully.

I can't figure out the procedure to stream a video directly from a non server computer with VLC installed to the iOS VLC application. I don't know if my straming approach is correct and how to open the stream in iOS VLC subsequently.


This is how I did it: First step Second step Third step Fourth step Fifth step Sixth step Seventh step Eigth step

In the iOS VLC app I select the menu entry

Open network stream

enter image description here

There is just an empty textfield, where I enter the location seen in the last desktop window. After that it says playback error and goes back to my empty media libarary. This behaviour with the same error message shows up no matter what I type in the text field.

Senkaku

Posted 2013-07-28T20:18:10.923

Reputation: 494

The HTTP option worked for me. – Lenar Hoyt – 2015-11-05T20:22:40.893

I DLed VLC for IOS as well, but havent set it up. Air Playit is what Im using now and see not need to replace it. http://www.airplayit.com/

– Keltari – 2013-07-28T21:08:25.130

Answers

2

I've got it working using the http streaming option. You can also do this via a terminal command like this:

/Applications/VLC.app/Contents/MacOS/VLC [YOUR_VIDEO_FILE] --sout '#transcode{acodec=mpga,vcodec=mpeg}:std{access=http,mux=ts,dst=[YOUR_IP]:[PORT],user=[USER],pwd=[PWD]}'

Replace [YOUR_IP] with the IP of your streaming host, choose any free port like 8038, a user name and a password. Finally open the following network stream on VLC for iOS or Android:

http//[USER]:[PWD]@[YOUR_IP]:[PORT]

You can also conveniently stream the system audio output using Soundflower (this is currently the only working version for El Capitan, if you read this answer at a much later point in time, this information will likely be outdated). You also need sox (for grabbing the audio device and piping it to VLC) and stdbuf, which you can obtain via brew install sox stdbuf (stdbuf will reduce delays by disabling the terminal line buffer). Set both the system audio input and output to "Soundflower (2ch)" and then run this command:

stdbuf -i0 -o0 -e0 rec -t s16 -L -r 44100 -c 2 - | \
    stdbuf -i0 -o0 -e0 /Applications/VLC.app/Contents/MacOS/VLC - \
    --intf dummy --demux rawaud --rawaud-fourcc='s16l' \
    --rawaud-samplerate=44100 --rawaud-channels=2 \
    --sout '#transcode{acodec=mpga}:std{access=http,mux=ts,dst=[YOUR_IP]:[PORT],user=[USER],pwd=[PWD]}'

You can also use this to call someone on the local network. Set the system audio input/output back to speaker/microphone on both machines, open the http stream of the other machine and you are done. Just be careful that this connection is not encrypted. VLC also offers a https option, but I haven't looked into it yet. The delay will also be pretty bad via http. That can perhaps be improved by opusenc instead of vlc.

Lenar Hoyt

Posted 2013-07-28T20:18:10.923

Reputation: 260

1Nice, thank you. Had to replace the dash after vlc with a filename. There is the colon missing after http. – Senkaku – 2015-11-05T21:04:52.823

for all yall out there: https://wiki.videolan.org/Documentation:Streaming_HowTo/Command_Line_Examples/

– DeerSpotter – 2018-12-27T22:27:52.043

0

check out this video it might help you, it helped me achieve the task.

https://www.youtube.com/watch?v=ptQc9DZNX5o

The main differences from what you have done are to encode in HTTP, and then on the iOS device use the IP and port

e.g. http://192.168.1.1:8080

(the port setting is made on the streaming options section after you click next)

Jonathan

Posted 2013-07-28T20:18:10.923

Reputation: 11

1

Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference.

– bertieb – 2015-09-12T14:05:10.280