UDP streaming screen on a mac to another mac using VLC

macOS specific usage questions
jk2316
New Cone
New Cone
Posts: 4
Joined: 30 May 2014 04:38

UDP streaming screen on a mac to another mac using VLC

Postby jk2316 » 30 May 2014 05:32

Hello everyone, I am trying to stream my screen on a mac to another mac under the same wifi using UDP. I am using VLC for both the transmitter and receiver ends.
I see nothing but endless loading sign in the play progress bar at the bottom of VLC player. There is no error messages either. I also have tried RTP, and the same thing here.

In addition, I also would like to know how to stream the screen from a mac to another using RTSP. I have tried it on Windows machines and RTSP works. However, I don't know how to use RTSP with VLC on a mac.

Please help me on this. Thank you in advance!

crackstone
Blank Cone
Blank Cone
Posts: 56
Joined: 01 Apr 2010 17:25
VLC version: 2.1.0-git
Operating System: Mac OS X
Location: Vienna, Austria

Re: UDP streaming screen on a mac to another mac using VLC

Postby crackstone » 04 Jun 2014 10:47

Via terminal have you tried starting the stream with:

Code: Select all

vlc -vvv -I dummy screen:// --sout='#transcode{vcodec=h264, samplerate=44100, vb=96, fps=30, acodec=mp3, ab=64, height=240, width=320, scale=1}:standard{access=udp, mux=ts, dst=239.0.0.1, port=1234}'
and then playig it on a another mac with:

Code: Select all

vlc -vvv udp://@239.0.0.1:1234
Also read up on commands in this post on stackoverflow.

jk2316
New Cone
New Cone
Posts: 4
Joined: 30 May 2014 04:38

Re: UDP streaming screen on a mac to another mac using VLC

Postby jk2316 » 07 Jun 2014 21:28

Thank you so much crackstone. It works!
However, the delay is more than 10s. How to pass the arguments to the VLC command line tool for both the transmitter and receiver ends, so that the latency is lower? Thanks again.

crackstone
Blank Cone
Blank Cone
Posts: 56
Joined: 01 Apr 2010 17:25
VLC version: 2.1.0-git
Operating System: Mac OS X
Location: Vienna, Austria

Re: UDP streaming screen on a mac to another mac using VLC

Postby crackstone » 07 Jun 2014 22:02

You don't need to compile a VLC version in order to use it on a command line.

You can start VLC via Terminal via the following command

Code: Select all

/Applications/VLC.app/Contents/MacOS/VLC -vvv
The -vvv parameters are for verbose output. Now just use the commands from my earlier post and replace vlc in the beginning with the path to your actual VLC.app and you are good to go.

jk2316
New Cone
New Cone
Posts: 4
Joined: 30 May 2014 04:38

Re: UDP streaming screen on a mac to another mac using VLC

Postby jk2316 » 07 Jun 2014 23:59

Hey crackstone, thanks again for your quick response. I managed to get to that place in the same way as you mentioned, and changed the question after.
Now the problem is the start time (at the client end) and latency.
Pls advise me on:
(1) how to setup the arguments, so that the latency can be greatly reduced (less than 1s ideally).
(2) the connection is created (client VLC needs 30 seconds to show the screen stream, i.e., the start time for client is 30 seconds) way too long. How to make it faster?
(3) what rtsp server does VLC use by default, LIVE555?
(4) In addition, how to get rid of the transcoding and encode the sequence of the captured screen images using x264 encoder? What is the original format of the screen image (RGB)? I want x264 encoder to code RGB or YUV image sequence into H.264 format directly.

Thanks in advance.


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 26 guests