<p>No need to use ffmpeg here:</p>

<p>Open VLC, go to <em>Media</em> > <em>Open Capture Device</em> and set <em>Capture Mode</em> to <em>Desktop</em></p>

<p>Also see:</p>

<ul>
<li><a href="https://wiki.videolan.org/Documentation:Modules/screen/" rel="nofollow noreferrer">https://wiki.videolan.org/Documentation:Modules/screen/</a></li>
<li><a href="https://wiki.videolan.org/Documentation:Command_line/#Desktop.2FScreen_grab_options" rel="nofollow noreferrer">https://wiki.videolan.org/Documentation:Command_line/#Desktop.2FScreen_grab_options</a></li>
</ul>

CC BY-SA 3.0
2017-01-06T16:02:11.620Z
2017-01-06T16:02:11.620Z
sebix
<p>Hey guys how can I stream my desktop to vlc I did found some examples but they do not work;First I need to start ffserver with some configs example here <a href="https://www.organicdesign.co.nz/Simple_video_streaming_with_ffserver" rel="nofollow noreferrer">https://www.organicdesign.co.nz/Simple_video_streaming_with_ffserver</a> then when I start stream with </p>

<pre><code>ffmpeg -f video4linux2 -i /dev/video0 127.0.0.1/cam1.ffm
</code></pre>

<p>I got an error <em>/dev/video0: No such file or directory</em></p>

<ffmpeg><streaming><linux>
Stream desktop (linux) with FFMPEG to VLC
Slobodan Vidovic
# Stream desktop (linux) with FFMPEG to VLC

(Asked by: username_0 on 2016-12-14)

Hey guys how can I stream my desktop to vlc I did found some examples but they do not work;First I need to start ffserver with some configs example here https://www.organicdesign.co.nz/Simple_video_streaming_with_ffserver then when I start stream with 
ffmpeg -f video4linux2 -i /dev/video0 127.0.0.1/cam1.ffm

I got an error /dev/video0: No such file or directory

**Tags:** ffmpeg, streaming, linux


---

## 1 answers

### Answer by username_1 on 2017-01-06. Score: 1

No need to use ffmpeg here:

Open VLC, go to *Media* > *Open Capture Device* and set *Capture Mode* to *Desktop*

Also see:

* <https://wiki.videolan.org/Documentation:Modules/screen/>
* <https://wiki.videolan.org/Documentation:Command_line/#Desktop.2FScreen_grab_options>


---

