Both sides previous revision
Previous revision
Next revision
|
Previous revision
Last revision
Both sides next revision
|
stream_pc_linux [2012/01/15 12:59] cerberus |
stream_pc_linux [2012/01/21 14:30] cerberus |
| |
<note warning> | <note warning> |
Process under development and maybe updated at anytime. Last update 15/01/12</note> | Process under development and maybe updated at anytime. Last update 16/01/12</note> |
| |
This process allows any video playable on your desktop, preferably in fullscreen, to be streamed and displayed on your TV. The only Serviio change is to add the livestream from your PC to the Serviio console ie: http:192.168.1.10:8081 All the rest involves the setup of your PC to create the stream using VLC. | This process allows any video playable on your desktop, preferably in fullscreen, to be streamed and displayed on your TV. The only Serviio change is to add the livestream from your PC to the Serviio console ie: http:192.168.1.10:8081 All the rest involves the setup of your PC to create the stream using VLC. |
| |
<code> | <code> |
vlc screen:// :screen-fps=24.000000 :input-slave=alsa://pulse :sout="#transcode{vcodec=mp2v,vb=10000,fps=24,width=1280,acodec=mp3,ab=192,channels=2,samplerate=44100} :http{dst=:8081/desk.ts}" :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep | vlc screen:// :screen-fps=24.000000 :input-slave=alsa://pulse :screen-follow-mouse :screen-mouse-image="~/Pictures/mousepointerimage.png" :sout="#transcode{vcodec=mp2v,vb=10000,fps=24,width=1280,acodec=mp3,ab=192,channels=2,samplerate=44100} :http{dst=:8081/desk.ts}" :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep |
</code> | </code> |
| |
Finally, to setup Serviio to play the stream, add your PC's static address to the Serviio Console/Online Sources/Live Stream in the form http://192.168.1.2:8081/desk.ts and name it “Desktop”. (Note that zip has advised that the stream must be running, as instructed above, when the link is added to the console, else Serviio will not accept the link or display it in the Online menu.) Then on the TV click on the “Desktop” icon and the stream should play. | Finally, to setup Serviio to play the stream, add your PC's static address to the Serviio Console/Online Sources/Live Stream in the form http://192.168.1.2:8081/desk.ts and name it “Desktop”. (Note that zip has advised that the stream must be running, as instructed above, when the link is added to the console, else Serviio will not accept the link or display it in the Online menu.) Then on the TV click on the “Desktop” icon and the stream should play. |
| |
| |
If you want to show the mouse pointer, use the following command line: | |
<code> | |
vlc screen:// :screen-fps=24.000000 :input-slave=alsa://pulse :screen-follow-mouse :screen-mouse-image="~/Pictures/mousepointerimage.png" :sout="#transcode{vcodec=mp2v,vb=10000,fps=24,width=1280,acodec=mp3,ab=192,channels=2,samplerate=44100} :http{dst=:8081/desk.ts}" :no-sout-rtp-sap :no-sout-standard-sap :ttl=1 :sout-keep | |
</code> | |
| |
where: | |
**:screen-follow-mouse** tells VLC to record the mouse. | |
**:screen-mouse-image="~/Pictures/mousepointerimage.png"** tells VLC the pointer image to display while recording the mouse. In this example: "~/Pictures/mousepointerimage.png" | |
| |
| |