From: Petter Reinholdtsen
I had a look at several approaches, for example
-
I did not spend much time investigating codeces. I combined the
rtp and rtsp recipes from
-
-vlc screen:// --sout '#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128}:rtp{dst=projector.local,port=1234,sdp=rtsp://192.168.0.4:8080/test.sdp}' +vlc screen:// --sout \ +'#transcode{vcodec=mp4v,acodec=mpga,vb=800,ab=128}:rtp{dst=projector.local,port=1234,sdp=rtsp://192.168.11.4:8080/test.sdp}'
I ssh-ed into my Kodi box and created a file like this with the same IP address:
--echo rtsp://192.168.0.4:8080/test.sdp > /storage/videos/screenstream.m3u +echo rtsp://192.168.11.4:8080/test.sdp \ +> /storage/videos/screenstream.m3u
Next, first locate the file in Kodi and select the m3u file while -the VLC stream is running. The desktop then show up in my big -screen. :)
+Note the 192.168.11.4 IP address is my desktops IP address. As far +as I can tell the IP must be hardcoded for this to work. In other +words, if someone elses machine is going to do the steaming, you have +to update screenstream.m4u on the Kodi machine and adjust the vlc +repice. To get started, locate the file in Kodi and select the m3u +file while the VLC stream is running. The desktop then show up in my +big screen. :)
When using the same technique to stream a video file with audio, the audio quality is really bad. No idea if the problem is package