udp streaming of my desktop to remote pc
Posted: 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
------------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?
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
------------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?