]> pere.pagekite.me Git - homepage.git/commitdiff
Improve text.
authorPetter Reinholdtsen <pere@hungry.com>
Wed, 11 Jul 2018 23:55:36 +0000 (01:55 +0200)
committerPetter Reinholdtsen <pere@hungry.com>
Wed, 11 Jul 2018 23:55:36 +0000 (01:55 +0200)
blog/data/2018-07-12-kodi-linux-desktop-vlc.txt

index 5d67362b62abcc975596076a2f527c379519f169..a36df04104b067329632907d7d14e0179e701fcf 100644 (file)
@@ -10,7 +10,7 @@ install on either side.  Today I found a way that seem to kind of
 work.  Not great, but it si a start.</p>
 
 <p>I had a look at several approaches, for example
-<ahref="https://github.com/mfoetsch/dlna_live_streaming">using uPnP
+<a href="https://github.com/mfoetsch/dlna_live_streaming">using uPnP
 DLNA as described in 2011</a>, but it required a uPnP server, fuse and
 local storage enough to store the stream locally.  This is not going
 to work well for me, lacking enough free space, and it would
@@ -31,25 +31,30 @@ the programs I work on.</p>
 
 <p>I did not spend much time investigating codeces.  I combined the
 rtp and rtsp recipes from
-<ahref="https://wiki.videolan.org/Documentation:Streaming_HowTo/Command_Line_Examples/">the
+<a href="https://wiki.videolan.org/Documentation:Streaming_HowTo/Command_Line_Examples/">the
 VLC Streaming HowTo/Command Line Examples</a>, and was able to get
-this working on the desktop/streaming end.  Note the 192.168.0.4 IP
-address is my desktops IP address:</p>
+this working on the desktop/streaming end.</p>
 
 <blockquote><pre>
-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}'
 </pre></blockquote>
 
 <p>I ssh-ed into my Kodi box and created a file like this with the
 same IP address:</p>
 
 <blockquote><pre>
-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
 </pre></blockquote>
 
-<p>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. :)</p>
+<p>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. :)</p>
 
 <p>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