udp streaming of my desktop to remote pc

About encoding, codec settings, muxers and filter usage
allegfede
Blank Cone
Blank Cone
Posts: 10
Joined: 26 Jun 2011 13:20

udp streaming of my desktop to remote pc

Postby allegfede » 12 Dec 2011 19:00

Hello. I need to stream a desktop capture (plus audio) from a PC to another in an mpeg2 trasport stream, but really cannot obtain it.

In VLC 1.1.11

media -> straming
\/
capture device tab - drop capture mode to: desktop
\/
set 25 fps
\/
pressed "stream" button

1st option window: source was "screen://" - i press next button
2nd option window: destination was setted to udp and pressed to the "add" button -> set address to "localhost" port 1234 (default) -> i checked the transcoding option -> set transcode to mpeg-2 and mpga trasport stream

That was the the resulting line:
:sout=#transcode{vcodec=mp2v,vb=2000,fps=25,scale=1,width=720,height=576,acodec=mpga,ab=250,channels=2,samplerate=44100}:udp{mux=ts,dst=localhost:1234} :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep

and i pressed the stream button.

VLC starts with the "streaming" label :D

------------client side ------------------

client on the same machine with another vlc instance -> media -> open network stream -> udp://localhost:1234 -> pressed the play button AND ....... nothing appears ......


Any info?


EDIT: success using rtp trasport stream (no way with UDP). But now i can playback only on the same machine of the server (localhost). How to send to a remote machine on the network?

Rémi Denis-Courmont
Developer
Developer
Posts: 15267
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: udp streaming of my desktop to remote pc

Postby Rémi Denis-Courmont » 12 Dec 2011 19:40

screen:// will not usually work at 25 fps. You should consider yourself lucky if you get 10 fps on Linux or 5 fps on Windows.
Desktop sound capture only works with PulseAudio, only with VLC 1.2 or later and needs manual setup.

But if RTP works locally, then you probably screwed up the addressing informations.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

allegfede
Blank Cone
Blank Cone
Posts: 10
Joined: 26 Jun 2011 13:20

Re: udp streaming of my desktop to remote pc

Postby allegfede » 13 Dec 2011 12:18

so no one have a solution?

how can i stream an mpeg2 program stream (displaying my computer screen) to a remote (on the same lan) computer?

UDP or TCP are the same :D

frame rate doesn't matter for now 5 fps are great as a test and i read that some direct show filter (PushDesktop.ax from https://sourceforge.net/projects/screencapturer) could impreve it.

Thanks for the help

UPDATE:

seems to be a windows failure .... tested on osx with source set (by hand) to "screen://" destinaton set to http and destination-IP-label set to "nothing - blank line" to let vlc server listening connection from any pc on the net.

Perfect working ...... BUT I NEED IT ON WINDOWS!!!! aaarrgghhh :D

kn0pka
New Cone
New Cone
Posts: 1
Joined: 18 Apr 2013 17:34

Re: udp streaming of my desktop to remote pc

Postby kn0pka » 18 Apr 2013 17:39

Hi,
try udp://@localhost:1234 on client side


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 10 guests